Skip to main content

Posts

Showing posts from November, 2019

How to call a Dynamics 365 Action with Input parameters from Logic App or Microsoft Flow

How to call a Dynamics 365 Action with Input parameters from Logic App or Microsoft Flow On my previous post How to call Dynamics 365 Action from Logic App. I have described how to call an Action from a Logic App or Microsoft Flow. So you can refer that post to set up your configuration. This post is going to be about calling an Action that has Input parameters from Logic App or Microsoft Flow. We are going to use the Http Request. As a Sample Action we are going to create a global Action with 2 Input parameters , S tring EntityReference After we have set up our Http Request with the proper Authentication we will call the Sample Action as follows Parameters Inputs are passed under the body, for any EntityReference the following entries are expected : type → “Microsoft.Dynamics.CRM.{{entity name}} id → Guid as string Happy Coding :)
How to Run Logic Apps for more than an hour while using Until Action. I was working on a Logic App that pulls data from Dynamics 365. Since I have more that few thousands of records i will take multiple hours for the Logic App to complete. Apparently the Using Action by default can run only for an hour, even if your custom defined condition is not satisfied. So what is causing the Time Out. As you can see under Change Limits we have two entries, Count = defines how many times it will iterate Timeout = defines how many hours it will run So to increase run time of Until Action you just have to increase the entry under Timeout. Make sure to follow the following format PT{Hours}H PT1H = 1 hour PT2H = 2 hours PT3H = 3hours ... I think you get the logic. Happy Coding :)

How to call Dynamics 365 Action from Logic App.

How to call Dynamics 365 Action from Logic App. You might have stumbled in a scenario where you have an Action in Dynamics 365 and you want to trigger it from a Logic App. As you know the Dynamic 365 Connector has good features, but it does not have the ability to call an Action at least as far as I know. You can solve this by leveraging the HTTP call in logic App, to have a better understanding you can read on the following article https://docs.microsoft.com/en-us/azure/connectors/connectors-native-http . So the idea is to create a Rest API call that triggers the Dynamics 365 Action. Prerequisite: Generate your REST API call You can use CRM REST Builder In general though this is the generic path to call an action {{clientUrl}}/api/data/v9.1/{{Entity Name}}({{Record Guid}})/Microsoft.Dynamics.CRM.{{Unique Name of Action}} Get the following information for Active Directory OAuth authentication Tenant ID Audience which is the