Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
a_f:a:set [2022/09/01 01:23] – removed - external edit (Unknown date) 127.0.0.1a_f:a:set [2023/05/09 01:45] (current) sean
Line 1: Line 1:
 +{{tag>Index Action Action_List Process Business_Object}}
 +====== SET ======
 +
 +This action allows setting the values of several attributes of a business object from a string. 
 +
 +===== Syntax =====
 +
 +''SET'' [ATTRIBUTES OF] Id () ''FROM'' ArithmeticOperation() [ ''USING'' StringLiteral]
 +
 +where Id() is the identifier of the business object the attributes of which are being set and the ArithmeticOperation() is the expression identifying the string containing attribute names to set and their corresponding values.
 +
 +The format of the import string must be one of the following:
 +
 +  * ''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:
 +<code aim>#Name#John Smith#State#NEW#Balance#100.0 </code>
 +  * ''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 
 +<code aim>Name John Smith State NEW Balance 100.0 // INVALID </code><code aim>
 +Name John State NEW Balance 100.0 // VALID </code>
 +  * 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:
 +<code aim>Name John State NEW Balance 100 </code>Instead of the space and “#” symbols you can use ''USING'' expression to specify the delimiter explicitly, for example:
 +<code aim>SET Account FROM Name: 'John' USING ':' </code>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).
 +
 +