Hello All,
I'm fairly new to Nintex Workflow and am trying to replicate SharePoint's OOB workflow function on an Approval WF where the item is automatically rejected when the user changes the item while the WF is in progress. I was able to recreate this functionality using "Call web service" action and using the method "GetWorkflowHistoryForListItem", and it works, but here's a problem that has stumped me.
I have two workflows on a list. Workflow A runs only when a new item is created. Workflow B runs only when an item is modified. Workflow A has bunch of business logic programmed for approval and it also sets two hidden form fields. The problem is when an item is created, WF A runs and sets the hidden form fields, this action also triggers WF B since setting those form fields is considered a modification to the original item. I do not want the WF B to run when an item is created, but I do want it to run when a user modifies the item.
I have tried several solutions, but none of them seem to work. I tried setting "Conditional Startup Options" on WF B to compare the other form fields with their previous values, but that does not work. I also tried logging the previous values of form fields and comparing them to the new form field values, but that does not work either. Seems like there might be some data type conversion issue when comparing field values. And, maybe there is something simple that I'm missing here. I would really appreciate for your suggestions/ideas on how to resolve this problem. Thanks.