Topic by Amitav G
Content
Hi,
We were able to create Incident using single Record structure using below JSON Structure in Right now using Rest API
[
{
"primaryContact":
{
"id": 1201
},
"subject": "FishPhone not working 10"
}
]
However when we are trying to creates more than one Incidents records in service cloud using REST API and We have formed the JSON structure as below
[
{
"primaryContact":
{
"id": 1201
},
"subject": "FishPhone not working 10"
},
{
"primaryContact":
{
"id": 1201
},
"subject": "FishPhone not working 11"
}
]
But it is not allowing and throwing the following error.
{
"type": "https:/xxxxxxxx.com/services/rest/connect/exceptions/OSC-CREST-00013",
"title": "Unrecognized resource",
"status": 400,
"detail": "Invalid property specified: incident",
"instance": "https://xxxxxxxxxx.com/services/rest/connect/v1.3/incidents",
"o:errorCode": "OSC-CREST-00013"
}
Please let me know if there is any way to create multiple objects using json in REST services.
Help will be much appreciated.
Thanks,
Ashok