get the manager from outlook email to inbound email action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 02:29 AM
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
2) Here underlined are one is tagging i.e. requester but not manager
3) Here manager field is empty so not going to the Approval

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 04:02 AM
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 as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 06:05 AM
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