问题
I'm wondering if anyone has run into this situation.
I have a 2010 workflow running on a SharePoint 2013 hosted site.
I am checking for a boolean field in the workflow. The boolean is set correctly in the list as true and my log statement does in fact show the field is set to true. There are no errors in the log.
The code below my IF statement should fire but it never does. What could cause this not to work?
If current item:Resubmit equals yes
Thanks!
回答1:
I have a very long 2010 SPD workflow with tons of Boolean IF logic. The workflow worked beautifully as I was developing it, but at some point the Boolean logic stopped behaving correctly. I have no idea why.
MY SOLUTION I changed my If statements to test for the opposite condition and they all worked. So, for example if I wanted to test if a SharePoint List Yes/No variable was "Yes":
INSTEAD OF - If Current Item:YourColumn equals Yes
I USE - If Current Item:YourColumn not equals No
Everything now works as long as I can keep my head on straight as I work my way through the logic.
回答2:
I faced the same issue. Assigning the field value to a variable, then using the variable in the "if" condition, worked for me. (Solution suggested in the comments)
来源:https://stackoverflow.com/questions/31254741/workflow-current-item-boolean-does-not-work