Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
How to add multiple records at once using supplierNegotiation REST service — Cloud Customer Connect
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

How to add multiple records at once using supplierNegotiation REST service

Question
24
Views
0
Comments
edited Jan 2, 2020 6:36PM in Sourcing

Content

In release 19C, POST action was enabled to support the creation of draft negotiations with lines, collaboration team members, and suppliers.

Do you know that there is a “batch” mode for this POST action which allows you to add multiple records at once. In the example below, for many negotiations if you want to add a set of collaboration team members, you can now do that using POST action. See the code snippet below on how to do it.

For more information on Fusion Sourcing REST services, refer to Oracle Help Center.

Code Snippet

Example:
Below example describes on how to add 2 collaboration team members to 2 existing negotiations.
Use the following cURL command to submit a request on the REST resource.
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.batch+json" -d 'request payload' "https://servername/fscmRestApi/resources/version "
Request Body:
{
   "parts":[
      {
          "id":"part1",
          "path":"/supplierNegotiations/ 300100181120414/child/collaborationTeamMembers",
          "operation":"create",
          "payload":{
           

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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