web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Set a value on lkp field using API

(0) ShareShare
ReportReport
Posted on by 12

Hello 

i am trying to set a value on parentcustomerid_value lkp field on Contacts, already i trying using parentcustomerid_value@odata.bind but it doesnt works

the error message i got is below

message": "An error occurred while validating input parameters: Microsoft.OData.ODataException: A property 'xxxxxx' which only has property annotations in the payload but no property value is declared to be of type 'Edm.Guid'.

My question is what is the correct way to set a value on a lkp field, thanks a lot 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ajyendra Profile Picture
    1,738 on at
  • Suggested answer
    Joana Pinto Profile Picture
    740 on at

    Hi,

    try this:

    entity["parentcustomerid@odata.bind"] = "/accounts(fffffffffffff)"; // or "/contacts(GUID)"

    Don't put the "_value" suffix. I used CRM Rest Builder.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans