Globiflow e-mail
Is there any way of using "if, then" statements in Globiflow? For example, I have a bunch of fields, ie: Name, Address, Telephone Number, E-Mail etc. I want to send those details to a collague, ie: "Hi Dave, the clients name is: @Name, the client's address is: @address..." However, if one of those fields isn't filled in, I don't want the e-mail to say "Hi, Dave, his e-mail address is: [blank]". Is there any way of saying something like "if @e-mail is filled in, insert text "his e-mail address is: @e-mail", if not, then "e-mail address not available" or similar.   I'm guessing the answer is no, but I'd love a great workaround.

  • Thanks Joel, That's fantastic help and points me very much in the right direction. I couldn't work out the other day how to add code into a Globiflow e-mail, but I will take another look after I've finished learning PHP and Javascript on Youtube. Regards,
  • There could be two approaches in Globiflow.  One create a sanity check and if data is there use email format one and then a second sanity check that if the data is not there condition two.  However it would be easier to use a custom variable which would be something like: Condition == "result" ? [name token] . ", the client's address is: " . [address token] : [name token] . ", the client's address is missing, please contact your supervisor for more information" Then you simply place the custom variable result token in the email. Note Globiflow variables are in PHP so . is the equivalent of +
  • Hi Martyn, good news: You're wrong, the answer is Yes:-) And it's simple.In the Globiflow flow builder add an action brick "Custom variable", name it "clientEmail" and enter: [(item) E-Mail] != "" ? "his e-mail address is: ". [(item) E-Mail] : "e-mail address not available" [(item) E-Mail] = the token for the E-Mail field; pick the token from the list.Then in the E-mail body add the token [(Variable) clientEmail]: Hi Dave,  [(Variable) clientEmail] Explanation:[(item) E-Mail] != "" -> the IF-Condition (if not empty)? -> THEN"his e-mail address is: ". [(item) E-Mail] : -> ELSE"e-mail address not available" Rainer
This question is closed.