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

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

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