Skip to content

POST to create intersect entity record not considering schema name capitalization #5

@stevenfayers

Description

@stevenfayers

When the POST to create the intersect entity record is initiated, the script fails.

An undeclared property 'aaa_opportunityproduct' which only has property annotations in the payload but no property value was found in the payload.

The payload that the solution tried to post was
{"aaa_opportunityproduct@odata.bind":"/aaa_opportunityproducts(0561b2d3-51ce-ec11-a7b5-0022489d246a)","aaa_country@odata.bind":"/aaa_countries(625b02d9-92fc-e911-a813-000d3ab5549a)"}

The payload that is needed is (tried in Postman):
{"aaa_OpportunityProduct@odata.bind":"/aaa_opportunityproducts(0561b2d3-51ce-ec11-a7b5-0022489d246a)","aaa_Country@odata.bind":"/aaa_countries(625b02d9-92fc-e911-a813-000d3ab5549a)"}

For lookups Microsoft requires that that attribute schema name is used before the @odata.bind, which can have case differences from the normal attribute name

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions