I am trying to post invoice through API but getting 400 Error with message: "CRM do not support direct update of Entity Reference properties, Use Navigation properties instead"
{
"prioritycode": 1,
"_pricelevelid_value": "45c01**b-ebbd-ea11-a812-000d3af055b6",
"totalamount": 0.0000,
"discountamount": 0.0000,
"discountpercentage": 0.0000000000,
"msdyn_ordertype": 192350000,
"totallineitemamount": 0.0000,
"billto_postalcode": "94965",
"importsequencenumber": 26,
"skippricecalculation": 0,
"shipto_postalcode": "94965",
"shipto_freighttermscode": 1,
"shipto_country": "USA",
"name": "Heath",
"totalamountlessfreight": 0.0000,
"shipto_line1": "404 Gate Five Road ",
"msdyn_amountdue_base": 0.0000,
"msdyn_projectinvoicestatus": 192350002,
"totallineitemdiscountamount": 0.0000,
"msdyn_amountdue": 0.0000,
"billto_line1": "404 Gate Five Road ",
"totaldiscountamount": 0.0000,
"statuscode": 100001,
"billto_country": "USA",
"billto_city": "Sausalito",
"totaltax": 0.0000,
"transactioncurrencyid@odata.bind": "/transactioncurrencies(233671c***-ea11-a812-000d3af055b6)",
"shipto_stateorprovince": "California",
"shipto_city": "Sausalito",
"discountamount_base": 0.0000,
"pricingerrorcode": 0,
"billto_stateorprovince": "California",
"statecode": 2,
"ownerid@odata.bind": "/systemusers(574d71***-ea11-a812-000d3af03ad1)",
"customerid_contact@odata.bind": "contacts/558ee***-dabd-ea11-a812-000d3af05a1b"
}
Please help me out.This is an urgent requirent.