Menu
Get Custom Relationship
Get a custom relationship
GET
/pcm/custom-relationships/{customRelationshipSlug}Use it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Get Custom Relationship action (under PIM).
- Fill in the fields below, then reference the result from later steps as
{{getCustomRelationship.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{getCustomRelationship.response.data.<field>}}.
{
"data": {
"id": "string",
"type": "custom-relationship",
"attributes": {
"name": "Related Products",
"slug": "CRP_related_products",
"description": "A list of related products shown on the PDP.",
"sort_order": 5,
"external_name": "Similar items to consider",
"external_description": "Check out these similar products that may also meet your needs or match your preferences.",
"bi_directional": false
},
"meta": {
"owner": "store",
"timestamps": {
"created_at": "2024-01-10T20:16:35.343Z",
"updated_at": "2024-01-10T20:16:35.343Z"
}
}
}
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?