Skip to main content
Skip table of contents

Content Relation Item Unassigned Condition

The condition Content Relation Item Unassigned checks if a specific content item or any content item has been unassigned in a relationship field e.g. Check if the draft version of a text has been removed before making content available to the company or check if the Press Kit Logo was removed, then unpublish the Press Kit (remove permissions). 

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

Use Content Relation Item Unassigned inside AND/OR to check for multiple unassignments to Relationship Fields to check if Logo or Hero Shot were unassigned, to then unpublish or restrict access.

CODE
{
    "kind": "AndCondition",
    "conditions": [
		{
			"kind": "ContentRelationItemUnassignedCondition",
			"fieldPath": "pressKit.heroShot",
			"contentId": "6517nls8465os810401ub"
		},
		{
			"kind": "ContentRelationItemUnassignedCondition",
			"fieldPath": "pressKit.logo",
			"contentId": "6517nls8465os810401ub"
		}
	]
}

Specific Definitions

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. 

Was Here Shot Unassigned?

CODE
{
	"kind": "ContentRelationItemUnassignedCondition",
	"fieldPath": "pressKit.heroShot",
	"contentId": "6517nls8465os810401ub"
}


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.