Hi,
I am looking for the way to get the workflow's attributes (e.g. internal name, label or timezone) using the JS activity. I know that it is achievable by querying Workflow schema but I am looking for a universal method to always being able to get current workflow attributes.
Thanks,
Dominik
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hello @dwnuk ,
With the instance variable in a JavaScript activity, you can easily retrieve workflow attributes.
PFA: Screenshot
For e.g. if you want to obtain the value of the internal name of a workflow, you can achieve this through 'instance.internalName'.
Here's an example code snippet that prints the internal name of a workflow in a JavaScript activity:
logInfo(instance.internalName);
You can find the more details about the different type of variable on below link.
Kr,
Parvesh
Views
Replies
Total Likes
Hello @dwnuk ,
With the instance variable in a JavaScript activity, you can easily retrieve workflow attributes.
PFA: Screenshot
For e.g. if you want to obtain the value of the internal name of a workflow, you can achieve this through 'instance.internalName'.
Here's an example code snippet that prints the internal name of a workflow in a JavaScript activity:
logInfo(instance.internalName);
You can find the more details about the different type of variable on below link.
Kr,
Parvesh
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies