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 / Update a LOOKUP Column...
Power Automate
Suggested Answer

Update a LOOKUP Column in table B based on a Column in table A

(0) ShareShare
ReportReport
Posted on by 290
Hi guys,
 
I tried this quite a few times and I can't make it work! Please help.
 
Situation: 
Table A: 'Opportunities'
Table B: 'Activities'
Connected via a one-to-many relationship via the 'Opp ID' field. 
Basically, one Opportunity can have zero, one, or more Activities. 
In table B, there is this Lookup column called 'Milestone'. There's also a column called 'End Date'. 
In table A, I've created a column called 'Latest Milestone' (also a Lookup to the same table). 
 
What I need:
Every time a row in table B is updated or modified or deleted, the 'Latest Milestone' column gets updated with the Milestone with the latest 'End Date'.
Like, Opp 123 has two activities, one with Milestone 'Started' on 'End Date' 1-Jan-26', and another with Milestone 'Working' on 'End Date' 1-May-26', I'd like the 'Latest Milestone' to be 'Working'.
 
What I tried:
 
Cloud flow with:
- 'When a row is added, modified or deleted',
Table name, 'Activities'
- 'List rows',
Table name, 'Activities', 
Filter rows, _iu_oppid_value eq '@{triggerOutputs()?['body/_iu_oppid_value']}'
Sort By uu_enddate desc
Row count 1
- Condition
empty(outputs('List_rows')?['body/value'])
- If no: Update a row
Table name, 'Opportunities'
Row ID: @{triggerOutputs()?['body/_iu_oppid_value']} (so from the List Rows step above)
Outputs: 
outputs('List_rows')?['body/value'][0]['_uu_onboardingmilestones_value']
 
I keep getting errors for the last step. URL was not parsed due to an ODataUnrecognizedPathException. Resource not found for the segment '2f2....' provided in the URL.
What's goin on? 
Categories:
I have the same question (0)
  • Suggested answer
    Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 on at
    Hello @AliceW
     
    Looks like the issue is happening in the Update a row step because for Dataverse lookup columns you cannot directly pass only the GUID value.
     
    Syntax:
    /<LookUp_Entity_Set_Name>(GUID)
    

    Example:

    /uu_onboardingmilestoneses(@{outputs('List_rows')?['body/value'][0]['_uu_onboardingmilestones_value']})
     
    Please follow below link for step by step guidance. 
     
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------

    📩 Need more help? Just mention @Kalathiya and I’ll be happy to assist.

    ✔️ If this answer helped you, please tick “Does this answer your question?” so it can be marked as the Verified Answer.

    💛 A Like always motivates me to keep contributing!

  • AliceW Profile Picture
    290 on at
    Hi @Kalathiya,
     
    The first link just mentions a specific line: 'The unique identifier for the Contact Rene Valdes should be used here.'. I need it to work for all lines..
    The second one just... doesn't make much sense. Think I'll drop this idea.
  • Suggested answer
    Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 on at
    Hello @AliceW

    Links are just for reference regarding the lookup update syntax.
     

    You do not need to hardcode any GUID manually for each line.

    Instead of using a static ID like in the examples, you need to dynamically pass the GUID coming from your "List Rows" action.

    Something like:

    /uu_onboardingmilestoneses(@{outputs('List_rows')?['body/value'][0]['_uu_onboardingmilestones_value']})

    Your logic is correct overall, only the lookup update syntax is causing the issue currently.

    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------

    📩 Need more help? Just mention @Kalathiya and I’ll be happy to assist.

    ✔️ If this answer helped you, please tick “Does this answer your question?” so it can be marked as the Verified Answer.

    💛 A Like always motivates me to keep contributing

  • AliceW Profile Picture
    290 on at
    Thank you, but it still crashed :( 
    I appreciate your time though.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard