I am trying to replace our out-dated SharePoint Designer worfklow (SharePoint 2010 approval workflow) with Nintex solution. However, I was unable to find the option to create the workflow template and re-use it across all sub-site Document Library.
We have the approval workflow on top site collection level, any Document Library in sub-sites under that site collection can use the workflow. When I need to make any change, I only needs to open SP Designer and change the workflow template at top level.
Is that a feature that Nintex support? I am using trial version and I cannot find it.
Unfortunately not. There is no such thing. The only option I see is to use Nintex O365 REST API and "Import into a new workflow" method (https://help.nintex.com/en-US/sdks/sdko365/#Reference/REST/NWO_REF_REST_ImportWorkflowPost.htm%3FTocPath%3DNintex%2520Of…).
This way you can have a definition of your workflow on a top site collection level and propagate it using a script to libraries in subsites. However be aware, that this method does not change the workflow's name, so it will create a new workflow in the destination library with the same name as the source one. And you can't use it for more than one library in the same subsite
Importing into new workflows
This one may help you with loop,But "Workflow Id" is needed When you are Publish the Workflow.the Problem is Workflow ID Would Change After Import the Workflow Into List/Library,
Note : -we cannot get the Workflow id Programmatically