Execute Workflow With Arguments from FeatureActions
I would like to add a button to the Feature Actions List that executes a workflow with a argument, with the Argument coming from a attribute from the feature. Does anybody know if this is possible and if so, could you share a code snippet?
Regards
-Alex
City of Troy Michigan
0
-
Have you had any luck with this? I also think it would be nice to add a workflow or command to this area, but I'm not sure how to do it.
0 -
In case anyone finds this and is wondering, the answer is yes. For gvh: dig into the viewer json file(s) that you'd like to change. Find the "Menu" module. One of the "menus" is "FeatureActions", which contains a handful of items already. Copy one and tack it in (don't forget your comma here), changing the image, title, and description to taste. Change the "command" to "RunWorkflowById", or if you are so inclined, "RunWorkflowWithArguments". If you choose the latter, remember that your parameter needs to be an object, not a string.
Don't forget to make a backup before toasting these files.0
Please sign in to leave a comment.
Comments
2 comments