cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Serviced2000
Helper III
Helper III

Patch a CDS Table - Lookup Column Does Not Exist

Hi There,

 

I am trying to get my canvas app to add a record to a CDS table called 'Notes' where the column the defines the relationship between the note and another object id called 'Regarding'. On the Note entity it's quite clearly there :

 

Serviced2000_0-1628726280316.png

 

But when I try and Patch it I get this error :

 

Serviced2000_1-1628726360180.png

 

Looking at the table in CDS / Dynamics, I can't see the 'Regarding' column there either.

 

Has anyone come across / solved this?

 

Thanks!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User
Super User

@Serviced2000 

Sometimes the actual name of the table is different from the display name.  Check your table in Dataverse to see if they are the same and if not, try using the actual name in your patch. !1.jpg

View solution in original post

2 REPLIES 2
Drrickryp
Super User
Super User

@Serviced2000 

Sometimes the actual name of the table is different from the display name.  Check your table in Dataverse to see if they are the same and if not, try using the actual name in your patch. !1.jpg

View solution in original post

Serviced2000
Helper III
Helper III

You are absolutely right - I literally just stumbled across the solution - it turns out to be : 

 

{'Regarding (_objectid_value)': Gallery2.Selected}

 

Where the column display name is 'Regarding' but the actual column name in the table is 'objectid'

 

The Power Apps intellisense gave me this solution, but hadn't before I'd posted my rant! 🙂

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,432)