- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2022 12:44 PM - edited 12-19-2022 02:55 PM
Hello all,
I am attempting to display variables in the VA notifications (sys_notification_va_content is the table for the content of these notifications) that are presented to our users. The end goal is to allow approvers to see all of the relevant information for an approval without having to leave VA/Slack.
The issue I have run into is getting the variables to display in this field, as they are not selecteable in the 'Fields' list. I have been attempting to call them manually via script using the 'Advanced' feature, but have not yet had success and would prefer not to do that if there is a better, more easily updated, way.
Is this possible?
Solved! Go to Solution.
- Labels:
-
Virtual Agent

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2022 10:09 PM
Hi RyanLey,
The notification is for the Approval table and the approval for can be a lot ot different tables. Because of this the only fields you can select at the Fields are the ones that exists on all of the tables with approvals. (For ex CHG do not have variables, RITM do not have change window etc therefore these fields not selectable there.)
What you could do is to create a View details action and attach a flow behind it. Your flow could check if the approval for is a request an if it is then write a script that goes through all the variables and shows a card with that information.
I hope this helps,
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2022 01:45 PM
This is a GOOD IDEA!!! I have to do this too!
The screen you shared is from the Contents tab within the notification. I think this will work this way
Uncheck Enable Link
On the Actions tab is where you have the choices, right now View Details. Change that to two different actions, approve or reject. you need a topic to associate to the two actions, I plan on duplicating the OOB topic and modify slightly to get this to work, then have to link those actions in the Link actions to content tab.
This is very high level how to do this, I saw this question and thought "Fantastic idea!" so now have to attempt this!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2022 02:14 PM
Hi Lynda1, I'm glad that you like the idea!
I have already made the two actions, Approve and Reject and customized them to this as actions (see new screenshot), I just hadn't activated them yet, sorry for the confusion.
The part I need help with is displaying the RITM's variables in the notification that pops up in the Slack/VA message. You can't select 'Variables' in the Field List to populate these, so I wasn't sure if anyone has a solution to this yet.
I don't mind leaving the link to the RITM in there, so that they can navigate to SNow if they really want to, but I'd like for these notifications to allow the approver to make an informed Approval/Rejection all in one go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2022 02:54 PM
The RITM fields is in the Approval for + that is in the Notification Content
Looking at your screen shot, it appears you just need this
That is what I plan on using 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2022 04:35 PM - edited 12-19-2022 04:36 PM
Lynda1,
I'm already using the 'Approval For' to get other fields.
Here is what you get when you add the baseline 'Approval For' to the Field List. This isn't what I'm looking for either.
What I'm trying to populate on this notification are the Variables (aka data input by the user when submitting the Request) that are unavailable from that menu. Here is an example of the data that I would want to populate in the backend of ServiceNow.
I would want to take these answers and place them in line with the rest of the data provided to the approvers. As far as I can tell this data is not readily available via the 'Approval For' menu, nor any other menu from the Field List.