Menu
Create Source Code Group
Create a source code group using the information provided.
PUT
/organizations/{organizationId}/source-code-groups/{id}Use it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Create Source Code Group action (under Source Code Groups (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{createSourceCodeGroup.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"id": "TV-Email",
"active": true,
"activeRedirect": null,
"cookieDuration": 25,
"creationDate": "2019-10-20T12:00:00Z",
"description": "This source code group is used to email promoting Flat Screen Television.\n",
"enabled": false,
"endTime": "2019-11-20T12:00:00Z",
"inactiveRedirect": null,
"lastModified": "2019-10-20T12:00:00Z",
"specifications": [
{
"expression": "televisions[1..10000]"
}
],
"startTime": "2019-10-20T12:00:00Z"
}
Response
Returns 200 with an object. Read it in later steps with {{createSourceCodeGroup.response.data.<field>}}.
{
"id": "TV-Email",
"active": true,
"activeRedirect": null,
"cookieDuration": 25,
"creationDate": "2019-10-20T12:00:00Z",
"description": "This source code group is used to email promoting Flat Screen Television.\n",
"enabled": false,
"endTime": "2019-11-20T12:00:00Z",
"inactiveRedirect": null,
"lastModified": "2019-10-20T12:00:00Z",
"specifications": [
{
"expression": "televisions[1..10000]"
}
],
"startTime": "2019-10-20T12:00:00Z"
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?