on 11-02-2020 10:46 AM
Hi all,
is it possible to dynamically access object properties in a script task in SAP Workflow Service (Neo)?
Lets assume the following JSON Context for the workflow instance
{
"myObject":{}
}
And I like to create a new property for that object, whereas the name of the property needs to be dynamic. In pure JS I would do something like Object[varsSomeProperty].
var sMyProperty = "SomeProperty";
myObject[sMyProperty] = {};
When I try to do this in the Workflow Service I get the following error:
TypeError: [object ContextObject] is not an Object in <eval> at line number 17
User | Count |
---|---|
80 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.