Power Automate Archives - PowerD365 https://powerd365.net/category/power-platform/power-automate/ Training platform for Microsoft business applications Sun, 20 Nov 2022 17:14:42 +0000 en-GB hourly 1 https://wordpress.org/?v=6.7.2 Sorting An Array By Dates In Power Automate https://powerd365.net/sorting-an-array-by-dates-in-power-automate/ https://powerd365.net/sorting-an-array-by-dates-in-power-automate/#respond Sun, 20 Nov 2022 17:14:42 +0000 https://powerd365.net/?p=4263 Many people struggling with the Sort Function in Microsoft. You should be surprised to know that the said function can be used to Sort Arrays in Power Automate. The new approach is far easier than the traditional Three Step Approach. However, there are a few things you should know about before sorting array by [...]

The post Sorting An Array By Dates In Power Automate appeared first on PowerD365.

]]>

Many people struggling with the Sort Function in Microsoft. You should be surprised to know that the said function can be used to Sort Arrays in Power Automate. The new approach is far easier than the traditional Three Step Approach. However, there are a few things you should know about before sorting array by dates.

Using Sort Function to sort Dates:

The first approach is to sort dates in Power Automate like the example below:

STEP 1

sort dates

STEP 2

sort good dates

Here you can see that some dates have been generated for example get items in SharePoint. Moreover, all dates are nicely formatted for the sake of automation processes.

Caution

If we have a bad date format it can be problematic as it can be returned by API. See the example below:

STEP 1

bad dates

STEP 2

sort bad dates

In the examples above you can see that dates have been sorted by month rather than day. This is not of any use to anyone. If such cases appear, you shouldn’t be worried because there are easy ways which can be used to fix them.

Fixing the Date:

To fix this problem all you need to do it to Select Action which will allow you to convert the Date Format in the US. The expressions below can be used to achieve it:

formatDateTime( item(), ‘yyyy-MM-dd’)

Date Format

bad date select

For sorting you can use this one-liner command:

sort(body(‘Select’),’Date’)

Voila! Everything is sorted out.

Final Word

It is time to bid farewell to the old Three Step Approach and welcome the new approach which is way easier to deploy and easy to learn the best thing is it does not matter how many times you may need to use it because it is done in a few minutes.

The post Sorting An Array By Dates In Power Automate appeared first on PowerD365.

]]>
https://powerd365.net/sorting-an-array-by-dates-in-power-automate/feed/ 0
How To Select Limited Column In List Row Action Of Dataverse Using Power Automate https://powerd365.net/how-to-select-limited-column-in-list-row-action-of-dataverse/ https://powerd365.net/how-to-select-limited-column-in-list-row-action-of-dataverse/#respond Sun, 20 Nov 2022 16:33:38 +0000 https://powerd365.net/?p=4257 Multiple rows or records can be retrieved in Microsoft Dataverse using List Rows. You just need to introduce a structured query using either Fetch XML or OData queries. You should know that all columns are by default retrieved in List Rows if you do not mention the columns you want to retrieve explicitly. Moreover, [...]

The post How To Select Limited Column In List Row Action Of Dataverse Using Power Automate appeared first on PowerD365.

]]>

Multiple rows or records can be retrieved in Microsoft Dataverse using List Rows. You just need to introduce a structured query using either Fetch XML or OData queries. You should know that all columns are by default retrieved in List Rows if you do not mention the columns you want to retrieve explicitly.

Moreover, if the flows return all the columns then the performance of the flow is affected. In this regard, it is better to practice and perform tweak to mention the columns directly in the list rows action Select Columns field.

We have shown you an example so you can see how Select Column contains name and amount field only for the sake of Loan Entity. It only retrieves the record with only two columns and other columns are not retrieved in the output.

Be careful!!

You should remember that if you are mentioning column list in Select Columns then you need to use those columns which are actually mentioned in the list in next actions steps of the Power automate. Here, you cannot use other columns which are not retrieved. For this you should need to add other columns as needed.

We hope this read was helpful for you, if you have any questions you can contact us.

