Calling Flow (Power Automate) from PowerApps – Dynamics 365 CE

Hi Everyone,

In this article, I am going to create a simple Power APP and call a Flow from  it.

Login to your Power Apps environment –
Select Blank App -> Phone Layout.

Arrange the required Labels, Text Fields and Buttons.

Select Action as shown in the below and click on Flows –> New –> Instant — From blank.

It will open the below screen and select PowerApps as a trigger.

In the next Select, Search for Common Data Service and select “Common Data Service”

and then in the Actions select Create a new record.

Select the Required entity.

Click on Last Name field and select on Ask in PowerApps to generate a Parameter.

Select other fields and select on Ask in PowerApps (If you don’t see Ask in PowerApps, click on See more)

Save the Step and click on New Step as “Respond to a PowerApp or flow”

Click on Add Output and select Text.

Give the Title and select Value as Contact Unique Identifier.

Give the good name to understand the functionality.

Save the flow and move to PowerApps screen.

Select the button on the screen and Click on Flows from Action on the top menu. It shows the flow that was created. Once you select the flow, it shows as Adding.

We have to update the formulate to send the field’s value to the flow as below.

The above works things works fine to hit Flow but as we need to capture the Output of it, we have to change it the Formula as below.
“Set(varContactID, power.Run(TextInput1.Text, TextInput2.Text).contactid);”

Select the label on which we have to show the value and set the Variable that is used to store the output from flow on the button click.

Run and test it.

Hope this helps.

Happy 365’ing


Modal Popups in CE – Xrm.Navigation.navigateTo – Dynamics 365 CE

Hi Everyone,

Today I was browsing something and came to know that one of the awaiting feature from many years has been released.

Many times we get the requirement to open something in Modal Popup and we all know that was no way to do that. We have that know OOB.

We just have to use the below code for it. 

var pageInput = { pageType: “webresource”, webresourceName: “WebResourceName” };
var navigationOptions = {
    target: 2,
    width: 400,
    height: 300,
    position: 1
Xrm.Navigation.navigateTo(pageInput, navigationOptions).then(
    function success() {
        // Handle dialog closed
    function error() {
        // Handle errors

Along with this, we can use NavigateTo to navigate to Dashboards, Views. Use PageInput as below for the same.

  // Navigates to the Entities Default View.
    var pageInput = { pageType: “entitylist”, entityName: “contact”, viewId:“3a282da1-5d90-e011-95ae-00155d9cfa02” };
    // Navigates to the View that is mentioned in the ViewID.
    var pageInput = { pageType: “entitylist”, entityName: “contact”, viewId:“3a282da1-5d90-e011-95ae-00155d9cfa02” };
    // Navigages to the specified Dashobard
    var pageInput = { pageType: “dashboard”, dashboardId: “45f88f83-0e67-443b-bd05-81d49719f6b1” };

Link from Microsoft Docs

Hope this helps.

Happy 365’ing