Error in Flow Designer for Email Address Containing illegal character

Allen12
Tera Guru

I cant figure out how to solve this error:

One or more email addresses was invalid (Domain contains illegal character)

 

Allen12_0-1667569943116.png

Allen12_1-1667569973107.png

 

3 REPLIES 3

Aman Kumar S
Kilo Patron

Which field you are using in CC to dot walk until email?

Instead of walking down to email, why don't you just pass sys_id of the user, it would fetch the email for the user automatically, make sure it is a reference field and not a list collector

Best Regards
Aman Kumar

Jeremy Duncan
ServiceNow Employee
ServiceNow Employee

Re-edit the flow in FireFox and see if that does the trick. NOTE: Make sure you actually remove and re-add the dot-walked pill back in while in FF.

 

Credit to @Dale S and @Kristy Merriam : https://www.servicenow.com/community/now-platform-forum/url-parameters-corrupted-in-rest-step-in-flo...

 

Please mark helpful if it worked. I just tried it myself, and worked for me :).

Timothy Bevilac
Tera Contributor

It's possible that you have white space in your email field on the user table.  Try using the trim transform function and dot walk to the email address.  Here's my script to email all the approvers, when I was getting same error, and trim helped

var foo = fd_data.flow_var.email_list + fd_data._2__for_each.item.approver.email.trim() +",";
return foo;

 Trim.png