on 11-02-2018 1:01 AM
Hi.
I'm using Service Layer to create documents on SAP B1.
I heard that there are two ways to create a document.
One is the normal format... (* no using batch)
The other one is using batches... For example...
(normal)
PATCH https://ServerAddress:50000/b1s/v1/ObjectName
{ "Code": "1170",
"DocEntry": 5,
"FiledName": "Y" }
(batch)
https://ServerAddress:50000/b1s/v1/$batch
--batch_36522ad7-fc75-4b56-8c71-56071383e77b
Content-Type: multipart/mixed;boundary=changeset_77162fcd-b8da-41ac-a9f8-9357efbbd
--changeset_77162fcd-b8da-41ac-a9f8-9357efbbd
Content-Type: application/http
Content-Transfer-Encoding: binary
Content-ID: 1
PATCH /b1s/v1/ObjectName('1170')
Content-Type: application/json
{ "Code": "1170", "DocEntry": 5, "FiledName": "Y" }
......
I don't know how different this method is from the previous one. When should i use batch and why use ?
Hi HyeSoo Yoon,
Service Layer supports executing multiple operations sent in a single HTTP request through the use of batching.
For an example: Using Batch operations, you will be able to Create Item Master Data, Update Business Partner Master Data, Create Sales Invoice in a single HTTP request.
Hope it helps!
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
11 | |
10 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.