The post How To Select Limited Column In List Row Action Of Dataverse Using Power Automate appeared first on PowerD365.

]]>
https://powerd365.net/how-to-select-limited-column-in-list-row-action-of-dataverse/feed/ 0
How To Easily Create A Dynamic Contact Card In A Few Minutes And Retrieve It With PowerAutomate https://powerd365.net/how-to-easily-create-a-dynamic-contact-card-with-powerautomate/ https://powerd365.net/how-to-easily-create-a-dynamic-contact-card-with-powerautomate/#respond Mon, 14 Nov 2022 18:21:25 +0000 https://powerd365.net/?p=4135 Many people struggle to create a dynamic contact card. I have written this blog for you to tell you how you can create a dynamic contact card in a few steps and retrieve it with PowerAutomate. As you must know that  contact card is one of the easiest ways to give the desired person [...]

The post How To Easily Create A Dynamic Contact Card In A Few Minutes And Retrieve It With PowerAutomate appeared first on PowerD365.

]]>

Many people struggle to create a dynamic contact card. I have written this blog for you to tell you how you can create a dynamic contact card in a few steps and retrieve it with PowerAutomate. As you must know that  contact card is one of the easiest ways to give the desired person all the basic details about a person’s professional life. They are the simplest possible introduction for business and opportunities.

Now, it has become quite easy to design whatever kind of contact card by simply using basic Power Point. Here’s a simple and step to step description of the method:

  1. Open PowerPoint and page layout option in it.
  2. Save the file as an HTML file
  3. There are many design suggestions available in the PowerPoint
  4. By putting all the basic information-name, address, contact numbe and other details- any design can be created/ or a suggestion can sought
  5. Once, the best design is selected, it can be saved as pptx-file.
  6. The next step is converting that pptx file html file by using some online converter
  7. The file can then be saved in the OneDrive

Creating a Cloud Flow

Trigger: ‘When a HTTP request is received’  and choose the metode ‘get’ – (you will get the URL to trigger this flow after saving) use the action ‘Get file content’ and select the saved html-file

insert the ‘response’ action and return the html-file content (Header: “content-type”: “text/html”)

STEP 1

step1

STEP 2

STEP 3

step3

I hope this was helpful for you, if you have any questions feel free to contact us.

The post How To Easily Create A Dynamic Contact Card In A Few Minutes And Retrieve It With PowerAutomate appeared first on PowerD365.

]]>
https://powerd365.net/how-to-easily-create-a-dynamic-contact-card-with-powerautomate/feed/ 0
Using Power Automate, Produce Records In Microsoft Data Verse In Bulk https://powerd365.net/using-power-automate-produce-records-in-microsoft-data-verse-in-bulk/ https://powerd365.net/using-power-automate-produce-records-in-microsoft-data-verse-in-bulk/#respond Tue, 22 Mar 2022 09:36:24 +0000 https://powerd365.net/?p=3536 Creating and updating bulk records enables you to operate on several records at the same time. Here are a few circumstances in which you might wish to mass update records: You have a large number of photographs and wish to upload them all at once. You wish to submit a time sheet including a [...]

The post Using Power Automate, Produce Records In Microsoft Data Verse In Bulk appeared first on PowerD365.

]]>

add-a-new-row

Creating and updating bulk records enables you to operate on several records at the same time. Here are a few circumstances in which you might wish to mass update records:

You have a large number of photographs and wish to upload them all at once.

You wish to submit a time sheet including a week’s worth of data all at once.

You might also generate new records in bulk. For example, if your app must choose a large number of photographs, you may wish to submit them all at once.

Depending on your situation, this article will describe how to edit or generate bulk records.

1. Sign in to power Automate and create a quick flow.

To begin, sign in to Power Automate at the URL https://flow.microsoft.com/. Then select the appropriate environment. Create an Instant cloud flow by naming it “Create 2500 accounts instantaneously in Data verse” and choosing Manually button click the trigger.
manuallr-trigger-a-flow

2. Add an Input parameter that allows you to choose the maximum number of records to pass.

Now, add an input parameter of type Number and give it the name Max Count.

manuallr-trigger-a-flow-2

Save the input parameter as “Max” in a variable.

initialize-variable

3. Using the control connection, add an action do.

After declaring the variable, add an action do till by choosing the control connection. Now, in the condition, choose Max is less than one, and in the change limit option, enter 5000 and Time Out PT2H.

do-until

4. Inside do Until, use the Data verse connection to add an action to Add Row.

Add an action, create a new row, connect to Data verse, choose the table as Account, and enter the following expression in the Account Name box.

add-a-new-row-2

5. Create a new action to decrement the variable by one.

In order to decrease by one1, add an action variable.

decrement-variable

It is now completed. The final flow will be as shown below.

manually-trigger-a-flow-3

Hope this is helpful.

The post Using Power Automate, Produce Records In Microsoft Data Verse In Bulk appeared first on PowerD365.

]]>
https://powerd365.net/using-power-automate-produce-records-in-microsoft-data-verse-in-bulk/feed/ 0
How To Set A Daily Alarm In Outlook.com Using Power Automate https://powerd365.net/how-to-set-a-daily-alarm-in-outlook-com-using-power-automate/ https://powerd365.net/how-to-set-a-daily-alarm-in-outlook-com-using-power-automate/#respond Wed, 02 Feb 2022 11:42:16 +0000 https://powerd365.net/?p=3313 Microsoft Power Automate may set up to function as an alarm clock and send users reminders. You may establish a regular reminder to guarantee that you never forget to provide daily project updates to a manager or client. To set the alarm, use the appointment scheduling tool in Outlook. When the alarm is no [...]

The post How To Set A Daily Alarm In Outlook.com Using Power Automate appeared first on PowerD365.

]]>

outlook

Microsoft Power Automate may set up to function as an alarm clock and send users reminders. You may establish a regular reminder to guarantee that you never forget to provide daily project updates to a manager or client. To set the alarm, use the appointment scheduling tool in Outlook. When the alarm is no longer needed, you may, of course, turn it off.

Access Power Automate by logging in. Choose the template “Get daily reminders from your outlook email” from the Templates menu.

power-automate

After you’ve made your selection, the system will prompt you to check in to Outlook.com. Click Continue after providing your outlook.com credentials.

outlook-2

The trigger will now be Recurrence, and the action will Send Email.

send-email

Select To address, then specify the Subject and Body before saving the flow. Now you may put the flow to the test. Outlook.com will send you daily email reminders.

The post How To Set A Daily Alarm In Outlook.com Using Power Automate appeared first on PowerD365.

]]>
https://powerd365.net/how-to-set-a-daily-alarm-in-outlook-com-using-power-automate/feed/ 0
Upgrade Multi Person Field In Sharepoint Via Power Automate With Power Apps https://powerd365.net/upgrade-multi-person-field-in-sharepoint-via-power-automate-with-power-apps/ https://powerd365.net/upgrade-multi-person-field-in-sharepoint-via-power-automate-with-power-apps/#respond Sat, 08 Jan 2022 09:53:32 +0000 https://powerd365.net/?p=3237 This blog post will explain how to use Power Automate and PowerApps to manage a multi person field in Sharepoint. The context You might have a multi-select user in PowerApps that you wish to transmit to Power Automate for additional corporate activities like authorization or data transfer. You also need to add a Create [...]

The post Upgrade Multi Person Field In Sharepoint Via Power Automate With Power Apps appeared first on PowerD365.

]]>

This blog post will explain how to use Power Automate and PowerApps to manage a multi person field in Sharepoint.

The context

You might have a multi-select user in PowerApps that you wish to transmit to Power Automate for additional corporate activities like authorization or data transfer. You also need to add a Create SP List item to your checklist.

Employing PowerApps or Power Automate, multi-select is usually a unique and complex task. If we integrate both, it presents us with greater obstacles. 

UI for PowerApps

PowerApps-UI-2

Initiate the Flow

FlowName.Run(Concat(ComboBoxMultiSelectPerson.SelectedItems.Mail, Text(Mail) & “;”))

All actions are Power Automated (Flow)

Power-Automate-Full

Description of Power Automated Actions

  • Establish an immediate cloud flow, assign it an identifier, and choose the ‘PowerApps’ trigger as displayed below.

Create-Flow

  • It generates a trigger action similar to the one seen below.

Action-Intial

Create an activity called “Initialise Variable” using the parameters listed beneath. These variables will hold the PowerApps data.

  • Selected Persons in PowerApps – Name
  • Place the cursor on the Value and click “Ask in PowerApps” Type – String Value – Place the pointer on the Value and click “Ask in PowerApps”

Initialize-Variable-For-Input

  • Create a new action called “Initialise Variable” and give it the properties listed below. This variable holds all claims from the multi-person field.
  • Type – Array Value – [] Name – MultiPersonValue 

