Add the users in the 'to' field of an email to the additional requesters field and they stay there.

alabbas
Tera Contributor

Hi all,

 

I have a requirement that states that the users in the 'to' field of an email needs to fill the 'additional requester' field (requester_s).

 

 So I put this code in the inbound action current.requestor_s = email.to; which works but the issue is when a user is inadvertently removed from the email chain (someone selects reply instead of reply all), that user is also removed from requestor_s field and I need them to stay.
 
Anyone have any ideas?
 
Thanks 
2 REPLIES 2

Jean Henrique
Tera Contributor
You can try to use the email content and apply a regex to get all the e-mails contained there.

 

Sometimes the emails have a content like
To: Person1 <person1@email.com>, Person2 <person2@email.com>

 

For that, you may use a regex like this.
/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g

Alok Gupta5
Tera Guru
Tera Guru

Hello ,

 

I got it you are saying when some one replying on that email that time if they click on reply not reply all that time additional requester becoming blank.

 

 if that is the issue then you have to check and modify inbound action which was working on reply   and put script like if it is a reply then only modify updated fields not all.

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards.
Alok Gupta