...
Open Settings
Open Business Rules
Add a new business rule
Name: Embed link for sales content.
Trigger: Update, Content, Main doc
Condition: Field Value Changed Condition
Code Block language json fieldpath: usageInformation.distributionChannel expected value: "Sales"
Transformation: none
Action:
Enqueue Create Embed Action
Embed Name: Sales Material for Mailings (Default is: “Embed_RuleId”)
Format ID: Preview (which format to use)
Conversion string: (e.g. rotate90)
Lock delivery options: true (select if users can manipulate the embed link parameters)
Expiration date: variable or DateTime in ISO format (2022-10-10T10.00.00Z) with or without milliseconds
Store URL in: embedUrlVariable (optional variable, which can then be assigned via Assign Value Action, or assign layer with default value)Assign Value Action
path: layerId
Field ID: fieldId
Value: “$embedUrlVariable$“
Replace: true
Limitations
Only one Format ID is possible per action. For embeds with multiple formats, you have to create multiple actions.
Embed are always created new, embeds are not updated.
The creation could be delayed due to the performance of the system, the action is enqueued, not directly executed.
...
Type ahead and select the notification to produce from the dropdown. You see the listed IDs of all available notifications.
Property | Value |
kind | EnqueueTransferOwnershipActionEnqueueCreateEmbedAction |
embedName | string Nullable Name of the embed. If empty, it will be automatically initialized with the 'Embed_{RuleId}'. |
embedDescription | string Nullable Optional description of the embed. |
outputFormatId (required) | string non-empty 1-n Output format of the content to be embedded. |
conversionString | string Nullable Optional conversion to apply to the output. |
lockDeliveryOptions | boolean Default: true Indicates if the conversion is locked and therefore cannot be changed by the caller of the embed URI. |
expirationDate | string Nullable Optional date when embed expires and cannot be accessed anymore: It must be in ISO format, with or without milliseconds 'yyyy-MM-ddTHH:mm:ss(.fffffff)K'. |
storeIn | string Nullable Optional variable name to store in the url of the embed that will be created. |
...
Sales Material gets Embed Link for Copy&Paste into Mailings
Code Block | ||
---|---|---|
| ||
{ "kind": "BusinessRuleConfigurable", "condition": { "kind": "FieldValueChangedCondition", "fieldPath": "pictureparkNiesen114ReleaseusageInformation.distributionChannel", "expectedValue": null"Sales", "traceRefId": null, "names": {}, "description": {} }, "transformationGroups": [], "actions": [ { "kind": "EnqueueCreateEmbedAction", "embedName": "ProductMailing Embed Link for SocialSales MediaContent", "embedDescription": null, "outputFormatId": "Preview", "conversionString": null, "lockDeliveryOptions": true, "expirationDate": null, "storeIn": "embedUrlVariable", "traceRefId": null, "names": {}, "description": {} }, { "kind": "AssignValueAction", "path": "pictureparkNiesen114ReleaseusageInformation", "fieldId": "embedLink", "value": "$embedUrlVariable$", "replace": true, "traceRefId": null, "names": {}, "description": {} } ], "id": "niesenEmbedLink", "triggerPoints": [ { "executionScope": "MainDoc", "documentType": "Content", "action": "Update" } ], "isEnabled": true, "names": { "en": "NiesenEmbedLinkSalesEmbedLink", "x-default": "NiesenEmbedLinkSalesEmbedLink" }, "description": {}, "enableTracing": true } |
...