SET Action
The SET action allows setting values of several attributes of a business object from a string. The format of the import string must be one of the following:
1. attrName1#attrValue1#attrName2#attrValue2 etc
The string represented in this format has attribute names followed by the corresponding values. The attribute names and values are separated by the “#” delimiter, for example
#Name#John Smith#State#NEW#Balance#100.0
2. attrName1 attrValue1 attrName2 attrValue2 etc
The string represented in this format also has attribute names followed by the corresponding values. The attribute names and values are separated by the space character (space character is thus not allowed inside attribute values, for example
Name John Smith State NEW Balance 100.0 - invalid
Name John State NEW Balance 100.0 – valid
3. The string has multiple lines where each line has a single attribute name and the corresponding value. The attribute name and value are separated either by the space character or “#” delimiter, for example:
Name John
State NEW
Balance 100
The example of the action is shown below:
SET Account FROM IncomingEmail.Message
Instead of the space and “#” symbols you can use “USING” expression to specify the delimiter explicitly, for example:
SET Account FROM Name: 'John' USING ':'
The delimiter used here is the “:” symbol.
This action can be useful in a variety of situations, for example when processing the contents of the incoming e-mails (provided that they are formatted as described above) – see Email Handling.