The CreatorCon Call for Content is officially open! Get started here.

get the manager from outlook email to inbound email action

rajeshKongamudi
Tera Contributor

Hi Community,

 

Hope you doing good, we are facing the issue on getting the manager from outlook email to inbound email action. here the requirement is when we got mail from outside of org we need to create general service request (i.e. catalog item request should create) with all the mandatory fields that are present in catalog item fields but could not able to concatenate manager field becs if manager field should be present in form then work flow will run and approval should triggers to line manager in my case manager field is not tagging so it is directly going to fulfillment task. can someone help us how to pull the manager from outlook email. Thanks in advance.

 

1)Condition

rajeshKongamudi_0-1699266349563.png

2) Here underlined are one is tagging i.e. requester but not manager

rajeshKongamudi_1-1699266442851.png

3) Here manager field is empty so not going to the Approval

rajeshKongamudi_2-1699266492015.pngrajeshKongamudi_3-1699266517810.png

 

2 REPLIES 2

Peter Bodelier
Giga Sage

Hi @rajeshKongamudi ,

 

Since you already have usr as variable, have you tried to simply use usr.manager?

You are now trying to get it form body content, which does not contain the manager?


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

mark_oldroyd
Tera Contributor

Hi,

I am slightly guessing here because you haven't provided a screen grab of the email the key value pairs are being taken from.

I think the problem is you are trying to dot walk on the key value pair which is impossible, because it's returning a string most likely. The dot walk needs to be done on the user object in order to get it's manager.

Try changing the last part of line 19 by moving the first closing bracket.

 

usr.get('email', email.body.requester).manager);

 

Thanks