cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Brisbane_Jones
Level: Powered On

CDS Connector to Dynamic - Update Trigger - Running Multiple Times

We have a CDS Flow that triggers on Update of an Invoice Detail record in Dynamics 365.

 

However, for some reason three events are triggered rather than the expected one:

 

Update Flow - multiple runs triggered.jpg

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft JisungHan
Microsoft

Re: CDS Connector to Dynamic - Update Trigger - Running Multiple Times

There is no way to manage the running process between run history A and run history B, C in the Power Automate product.

 

Please specify the filter attribute setting to restrict the triggering process:

 

Triggers that run when a record is updated can also use filtering attributes. This ensures that the flow only runs when any of the defined attributes are updated.

 

Important: Use filter attributes to prevent your flow from unnecessarily running.

 

This flow triggers any time the first or last name of contact that the flow user owns is updated.

image.png

[Ref: https://docs.microsoft.com/en-us/power-automate/connection-cds#initiate-a-flow-from-common-data-serv...

 

Please review whether the action item above is suitable for you and let me know if you have any further questions. Thanks!

View solution in original post

3 REPLIES 3
Microsoft JisungHan
Microsoft

Re: CDS Connector to Dynamic - Update Trigger - Running Multiple Times

Would you please answer the following questions?

 

Questions

========

1. Would you please share screenshots that is integrated with CDS connector?

2. If the Invoice Detail record has own custom Workflow or Plugin in the Dynamics 365 instance side to update some field values when updating the entity record, the Flow would be triggering it based on the custom Workflow or Plugin logics. Would you please confirm whether there are any custom Workflow or Plugin in the Dynamics 365 itself which is triggering based on update the Invoice Detail entity?

Brisbane_Jones
Level: Powered On

Re: CDS Connector to Dynamic - Update Trigger - Running Multiple Times

 

Thanks for the tip.

 

After CREATE, Dynamics performs and internal UPDATE to set the transaction price list values.

 

We then have a Plugin that generates a tax value UPDATING Invoice Product.

 

That triggers the internal Dynamics process again to recalculate the Totals.

 

So, I guess my question should be - is there a way to Cancel Flows running on the same Entity?  In that way when the 2nd triggers it can Cancel the first.  When 3rd Triggers, it could cancel the 2nd.  I suspect not.

 

 

 

 

The Invoice and Details are created via a Plug-In (On Opportunity Won), however the code only Creates (no Update).  

 

Simple Trigger. No Attributes

Trigger CDS Connector.jpg

or special settings

Trigger CDS Connector settings.jpg

 

 

Microsoft JisungHan
Microsoft

Re: CDS Connector to Dynamic - Update Trigger - Running Multiple Times

There is no way to manage the running process between run history A and run history B, C in the Power Automate product.

 

Please specify the filter attribute setting to restrict the triggering process:

 

Triggers that run when a record is updated can also use filtering attributes. This ensures that the flow only runs when any of the defined attributes are updated.

 

Important: Use filter attributes to prevent your flow from unnecessarily running.

 

This flow triggers any time the first or last name of contact that the flow user owns is updated.

image.png

[Ref: https://docs.microsoft.com/en-us/power-automate/connection-cds#initiate-a-flow-from-common-data-serv...

 

Please review whether the action item above is suitable for you and let me know if you have any further questions. Thanks!

View solution in original post

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (5,151)