on ‎2018 Dec 17 2:37 PM
Hello,
Its possible send more than one product at the same time to marketing use this API?
Because I have something like this, and the marketing only receive the first one A190.
Whats is wrong with this? How can I import all the porducts?
Thanks
--batch
content-type:multipart/mixed; boundary=changeset_boomi
--changeset_boomi
content-type: application/http
content-transfer-encoding: binary
PATCH ProductOriginDataSet(ProductID='A190',ProductOrigin='SAP_HYBRIS_PRODUCT') HTTP/1.1
Content-Length: 1035
Accept: application/json
Content-Type: application/json
Sap-Cuan-SourceSystemId: P02CLNT100
Sap-Cuan-SourceSystemType: XXX_XXX
Sap-Cuan-SequenceId: XXX_PRODHIER
Sap-Cuan-RequestTimestamp: 2018-12-04T08:01:01
Sap-Cuan-ExternalReferenceId: HYB_001
{
"ProductOrigin" : "SAP_HYBRIS_PRODUCT",
"ProductID" : "A190",
"Brand" : "FOSTERS"
}
--changeset_boomi----changeset_boomi
content-type: application/http
content-transfer-encoding: binary
PATCH ProductOriginDataSet(ProductID='A191',ProductOrigin='SAP_HYBRIS_PRODUCT') HTTP/1.1
Content-Length: 1035
Accept: application/json
Content-Type: application/json
Sap-Cuan-SourceSystemId: P02CLNT100
Sap-Cuan-SourceSystemType: XXX_XXX
Sap-Cuan-SequenceId: XXX_PRODHIER
Sap-Cuan-RequestTimestamp: 2018-12-04T08:01:01
Sap-Cuan-ExternalReferenceId: HYB_001
{
"ProductOrigin" : "SAP_HYBRIS_PRODUCT",
"ProductID" : "A191",
"Brand" : "FOSTERS"
}
--changeset_boomi----changeset_boomi
content-type: application/http
content-transfer-encoding: binary
PATCH ProductOriginDataSet(ProductID='A954',ProductOrigin='SAP_HYBRIS_PRODUCT') HTTP/1.1
Content-Length: 1035
Accept: application/json
Content-Type: application/json
Sap-Cuan-SourceSystemId: P02CLNT100
Sap-Cuan-SourceSystemType: XXX_XXX
Sap-Cuan-SequenceId: XXX_PRODHIER
Sap-Cuan-RequestTimestamp: 2018-12-04T08:01:01
Sap-Cuan-ExternalReferenceId: HYB_001
{
"ProductOrigin" : "SAP_HYBRIS_PRODUCT",
"ProductID" : "A954",
"Brand" : "FOSTERS"
}
--changeset_boomi----changeset_boomi
content-type: application/http
content-transfer-encoding: binary
PATCH ProductOriginDataSet(ProductID='C086',ProductOrigin='SAP_HYBRIS_PRODUCT') HTTP/1.1
Content-Length: 1035
Accept: application/json
Content-Type: application/json
Sap-Cuan-SourceSystemId: P02CLNT100
Sap-Cuan-SourceSystemType: XXX_XXX
Sap-Cuan-SequenceId: XXX_PRODHIER
Sap-Cuan-RequestTimestamp: 2018-12-04T08:01:01
Sap-Cuan-ExternalReferenceId: HYB_001
{
"ProductOrigin" : "SAP_HYBRIS_PRODUCT",
"ProductID" : "C086",
"Brand" : "FOSTERS"
}
--changeset_boomi----changeset_boomi
content-type: application/http
content-transfer-encoding: binary
PATCH ProductOriginDataSet(ProductID='CD23',ProductOrigin='SAP_HYBRIS_PRODUCT') HTTP/1.1
Content-Length: 1035
Accept: application/json
Content-Type: application/json
Sap-Cuan-SourceSystemId: P02CLNT100
Sap-Cuan-SourceSystemType: XXX_XXX
Sap-Cuan-SequenceId: XXX_PRODHIER
Sap-Cuan-RequestTimestamp: 2018-12-04T08:01:01
Sap-Cuan-ExternalReferenceId: HYB_001
{
"ProductOrigin" : "SAP_HYBRIS_PRODUCT",
"ProductID" : "CD23",
"Brand" : "FOSTERS"
}
--changeset_boomi----changeset_boomi
content-type: application/http
content-transfer-encoding: binary
PATCH ProductOriginDataSet(ProductID='CJ92',ProductOrigin='SAP_HYBRIS_PRODUCT') HTTP/1.1
Content-Length: 1035
Accept: application/json
Content-Type: application/json
Sap-Cuan-SourceSystemId: P02CLNT100
Sap-Cuan-SourceSystemType: XXX_XXX
Sap-Cuan-SequenceId: XXX_PRODHIER
Sap-Cuan-RequestTimestamp: 2018-12-04T08:01:01
Sap-Cuan-ExternalReferenceId: HYB_001
{
"ProductOrigin" : "SAP_HYBRIS_PRODUCT",
"ProductID" : "CJ92",
"Brand" : "FOSTERS"
}
--changeset_boomi----changeset_boomi
content-type: application/http
content-transfer-encoding: binary
PATCH ProductOriginDataSet(ProductID='DI59',ProductOrigin='SAP_HYBRIS_PRODUCT') HTTP/1.1
Content-Length: 1035
Accept: application/json
Content-Type: application/json
Sap-Cuan-SourceSystemId: P02CLNT100
Sap-Cuan-SourceSystemType: XXX_XXX
Sap-Cuan-SequenceId: XXX_PRODHIER
Sap-Cuan-RequestTimestamp: 2018-12-04T08:01:01
Sap-Cuan-ExternalReferenceId: HYB_001
{
"ProductOrigin" : "SAP_HYBRIS_PRODUCT",
"ProductID" : "DI59",
"Brand" : "FOSTERS"
}
--changeset_boomi--
--batch--
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hi Marisa,
If you change all of these lines
--changeset_boomi----changeset_boomi
to this
--changeset_boomi
I think it will work.
Regards,
Cagri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marisa,
please have alook at the examples here: Products API docu
I guess the problem is related to your changeset representation.
Like e.g. it changes from --changeset_boomi to --changeset_boomi----changeset_boomi
As it is changing in a not correct way in your payload. Please check the samples and adapt your payload.
BR
Maik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.