Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3193

Re: OData SADL Batchrequest with multiple changesets doesn't work

$
0
0

Hello Stefan,

Try below once and check.

Put each operations associated with each entity within in a separate Change_Set and batch ( Highlighted ones ).

 

Sample Payload ->

 

--batch

Content-Type: multipart/mixed; boundary=changeset

 

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

 

POST Create_dataSet HTTP/1.1

Content-Type: application/json

Accept: application/json

Content-Length: 975

 

{

"ID":"1023",

"Name":"John"

}

 

--changeset--

 

--batch

Content-Type: multipart/mixed; boundary=changeset

 

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

 

PUT Update_dataSet(ID='1023') HTTP/1.1

Content-Type: application/json

Accept: application/json

Content-Length: 975

 

{

"ID":"1023",

"Name":"Nick"

}

 

--changeset--

 

--batch

Content-Type: multipart/mixed; boundary=changeset

 

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

 

DELETE Delete_dataSet(ID='1023') HTTP/1.1

 

 

--changeset--

--batch--

 

Create your payload as above and check value of mv_changeset_optotal .

 

Regards,

Ashwin


Viewing all articles
Browse latest Browse all 3193

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>