cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Prodigy
Post Prodigy

How to know if entity record is created or updated in power automate?

Hello,

 

I am using the CDS action called "List Records" that returns records succefully, however I require to identify whether specific item was created/updated today - how can I check that?

 

Thanks,

6 REPLIES 6
Solution Sage
Solution Sage

Hi @dave8 ,

 

Since you can take advantage of fetchxml I would suggest you do advanced find first with your requirement and download fetchxml of it. Then  in List records action use the same fetchxml under advanced options.

Capture.JPG

 

Thanks

Community Support
Community Support

 

Hi @dave8 ,

 

Please try to paste the following expression to Filter Query to filter records and see if it helps:

(createdon ge '@{utcNow('yyyy-MM-ddT00:00:00Z')}' and createdon lt '@{addDays(utcNow(),1,'yyyy-MM-ddT00:00:00Z')} ') or (modifiedon ge '@{utcNow('yyyy-MM-ddT00:00:00Z')}' and modifiedon lt '@{addDays(utcNow(),1,'yyyy-MM-ddT00:00:00Z')}')

 

Best Regards, 

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello @v-bacao-msft @ManishJain 

 

Actually I am already receiving records by matching it's value with "Modified On" via condition and that works.

 

What is challenging is to identifying - "This record is created/updated/deleted" - How can I know this in Power Automate? Similarly as it shows in "Audit Summary View"?

 

Thanks,

 

Hi @dave8 ,

 

The first method is that you can create a Flow in the solution, and then use the When a record is created, updated or deleted included in the Common Data Service (current environment) connector as the trigger, and then check whether there is any in the trigger body that can be used Determine that the current record is created/updated/deleted.

 

In the second method, you can create three flows to correspond to created/updated/deleted.

20.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Unfortunately, I need to receive deleted item information which is not received when record is deleted action.

 

is there any way to get deleted item information in power automate?

 

Thanks,

 

Hi @dave8 ,

 

I think this is impossible. Since it is an item that has been deleted, then we cannot get its related information. Unless you create a new entity to back up the record in this entity in advance.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

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!

Top Solution Authors
Users online (6,622)