Salesforce

Range and Locate Expressions (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Range and Locate Expressions (Magic xpa 3.x)

Range and Locate expressions, like Inits, are sometimes evaluated on the client, and at other times on the server, such as for a column of the Main Source, which is evaluated on task initialization. Since it is not possible to know when the property will be evaluated, the functions used within the expression need to be neutral functions.

For instance, in this example, we are using a MarkedTextGet() function in a Range. This generates a syntax error, because we are using a client-side function in a server-side property.

To provide this functionality, we create a parent task that sets a variable using the desired function. The variable will hold the function's value. Then we can either reference that variable directly or use it in a parent task and pass it in as a parameter for use in the Range.

Then, in the Record Prefix, update the variable with the relevant expression.

Reference
Attachment 
Attachment