I was trying to follow the instructions in an excellent post "Open workflow initiation form in modal dialog" but did not know how to do this step:
I'm able to dynamically insert the GUID of the workflow as long as I know the name. That way, if I republish the workflow, this custom action will still run correctly."
It appears that step is required to make the sample code work when the workflow is republished.
Sample code without the workflow GUID:
sample URL that gets built (without the workflow GUID):
I don't know what the workflow GUID query parameter is, nor the JSOM to populate it.
Can anyone out there fill in that code gap?
*note: I am posting this as a new question because I apparently do not have permission to comment on that original post.