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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,254)