Since you asked about product feeds in the other thread https://developer.salesforce.com/forums/ForumsMain?id=9060G000000XcNxQAK, this explains how to send a product feed to Amazon. You should be able to covert this to send any feed to Amazon.
In order to send feeds to Amazon you need to include an XML body and ContentMD5Value in the Amazon request. This first function prepares the XML body, it assumes you are looping through all the products you have in Salesforce that you want to create or update in Amazon. You need to pass it your seller id and a list of the products you want to send to Amazon. And update it with your own values.
This should return your FeedSubmissionId and you can use that to check the status and confirm that the feed was accepted. See http://docs.developer.amazonservices.com/en_UK/feeds/Feeds_GetFeedSubmissionResult.html
Since you asked about product feeds in the other thread https://developer.salesforce.com/forums/ForumsMain?id=9060G000000XcNxQAK, this explains how to send a product feed to Amazon. You should be able to covert this to send any feed to Amazon.
In order to send feeds to Amazon you need to include an XML body and ContentMD5Value in the Amazon request. This first function prepares the XML body, it assumes you are looping through all the products you have in Salesforce that you want to create or update in Amazon. You need to pass it your seller id and a list of the products you want to send to Amazon. And update it with your own values.
This should return your FeedSubmissionId and you can use that to check the status and confirm that the feed was accepted. See http://docs.developer.amazonservices.com/en_UK/feeds/Feeds_GetFeedSubmissionResult.html
Your solution seems promising and also signifying the possibility of bulk product uploads . Also can we send product images along with same xml body or we have to use the other feedType and a different callout for image upload ?
Yes you can send images, just give the type and the link, put this under SKU: <ImageType>Main</ImageType> <ImageLocation>URL</ImageLocation></ProductImage>
I think something is missing while I am calling feed api from salesforce . Can you look below sample code which is similar to yours but returning error "Invalid query string provided - Keys may not contain <" .
The whole code sample is similar to your orderList code https://developer.salesforce.com/forums/ForumsMain?id=9060G000000XcNxQAK and I have changed values wherever needed but its returning error with code 400.
There are just two changes you need 1) Set the request header - req.setHeader('Content-type', 'text/xml'); 2) You should have the ContentM5 value in the query string
Thanks @Grainne , That took some time but worked :) but still I am unable to send images along with product xml . I was able to do it with image api but not with product feed while creating a product . It says image tag is not expected here. Do you have any sample xml for doing this ?
Hey AKum, yes, you can easily do it as numerous platforms assist the process of integration of Amazon Seller Central to Salesforce, which includes the methods of automation of business and the sharing of data. Most companies as well as every need to integrate vary from one another. The most common is the front-office web property that has a back-office app, like an online storefront linked to an ERP, to pass orders via automatic processing when the order is placed online. Explore a lot more details on this topic through https://sellersonar.com/blog/rma-amazon-what-is-it/ now. By successfully doing so one can deal with the power of technology to customize the agent experience via data.
Since you asked about product feeds in the other thread https://developer.salesforce.com/forums/ForumsMain?id=9060G000000XcNxQAK, this explains how to send a product feed to Amazon. You should be able to covert this to send any feed to Amazon.
In order to send feeds to Amazon you need to include an XML body and ContentMD5Value in the Amazon request. This first function prepares the XML body, it assumes you are looping through all the products you have in Salesforce that you want to create or update in Amazon. You need to pass it your seller id and a list of the products you want to send to Amazon. And update it with your own values.
Then use this XML Body to get the ContentMD5Value:
Then send the request to Amazon, you will need to prepare a signature to do this.
This should return your FeedSubmissionId and you can use that to check the status and confirm that the feed was accepted.
See http://docs.developer.amazonservices.com/en_UK/feeds/Feeds_GetFeedSubmissionResult.html
I hope this helps.
Gráinne
All Answers
Integration with Amazon Market place Seller May I suggest you please check the below link.
- https://success.salesforce.com/answers?id=9063A000000pGjwQAE
Hope it will be helpful.Best Regards
Rahul Kumar
Since you asked about product feeds in the other thread https://developer.salesforce.com/forums/ForumsMain?id=9060G000000XcNxQAK, this explains how to send a product feed to Amazon. You should be able to covert this to send any feed to Amazon.
In order to send feeds to Amazon you need to include an XML body and ContentMD5Value in the Amazon request. This first function prepares the XML body, it assumes you are looping through all the products you have in Salesforce that you want to create or update in Amazon. You need to pass it your seller id and a list of the products you want to send to Amazon. And update it with your own values.
Then use this XML Body to get the ContentMD5Value:
Then send the request to Amazon, you will need to prepare a signature to do this.
This should return your FeedSubmissionId and you can use that to check the status and confirm that the feed was accepted.
See http://docs.developer.amazonservices.com/en_UK/feeds/Feeds_GetFeedSubmissionResult.html
I hope this helps.
Gráinne
'&ContentMD5Value=' + ContentMD5 +
Thanks @Grainne
Your solution seems promising and also signifying the possibility of bulk product uploads . Also can we send product images along with same xml body or we have to use the other feedType and a different callout for image upload ?
<ImageType>Main</ImageType>
<ImageLocation>URL</ImageLocation></ProductImage>
Hey @Grainne ,
I think something is missing while I am calling feed api from salesforce . Can you look below sample code which is similar to yours but returning error "Invalid query string provided - Keys may not contain <" .
The whole code sample is similar to your orderList code https://developer.salesforce.com/forums/ForumsMain?id=9060G000000XcNxQAK and I have changed values wherever needed but its returning error with code 400.
There are just two changes you need
1) Set the request header - req.setHeader('Content-type', 'text/xml');
2) You should have the ContentM5 value in the query string
That should work.
Gráinne
Thanks @Grainne , That took some time but worked :) but still I am unable to send images along with product xml . I was able to do it with image api but not with product feed while creating a product . It says image tag is not expected here. Do you have any sample xml for doing this ?
Thanks !