Each Model Driven App has a Unique ID and OOB there is no action in power automate to get ID of a particular required APP, Below are the step we can use to fulfill the requirement to get AppID in Power automate
In Our last post we dynamically created Record URL in power automate but skipped Appid part ,
Click here for: http://microsoftdynamics.in/2020/09/12/uci-get-entity-record-url-or-generate-dynamic-record-url-of-a-record-in-power-automate-using-cds-connector-and-variable/
Below are the steps
- Create an entity “Organization Config” and create 2 fields,
Sales hub App ID and Service Hub App ID
- Add Entity in Model-Driven App and side map where ever we want to keep it
- Now We will open our Power automate flow we created in the last post, Add an action “List Records”
- As we are using List Records which will give multiple results, we can use Odata filter or Fetch XMl to fetch the records
- This action gives Collection as output, we will use the below expression to get value from 1st record.
body('get_org_config_list')?['value']?[0]?.dvm_salesappid
- Now we will use compose action output in our variable