...
Methode name | Description | Example | ||
---|---|---|---|---|
| Listen on changes on a specific field. You can retrieve the record where the change happened as well as the old (from) and the new value (to) and if this is a parent record (package header). | |||
| Set a specific value directly in the record object based on the field path.
| |||
| Get a specific value from the record object based on the field path. | |||
| Run a SOQL query by parameters to query data from records that are not included in the Campaign Builder. To prevent security vulnerabilities, the | |||
| Ask if the record has child records as package components. If yes, you can react and perform other actions. | |||
| Use this method to iterate through children records of a parent item. | |||
| Allows to create a function that will be called when every record is loaded in the campaign builder. After that it allows the user to execute code right after all the records are loaded into the Campaign Builder, allowing to modify data, execute queries, copy values, etc. | |||
| Allows to apply changes to a list of previously queried Campaign Builder items.
| |||
| Set a custom message for an specific field based on the fieldpath and the recordId. | - | ||
| Return true if the field has | - | ||
| Return all records of a related field inside a children record, if the fields inside are not a related field it will return an empty array | - | ||
| Return all the records of a related field if it’s not a related field it will return an empty array | - | ||
| Return an array with all the fields that has | - | ||
| Will set the indicated field as required or not depending on the value (true or false) | - | ||
| Will set the indicated field as read only or not depending on the value (true or false) | - | ||
| Will set the indicated field as hidden or not depending on the value (true or false) | - |
...
Making fields available for custom logic
If there are certain fields which you need to reference in your custom logic but don’t want to add them to the shown fields then you can add them to a field in the Item Configuration Settings called “Logic Fields“. The format in which you would use this field is the following:
Code Block |
---|
["advendio__billing_category__c"] |
...
Examples
Discount limiting example
...