Trying to display RITM variables in a VA Notification

RyanLey
Tera Contributor

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?

 

Screen Shot 2022-12-19 at 3.37.00 PM.png

Screen Shot 2022-12-19 at 3.37.26 PM.png

  

1 ACCEPTED SOLUTION

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

View solution in original post

7 REPLIES 7

Lynda1
Kilo Sage

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

Lynda1_0-1671485739683.png

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!

RyanLey
Tera Contributor

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.

 

Screen Shot 2022-12-19 at 5.11.01 PM.png

The RITM fields is in the Approval for +  that is in the Notification Content

Lynda1_0-1671490274607.png

Looking at your screen shot, it appears you just need this

Lynda1_1-1671490329105.png

That is what I plan on using  🙂

RyanLey
Tera Contributor

Lynda1,

 

I'm already using the 'Approval For' to get other fields. 

 

Screen Shot 2022-12-19 at 7.27.23 PM.png

 

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.

 

Screen Shot 2022-12-19 at 7.30.08 PM.png

 

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.

Screen Shot 2022-12-19 at 7.33.22 PM.png

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.