How to add multiple records at once using supplierNegotiation REST service
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":{
Tagged:
3