Table of Contents

Interpolate

Interpolate is a parameter type of the user business rules actions, introduced in version 24.

It represents a string interpolation as input, which supports:

Warning

The interpolate operator fully depends on the ERP.net string interpolation functionality.

All expressions in Parameter 1 must conform to the specification.

Example:

Using Interpolate, this text

Hello, {$user.Name}\r\n
Today is {$date}.\r\n
Your web store has a new order!\r\n
{{SUMMARY}}\r\n
Number: {DocumentNo}\r\n
From: {Customer.Party.PartyName}\r\n
Order date: {DocumentDate:dd-MM-yyyy}\r\n
Shipping address:{ShipToPartyContactMechanism.ContactMechanism.Name}\r\n
Order total: {#CalculatedAttributeTotalSalesOrderAmount:C}

will be returned as:

Hello, John Doe
Today is 2023-11-01.
Your web store has a new order!
{SUMMARY}
Number: 00329
From: Jane Doe
Order date: 10-05-2019
Shipping address: 21 Lombard St
Order total: $14.82

See more