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 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
    Microsoft Employee 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

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 Apps

#1
Valantis Profile Picture

Valantis 426

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard