Power Automate Flow Relate action Archives - Microsoft Dynamics 365 Blog http://microsoftdynamics.in/tag/power-automate-flow-relate-action/ Microsoft Dynamics CRM . Microsoft Power Platform Thu, 13 Aug 2020 21:36:11 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/04/cropped-Microsoftdynamics365-blogs.png?fit=32%2C32 Power Automate Flow Relate action Archives - Microsoft Dynamics 365 Blog http://microsoftdynamics.in/tag/power-automate-flow-relate-action/ 32 32 176351444 Associate or Disassociate Records for 1:N or N:N Relationship using Power Automate Relate Action CDS http://microsoftdynamics.in/2020/08/14/associate-or-disassociate-records-for-1n-or-nn-relationship-using-power-automate-relate-action-cds/ Thu, 13 Aug 2020 21:26:24 +0000 http://microsoftdynamics.in/?p=4014 We can Associate or disassociate two entity record with N:N or 1: N relationship using Power Automate
Connector to use: common data service (current environment)
Action to use: Relate Records

The post Associate or Disassociate Records for 1:N or N:N Relationship using Power Automate Relate Action CDS appeared first on Microsoft Dynamics 365 Blog.

]]>

We can Associate or disassociate two entity record with N:N or 1: N relationship using Power Automate
Connector to use: common data service (current environment)
Action to use: Relate Records

We would be using Contact and campaign N:N Custom Relationship when Contact is created get source campaign from lead and map with contact.

  1. Create new Automated Flow

  2. Name the Flow and Choose Trigger, in our case its creation of record contact

  3. Get Lead Record Item Unique id as Lead Source, To get source Campaign ID

  4. Now We have Source Campaign ID from Lead and Contact Id, But to use relate Action we need OData URL for a related entity that is Campaign
    https://organizationName.crm8.dynamics.com/api/data/v9.0/campaigns(0d8dda4c-126e-e911-a980-000d3ae4c063)
    Where GUID will be mapped with Dynamics field value campaign ID

  5. Selecting Action Relate record this action, Select Primary Entity i.e contact, Map Contact unique id, Relationship Name, URL

Save and Turn On the flow. Now each time contact is created and source lead contains campaign both will be associated using relate action.

Unrelate Action can be used to Disassociate the record same way.

The post Associate or Disassociate Records for 1:N or N:N Relationship using Power Automate Relate Action CDS appeared first on Microsoft Dynamics 365 Blog.

]]>
4014