Menu
Get Component
Get a component by ID.
GET
/organizations/{organizationId}/components/{componentId}Use it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Get Component action (under Shopper Experience).
- Fill in the fields below, then reference the result from later steps as
{{getComponent.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getComponent.response.data.<field>}}.
{
"id": "rfdvj4ojtltljw3",
"typeId": "commerce_assets.carousel",
"name": "Topseller Carousel",
"fragment": false,
"embedded": false,
"contentLinkUuid": "0e1f329d4ac66ff2c3bbf70301",
"data": {
"title": "Topseller",
"category": "topseller"
},
"localized": true,
"visible": true,
"custom": {
"detailUrl": "www.myshop.com/topseller"
},
"designMetadata": {
"id": "commerce_assets.carousel",
"name": "Carousel Component",
"archType": "headless"
},
"regions": [
{
"id": "tiles",
"components": [
{
"id": "w3reö9wsjf3",
"typeId": "commerce_assets.productTile",
"data": {
"product": "iphone6"
}
},
{
"id": "cgn8d4ngdl4n",
"typeId": "commerce_assets.productTile",
"data": {
"product": "iphone7"
}
}
]
}
]
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?