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

Retrieving lookup data with delete trigger

Hi all,

 

I wanted to use a cloud flow to trigger when a record is deleted so I can edit another record from an entity that's related to it, but it seems the trigger doesn't bring any lookup data, no IDs, nothing. So when my flow runs I got an error when trying to use lookup ID values.

 

Is there anyway to implement this?

1 ACCEPTED SOLUTION

Accepted Solutions
fchopo
Super User
Super User

You will be able to get the id but you will not be able to get any reference to the fields because power automate works as asynchronous which means it will be run on post operation.

You could write a plugin pre-operation to store the references from the deleted record: Tutorial: Write and register a plug-in (Microsoft Dataverse) - Power Apps | Microsoft Docs

Hope it helps!

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

3 REPLIES 3
fchopo
Super User
Super User

Hi @MiRA0001 

Are you using SharePoint or Dataverse as datasource?

Regards,

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

Dataverse

fchopo
Super User
Super User

You will be able to get the id but you will not be able to get any reference to the fields because power automate works as asynchronous which means it will be run on post operation.

You could write a plugin pre-operation to store the references from the deleted record: Tutorial: Write and register a plug-in (Microsoft Dataverse) - Power Apps | Microsoft Docs

Hope it helps!

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (4,073)