cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Robert_Rybaric
New Member

Common Data Service (current environment) connector question

Hi, can someone please point me to the right direction?

 

I am using the Common Data Service (current environment) connector as a trigger, which should trigger by create, update and delete events for a CDS entity. The question is, where can be found, which if these 3 events has actually triggered the flow.

 

Thanks!

 

Robert Rybaric

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Robert_Rybaric 

You can get it from the trigger output as below

Mira_Ghaly_0-1595419490639.png

Use Data Operations - Compose: as below

triggerOutputs()?['body']['sdkmessage']

Mira_Ghaly_2-1595419566194.png

 

Mira_Ghaly_1-1595419527676.png

 

If this solves your problem , Please Mark as an Accepted solution. Thanks

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

View solution in original post

5 REPLIES 5
Mira_Ghaly
Dual Super User II
Dual Super User II

@Robert_Rybaric

You can check this from the flow run history - open the specific run and open the trigger step

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

Sorry, maybe I was not clear enough - I need to figure out the triggering event within the flow itself to be able to decide about the business logic.

Hi @Robert_Rybaric 

You can get it from the trigger output as below

Mira_Ghaly_0-1595419490639.png

Use Data Operations - Compose: as below

triggerOutputs()?['body']['sdkmessage']

Mira_Ghaly_2-1595419566194.png

 

Mira_Ghaly_1-1595419527676.png

 

If this solves your problem , Please Mark as an Accepted solution. Thanks

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

View solution in original post

Thanks, that is the exactly what I was looking for. But now I am facing another issue. When the flow triggers based on Delete event, there are no values in the deleted record's fields dynamic content. Is it a standard behavior, that the record field values are not available for the delete event?

Mira_Ghaly
Dual Super User II
Dual Super User II

@Robert_Rybaric

Yes this is the default behaviour because flows execute in asynchronous mode so you can't capture the data of the deleted record, in case you want to capture this data you need a plugin that runs on the delete message and use the preimage to get the deleted record. 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,130)