Initialize-Variable-Multi-Person

  • Using the divide method, create an action called “Apply to each,” which will loop through each mail.
  • Add a check to ensure the email isn’t empty.apply-to-each
  • Create an action called ‘Append to array variable’ and set the claims for each email.

“Claims”: “i:0#.f|membership|@{Microsoft 365(item())}”

Append-to-Array

  • We must send the values below to the Add Item action to modify the multiselection’s person column.

[

{

“Claims”: “i:0#.f|membership|microsoft 365.com”,

},

{

“Claims”: “i:0#.f|membership|microsoft 365.com”

}

]

‘Create item’ should be added as an action.

  • SharePoint Site Collection – Site Address
  • SP – List Name Name of the list
  • Fill in all required fields.
  • Choose MultiPersonValue on a specified multi-selection field for the Person field.

create-sp-item

  • Change the input mode to Input the whole range. To allocate your collection variables to the field, follow the instructions below.

switch-to-array

Conclusion

We can use PowerApps to contact Power Automate and update multiple people in SharePoint.

Output

Thank you for taking the time to read this!

The post Upgrade Multi Person Field In Sharepoint Via Power Automate With Power Apps appeared first on PowerD365.

]]>
https://powerd365.net/upgrade-multi-person-field-in-sharepoint-via-power-automate-with-power-apps/feed/ 0
Calling A Microsoft Flow From Dynamics 365 And PowerApps Using JavaScript https://powerd365.net/calling-a-microsoft-flow-from-dynamics-365-and-powerapps-using-javascript/ https://powerd365.net/calling-a-microsoft-flow-from-dynamics-365-and-powerapps-using-javascript/#respond Wed, 29 Dec 2021 12:11:30 +0000 https://powerd365.net/?p=3319 In this article, I'll show you how to use Dynamics 365 JavaScript to contact Power Automate. Let's say I want to use JavaScript to deliver a PDF containing account information when a new account is created in the system. To do so, follow the instructions below: Step 1: Create a flow using the trigger [...]

The post Calling A Microsoft Flow From Dynamics 365 And PowerApps Using JavaScript appeared first on PowerD365.

]]>

compose

In this article, I’ll show you how to use Dynamics 365 JavaScript to contact Power Automate. Let’s say I want to use JavaScript to deliver a PDF containing account information when a new account is created in the system.

To do so, follow the instructions below:

Step 1: Create a flow using the trigger “When a Request Is Received” in the Power Automate Open Power Apps solution. Use the following JSON Payload: {“Name” : “MSFT”,”Email”: msft@gmail.com}

configure-power

Then, to assemble the request parameters into an HTML format, add a compose action.

compose-2

Add another action after the compose action. Muhimbi Connector converts HTML to PDF. You must subscribe for Muhimbi. Select the Concert action’s output in the HTML section.

convert-html

Add a send email operation with a PDF attachment.

sent-an-email

Save the flow now.

Step:2 – Enable Web Resource for Dynamics 365

Build a JavaScript Web resource and paste the script below into it.

function callFlow(executionContext)
{
var formContext = executionContext.getFormContext();
var accountName = formContext.getAttribute("name").getValue();
var email = formContext.getAttribute("emailaddress1").getValue();

var params = {
“Name”:accountName,
“Email”:email
}

var url = “https://prod-189.westus.logic.azure.com:443/workflows/75b05db9981e41d89a6887fff03c1fee/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=uGEet3rej2Z1xWu6GS-8WTPUF0sRnmRsGaXQGSpz1yw”;
var req = new XMLHttpRequest();
req.open(“POST”, url, true);
req.setRequestHeader(‘Content-Type’, ‘application/json’);
req.send(JSON.stringify(params));
Xrm.Utility.alertDialog(“Flow initiated. The PDF will be sent soon.”);
}

The URL should be equivalent to the one generated by FLow.

The account form may be used to call the Web resource method name.

configure-event

The event is on save. As a result, when we create an account and save it, the flow will call and send an email with a PDF attachment.

inbox-test

The post Calling A Microsoft Flow From Dynamics 365 And PowerApps Using JavaScript appeared first on PowerD365.

]]>
https://powerd365.net/calling-a-microsoft-flow-from-dynamics-365-and-powerapps-using-javascript/feed/ 0