the original post:
from the Docs:
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) I'm unclear why this immediately follows the IMPORT Action section in the docs. How is it related (if at all)
2) Why the word "import string" is used above (see highlight), because this isn't used ONLY with IMPORT.
3) Seems like nowadays, you could put records into a file any number of ways (doesn't seem like this is directly related to IMPORT) beit an import, or a REST handler waiting for input to modify values... or even another Process.
Personally, I've never found a use for this.
Wondering if anyone has used it and for what reason.
I can imagine taking a string, possibly from an import, like this:
"TripID#1000#PassQty#2#Option1#Main#Option6#Yes"
"TripID#1001#Name#Jaymer#Option1#Main#Option2#1095.99#Option3#
(NOTE: You can see the columns are not the same in each record.)
In this case, you might have many fields in a table, but only want to update specified fields.
A regular IMPORT can't do that because you'd have to specify column names for every column, and if you only provided a value for column 2, then the others would get updated to NULL (i assume) since the default mode of IMPORT is an Update based on the primary key/ID.
You could have a REST routine that accepts strings and just writes them to a file. In this case, the Trip BO. Later, process the strings (shown above) and any specified field will get updated with a value... without a bunch of IF statements to update only the supplied fields.
It DOES seem like a nifty function, given the right use case.
thx
jaymer...
Also,
the Docs say this: "The SET action of the Aware IM Rule Language can be useful for analysing the received e-mail provided that the body of the e-mail is in a format required by the SET action."
I don't see how an email will be formatted with delimiters that allow this to be used?