Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

ContentRelationItemAssignedCondition checks if any/a specific Content Item was added to the provided Relationship Field to any Content Item and triggers this very moment e.g. check if the Press Kit has a Logo (or the correct Logo) and a Hero Shot (or the correct Hero Shot)

Include Page
TERMS:Business Rule Condition: Content Relation Item Assigned Condition
TERMS:Business Rule Condition: Content Relation Item Assigned Condition

(lightbulb) Triggers the moment an item is assigned in the provided Relationship Field, either any value (leave refId empty) or a specific value (provide refId). 

Use Content Relation Item Assigned inside AND/OR to check for multiple assignments to Relationship Fields

...

e.g. to check if Press Kit Has a Hero Shot and a Logo, then make it public (assign Permission Set)

Code Block
{
    "kind": "AndCondition",
    "conditions": [
		{
			"kind": "ContentRelationItemAssignedCondition",
			"fieldPath": "pressKit.heroShot",
			"contentId": "6517nls8465os810401ub"
		},
		{
			"kind": "ContentRelationItemAssignedCondition",
			"fieldPath": "pressKit.logo",
			"contentId": "6517nls8465os810401ub"
		}
	]
}

...

The ID is used in the Business Rule, so you can update the list item attributes at any time. 

Property

Value

kind

ContentRelationItemAssignedCondition

fieldpath

layerId.fieldId

contentSchemaId.fieldId

Details on accessing field values, specifically fieldpath starts lowercase

Supports JSON path syntax which you can test here: https://jsonpath.com.

contentId

The Content Item ID of the Content Item to check, which you see in the URL when you double-click to open the Content Item. 

This is optional. You can leave it empty if you want to check any assignments in the field. 

You can get the refId by opening up the List Item in Detail View and check the URL. 

...

...

Is the Hero Shot Assigned?

Code Block
{
	"kind": "ContentRelationItemAssignedCondition",
	"fieldPath": "pressKit.heroShot",
	"contentId": "6517nls8465os810401ub"
}

...