cancel
Showing results for 
Search instead for 
Did you mean: 

[C4C] Creating a $batch Call Out of The Console

tokgozatakan
Participant
0 Kudos

OData Console is a great tool for calling requests etc. I would like to know how to do batch calls from the console itself. The part that I am confused about is how to link the related fields between collections (i.e Parent Object ID)

Example Scenario:

Lead Creation including a Z1 party role into Sales Team.

Accepted Solutions (1)

Accepted Solutions (1)

tokgozatakan
Participant
0 Kudos

The answer is to use DEEPINSERT, at least for the same object and its child entities.

https://blogs.sap.com/2020/06/29/how-to-create-service-request-and-its-item-details-using-deep-inser...

I selected the deep insert method and pasted the following payload.

{
    "Name": "Your ticket subject",
    "ProcessingTypeCode": "SRRQ",
    "DataOriginTypeCode": "4",
    "BuyerPartyID": "10000",
    "BuyerMainContactPartyID": "20000",
    "ServicePriorityCode": "1",
    "ServiceRequestUserLifeCycleStatusCode": "1",
    "ObjectServiceIssueCategoryID": "CA_01_01",
    "IncidentServiceIssueCategoryID": "CA_01",
    "ServiceIssueCategoryID": "CA",
    "ServiceRequestTextCollection": [
        {
            "FormattedText": "text",
            "TypeCode": "10004"
        }
    ],
    "ServiceRequestBusinessTransactionDocumentReference": []
}

Answers (0)