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.
https://experienceleague.adobe.com/docs/campaign-classic/using/automating-with-workflows/advanced-ma...
Kr,
Parvesh