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 / Why can't I set a rela...
Power Apps
Unanswered

Why can't I set a related entity in a patch statement?

(0) ShareShare
ReportReport
Posted on by 2

 

I have a button patching records into a Common Data Service table from table passed to a screen as a context argument. I want to set the patch record to 

 

{RelatedEntity: LookUp(RelatedEntities, Id=relatedEntityId)}

 

However the PowerApps environment doesn't recognise a relationship as a valid column. It also doesn't accept setting the relationship entity ID in this format either.

 

How do I set a related entity to an entity to be patched?

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi tomw,

     

    Please make sure the Lookup function you are using will return proper value.

     

    Please check the doc about Lookup function for a reference:
    https://powerapps.microsoft.com/en-us/tutorials/function-filter-lookup/

     

    I assume that RelatedEntity and RelatedEntities have a Lookup relationship.

     

    Please show me the whole code you are using on your side.

     

    When you are using the code, what’s the error message you are getting?


    Best regards,
    Mabel Mao

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard