on 06-19-2020 12:23 PM
Hello Team,
I am using API_MKT_PRODUCT_SRV API to load Product to Marketing. But as ProductUUID field is mandatory, can anyone help me with what value has to be passed in this.
i am fetching ProductUUID from marketing and passing in mapping, still i am getting below error:
(( in the server is outdated OR (2) The request payload seems to be incorrect. Error Details : Parsing exception, com.sap.gateway.core.ip.processor.exception.ODataProcessingException: Cannot convert "01234567-89ab-cdef-0123-456789abcdef" to java.util.UUID, java.lang.NumberFormatException: For input string: ""01234567" ))
Also, as per the SAP value has to be like this:
"ProductUUID":"01234567-89ab-cdef-0123-456789abcdef",
Can someone please suggest what should be the value mapped to Productuuid.
Regards,
Ritul Rai
Hi,
Why do you need to pass the ProductUUID field for loading the products to Marketing? It is not needed. This field(ProductUUID) value is auto-generated by the system upon creation of a product in SAP Marketing Cloud. In order to create a product you need to make a PATCH method call for entityset ProductOriginDataSet of API API_MKT_PRODUCT_SRV.
Ex URL: https://<Host>/sap/opu/odata/SAP/API_MKT_PRODUCT_SRV/$batch (POST Call)
Use the following payload with request header parameter "Content-Type" as "multipart/mixed; boundary=batch_guid_01".
--batch_guid_01
Content-Type: multipart/mixed; boundary=changeset_guid_01
--changeset_guid_01
Content-Type: application/http
Content-Transfer-Encoding: binary
PATCH ProductOriginDataSet(ProductID='MATNR_HYBRIS',ProductOrigin='SAP_ERP_MATNR') HTTP/1.1
Content-Length: 1035
Accept: application/json
Content-Type: application/json
{
"ProductOrigin":"SAP_ERP_MATNR",
"ProductID":"MATNR_HYBRIS",
"WebsiteURL":"https://www.amazon.com/Organic-Espresso-Bean-Coffee-5-Pound/dp/B002GWHAVM?th=1",
"ProductImageURL":"https://images-na.ssl-images-amazon.com/images/I/51tbABf6XKL._SX522_.jpg",
"Brand":"",
"IsBaseProduct":true
}
--changeset_guid_01--
--batch_guid_01--
For more details, pls refer https://help.sap.com/viewer/0f9408e4921e4ba3bb4a7a1f75f837a7/2005.500/en-US/c89a08a0954e4944aa1ac1c4...
BR
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Deatield and good example!
Thank you! mateusz_adamus_dd for notifying that, i just updated
Regards,
Ritul Rai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
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.