kevyn_williams

Re: How to 'Run if' current item field is empty/blank

Jump to solution

Same result - you cannot publish the workflow because there are fields that need data:

chrome_2016-03-08_14-43-54.png

results in:

chrome_2016-03-08_14-44-49.png

0 Kudos
emha
Collaborator

Re: How to 'Run if' current item field is empty/blank

Jump to solution

aren't you able to put a reference to current item's field (or a variable) to the box next to value in first row?

are you building list or site workflow?

0 Kudos
kevyn_williams

Re: How to 'Run if' current item field is empty/blank

Jump to solution

It doesn't matter what's in the first box - if the second box is empty, the workflow won't publish...

I'm building a library workflow. Perhaps there is a better way? my goal is to send the modifier of a document a reminder after 3 days if they have not entered some metadata in a certain field or fields (ie the field is empty).

0 Kudos
emha
Collaborator

Re: How to 'Run if' current item field is empty/blank

Jump to solution

aren't you still able to select 'is empty' check instead of 'equals'?

what about to try following trick: let's create workflow variable and leave it's value empty. compare your field against that variable.

0 Kudos
kevyn_williams

Re: How to 'Run if' current item field is empty/blank

Jump to solution

I don't have an 'is empty' option - perhaps it's a weakness of nintex for sharepoint online?

I tried to create an empty variable - but once again, it doesn't allow me to publish because you need something in the variable value field! I can't enter a space or anything as this would not match the blank field... doh!

0 Kudos
emha
Collaborator

Re: How to 'Run if' current item field is empty/blank

Jump to solution

looking to help 'is empty' is supported by O365 in run-if action. I'm not sure why aren't you provided with that option.

once again, were you able to put field reference for one value and variable for the other value?

something like this (Title is field name/reference, empty_wf_var is name of/reference to workflow variable):

if you are not able to set it up this way, I'm affraid I'm not able to help you.

0 Kudos
eiben
Scout

Re: How to 'Run if' current item field is empty/blank

Jump to solution

Well - what you could do:

  1. you create a variable "varLookupValue" of type "text"
  2. then you add a "set workflow variable" action and assign the variable the value of the lookupfield
    ntx_runifempty_1.png
  3. in the "run if" action you then test if the value of the variable is not empty
    ntx_runifempty_2.png

View solution in original post

kevyn_williams

Re: How to 'Run if' current item field is empty/blank

Jump to solution

This solution is ideal - thanks for your help!

markuden
Novice

Re: How to 'Run if' current item field is empty/blank

Jump to solution

You can create a blank variable (at least in my on-premise Nintex Workflow 2010, I'm not sure about 365):

  1. Create a text variable called Blank.
  2. Add a "Build string" action and set the Blank variable to "fn-Trim()". Nintex is happy with this because it looks like you're setting it to something, even though the something is an inline function that returns nothing.
  3. Then you can add your "Run if" action that checks if your lookup field is equal to your Blank variable.

I don't know why Nintex don't just allow you to check if something is blank directly without having to go to all this trouble!

0 Kudos
Not applicable

Re: How to 'Run if' current item field is empty/blank

Jump to solution

Hi,

I think leaving the value as blank or space will not evaluate to empty.

You ll have to create a workflow variable and set workflow variable to blank.

Use the workflow variable to check any list item value equals to workflow variable.

Hope this helps.

0 Kudos