Workflow Current Item Boolean does not work

旧城冷巷雨未停 提交于 2019-12-22 11:28:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!