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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Deleting record in dyn...
Power Automate
Answered

Deleting record in dynamics using flows

(0) ShareShare
ReportReport
Posted on by 5

Hi All,

I am very new flows and got a requirement to delete the record in dynamics based on the condition taken on Yes/NO field is NO and look up field contains data.

Here I am explaining in detail.

Based on the trigger when a record(parent record) is updated then i have to verify the condition on yes /no field and look up field on  Parent entity and then delete the child record.

Here I am troubling to assign the look up  value doest contain data and boolean filed should be equal to NO in conditon.

Please help me to solve this.flow 1.JPGFlow 2.JPG

Categories:
I have the same question (0)
  • MJain Profile Picture
    2,450 on at

    Hi @Radhika2020 ,

     

    In order to check for lookup condition you need to use following format (field refers to schema name of field you are using )

     

    _field_value 

     

     

    Thanks

     

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Radhika2020 

     

    Like @ManishJain mentioned make sure you set the value for checking the null.

     

    image.png

     

    Also you mentioned the Yes/No and if its a boolean value then most likely default value will be false. So make sure check false instead of null. If the Yes/No is an optionset values then ofcourse you can check null against it.

     

    If you have anymore questions please let me know.

     

    Thanks

  • Radhika Thadivaka Profile Picture
    5 on at

    Thanks for the reply.

    So you mean that I have to take schema name for look up field instead of field name(Dynamics content) and should be referred to "Null" could you please mention the format with an image.

     

     

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Radhika2020 

     

    Thanks for your reply. 

     

    Here it is. Here I mapped the accountid (Value) which is my lookup field value.

     

    image.png

     

    image.png

  • Verified answer
    abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Radhika2020 

     

    Thanks for the discussion.

     

    Setting the correct lookup id and boolean value check will determine the conditions and finally passing the id will delete the record. This is already described in my earlier screenshot. If your lookup is M:M relationship this technique won't work. 

     

    Thanks

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard