Try putting the value it equals to in a person/group variable using the Set Workflow Variable Action. Then add it there instead of manually typing out what it is.
Hi Chadd,
How do I set up a - Workflow Variable Action?
Any screenshots?
Thanks
Now that I look into it, I dont think that's going to work as a person/group variable because it makes you declare it at the start of the WF and we don't want that. But you might be able to try it as a text variable.
Then inside it create a new text variable(not a person/group), call it whatever you want and have it equal the email address you want to use. Then in the runif set it equal to that variable.
Also, is the format of the email address correct? You use onmicrosoft?
Hi Chadd,
I will try this out and met you know.
The onmicrosoft was just an example..Not a real address.
Thanks
Hi Chadd,
I triedyour method. I think i done the way you described it.
The error message doesn't appear anymore but the manager doesn't receive the email.
Have created a Workflow Variable (text) called var_LMtxt)
See screenshot of the settings of "Run If"
Well the good news is that it's definitely related to that. Let me see if I can reproduce in my environment.
Thanks Chadd...
It's very frustrating, but I have to wait and see if you can do it.
Will wait for good news.
try adding i:0#.f|membership| at the beginning of the email. I tested in my environment and you don't need to put in in a variable.
This works
Also, add a "Log to History List" action right before the runif. Add a list lookup current item and pull whatever LineManager equals so you can see the value and see if it matches the managers email you're entering.
ok, let me try this out...
Hi Chadd,
Have done what you said...getting this.
Than Save or Publish of the workflow. I get this..
Just to let you know that my LineManager column in the list is a People Picker (Person/Group field)
Does LineManager selection of People only or People and Groups? Under Show field, is it just Name (with presence)? IS it marked for only one selection allowed?
Hi Chadd,
It worked when LineManager was set to: Allow multiple selections to NO
But when I changed to : Allow multiple selections to YES, than this problem started
Is this not allowed for some reason?
Perhaps you could use "contains" instead "equal"
Correct, that isn't allowed.
It's because you're using equals. The run if is expecting a single entry, so when it looks at the field (even if there is only 1 entry) because there's a possibility of more, it errors. The syntax doesn't match.
You can avoid this by setting LineManager to a Text Variable. Then in you runif, instead of When "List Lookup - current item" change it to When "Workflow Variables varLineManager" contains ManagerEmail@email.com
Hi Chadd,
Aha..ok we are getting there.
I will try this out and let you know.
Hi Chadd,
I tried it out but for some reasons it didn't work. It was taking up too much time.
What I did in the end (and it worked!!) was:
I have put back the LineManager to "Allow multiple selections to: NO"
And just created another column called LineManager2
Now the "Run if" just worked. I am sure there is a better way of doing this but this one worked for me.
Thanks for your time and patience, for sure you put me on the right direction in this process.
Thanks again,
Adam