You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Not able to create multiple records in service cloud using Rest API though JSON structure

Question
7
Views
0
Comments
edited Sep 27, 2016 10:07AM in Integrations and APIs

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!