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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Xrm.WebApi.CreateRecor...
Power Apps
Answered

Xrm.WebApi.CreateRecord with lookup to parent table and account table

(0) ShareShare
ReportReport
Posted on by 65

Hi all,

 

This is my first attempt at creating a record via XRM.WebApi.CreateRecord.

Parent entity: kcw_segmentquote

Child entity: kcw_supplierquote

Other lookup: account

parentRecordId and guid both have valid values

 

I am trying to create a child record and populate the lookup to the parent entity as well as a lookup to the account entity. 

 

Here is my code:

kcward55_0-1711481904758.png

 

I have tried both plural and singular entity names. 

 

I have also tried "_kcw_segmentquotelookup_value"  and "_kcw_accountlookup_value".

 

Error message:

 

An undeclared property 'kcw_segmentquotelookup' which only has property annotations in the payload but no property value was found in the payload. In OData, only declared navigation properties and declared named streams can be represented as properties without values.

 

Any help you can provide is greatly appreciated.

 

I have the same question (0)
  • Verified answer
    Fubar Profile Picture
    8,346 Super User 2025 Season 2 on at

    Double check that your parentRecordId and guid variables contain valid values.

    You can also use the REST Builder in XrmToolBox to confirm that your JSON is structured correctly (it will also look after the correct 'plural' names etc).

  • kcward55 Profile Picture
    65 on at

    Hi @Fubar 

     

    That worked very well. Thanks so much!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard