MirceaFlorea
Scholar

Send notification if field not modified

Jump to solution

Hello, 

I'm working in Nintex 3.3.1.0 on SharePoint 2013. 

I have a list of items and I need to create a workflow what will send a notification if three multitext fields have not been updated  for more than 3 days since the status of the item was set on "Accepted" .

 

I was thinking on starting the workflow when the status is set on Accepted, store the values of the three fields in a variable , pause the workflow for 3 days and then Set a condition to check if the values of the fields are equal to the variable or if they are empty. 

 

I created something like : 

 

If field1 equals field1Var

or

field1 is empty

>send notification. 

This works. 

 

When I try with :

If field1 equals field1Var

and

field2 equals field2Var

or

field1 is empty

and

field2 is empty

 

this doesn't work. 

 

Do you have any suggestions how to check if all three notification are either equal to their corresponding fieldVar or empty ?

 

Thank you in advance. 

0 Kudos
Reply
7 Replies
Tarf
Explorer

Re: Send notification if field not modified

Jump to solution

Hi,

is there a reason you are checking if the field is empty?

I think you should simply be able to

  • If field1 == var1 && field2 == var2 && field3 == var3
    • Nothing has changed

As your variables are represenenting the fields when the element was accepted, it does not really matter if they are empty

0 Kudos
Reply
MirceaFlorea
Scholar

Re: Send notification if field not modified

Jump to solution
how do you set field1 == var1?
I used the Set a condition action with the condition
"If current item field equals value"
where
field1 equals var1.

I couldn't find == .
0 Kudos
Reply
Tarf
Explorer

Re: Send notification if field not modified

Jump to solution

Sorry i just wrote it with the double equals in the response, the action as you describe looks properly configured.

Just drop the "or empty" part of your intial post and check, if all the fields are the same as before

0 Kudos
Reply
MirceaFlorea
Scholar

Re: Send notification if field not modified

Jump to solution
I tried it, but it doesn't work. The fields are multiple lines of text, enhanced rich text.
For some reason it the condition field1 = var1 only works when there something in the fields.
0 Kudos
Reply
rjimenez89
Scholar

Re: Send notification if field not modified

Jump to solution
For rich text fields, you'll need to strip out the div tag before checking if its empty. I've found that an empty rich text field is usually stored as <div></div> in SharePoint.
0 Kudos
Reply
MirceaFlorea
Scholar

Re: Send notification if field not modified

Jump to solution

I found that it works with enhanced rich text and does not add the <div> tag.

0 Kudos
Reply
MirceaFlorea
Scholar

Re: Send notification if field not modified

Jump to solution

Issue is solved. I had to set up two conditions. One to check if the fields are empty and then another one to check if fields are equal to variable. 

0 Kudos
Reply