Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Web API Bad Request creating Address record (customeraddress)

$
0
0

Hi all,

I'm receiving a Status Code 400: Bad Request error when trying to create a new Address record using the Web API. I'm able to authenticate as expected and when I change my JSON to create an account record it works perfectly.

I've tried the following for my JSON:

JObject newAddress = new JObject
{
{"Name", "Address Test"},
{"addresstypecode", 1},
{"Line1", "Line 1"},
{ "ParentId_contact@odata.bind","/contacts(b1d5e428-e130-e811-812f-e0071b6e06c1)"},
{"ObjectTypeCode", 2}
};

Any suggestions helpful!

Thanks,
Vikesh


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>