web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Checking if real-time ...
Power Apps
Unanswered

Checking if real-time workflow was triggered by create or delete

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

Is it possible to determine whether a real-time workflow was triggered by creating a new record or deleting an existing record (if both the 'Start After Record is created' and 'Start Before Record is deleted' are enabled)? Similarly to how it can be done in a Power Automate cloud flow (https://community.dynamics.com/365/f/dynamics-365-general-forum/447916/power-automate---switch-between-change-type). 

 

Do I need to make a separate workflow for each case, or can I implement this logic in a workflow? 

 

Thanks

 

 

I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @jarod ,

     

    As long as real-time is concerned, power automate doesn't offer real-time solution. 

    You can get near real-time or expect delay because execution happens async. 

     

    There's workflows in dataverse that you can use for real-time in some scenarios.

    To understand if a workflow is triggered: You can see run history in 'Process Sessions'

    Ethan_R_0-1685428664293.png

     

    Hope this helps

  • jarod Profile Picture
    4 on at

    Hi @Ethan_R, thanks for replying. My question is can you determine specifically the trigger of the real-time workflow using a conditional branch.

    For example, if I had a flow that was triggered to start on both of these two conditions:

    1. Start After a record is created
    2. Start Before a record is deleted

    And in the workflow, I wanted to create a record on a different table (Comment), but the details of that Comment would depend on whether the flow was triggered by a record that was getting deleted, or one that was just created. (i.e. If the record was deleted, I want the Comment to say "{Record Name} was deleted", and if a new record was created, I want the Comment to say "A new record was created, called {Record Name}").

     

    In Power Automate, I know you can determine the metadata about the trigger via the SdkMessage property and thus determine the change type of the Dataverse trigger (such as create, modified, or deleted), as is explained here.

    Thanks

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @jarod ,

     

    You can try having 2 different workflows if you can't determine trigger status as in this case.

    Also, I recommend using Plugins in such case which has higher flexibility and efficient. 

     

    In terms of workflows: Documentation Link

    Ethan_R_0-1685432309974.png

     

     

    Hope this helps

  • jarod Profile Picture
    4 on at

    Thanks @Ethan_R, I thought that might be the case. I will proceed with making two separate workflows. (I'm trying to avoid custom code / plugins for this solution).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard