How to get the value from the field and store in the variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 03:51 AM
Hi Community,
Im trying to get the value from the field and store it in the variable and reuse that variable in the script.
Basically, In sys_email table there is field called body text i want that value to be use in the description of the incident which is creating by this BR (written on sys_email table)....i tried something like email.body_text but didnt worked...so taught of gliding sys_email table and using encodedquery.
Idea of this BR is based on specific conditions incident record need to be created...which is working fine i did that but im struck with the description part.
Please provide any insights on this...how we can get the value of body text from the recieved-ignored email and use it in the description field of the incident.
Note : This needs to be achieved by Br or something but not with inbound email actions because incident needs to be created when emails are received-ignored type.
Thanks in advance
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 04:10 AM
Hello @suuriya ,
In the BR image on the line 8 replace current.email.body_text to current.body_text.
Please Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Vaishnavi Shinde
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 04:42 AM
Hi @VaishnaviShinde ,
Thanks it works!!!
Need one more help in the email body there will be server name mentioned that name needs to be populate in configuration item field in incident which is reference field.
How we can achieve this...written something like this but didn't worked
in email server name mentioned like this
Thanks in Advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 10:28 AM
Hello @suuriya ,
The server name which present in email is present in cmdb_ci table ?
If yes then first glide the cmdb_ci table and add query like (“name”, server name present in body) and then add inc.cmdb_ci = sys_id of that server.
Please Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Vaishnavi Shinde
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 03:20 AM