cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

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

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
Microsoft

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?

 

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

 

 

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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (52,365)