MS Teams notifications- update record link in Notification Content

bekfro
Kilo Sage

I'm working on the MS Teams notification content for the Assessment Instance table.   Is there a way to update the default path when you click the enable link button?

bekfro_0-1722625581734.png

 

Currently, it defaults to form view (form&table=asmt_assessment_instance)  vs the take survey page (sp?id=take_survey&instance_id=)

I have also tried the advance message script but it doesn't appear the HTML tags are working like they should. 

 

Here's my example:

 

 

 

(function getNotificationHeadingAndMessage(

    /*GlideRecord of record changed to cause notification*/
    target,
    /*GlideRecord of event triggered to cause notification*/
    event,
    /*Recipient Table Name*/
    recipientTable,
    /*Recipient Sys Id*/
    recipientSysId) {


    var url = '';
    url = gs.getProperty('glide.servlet.uri') + 'sp?id=take_survey&instance_id=' + current.sys_id;
    // var link = ("<a href='" + url + "'>" + current.number + "</a>");
    var assessment_record = current.number;
    var result = assessment_record.link(url);

    var heading = gs.getMessage('hi');
    var content = gs.getMessage('Please rate your overall experince by taking our Customer Satisfaction Survey' + result);

    return {
        messageHeading: heading,
        messageContent: content
    };

})(target, event, recipientTable, recipientSysId);

and my message looks like this (unclickable link):

bekfro_1-1722625883766.png

 


@Victor Chen 

@Jeff Fox 

1 ACCEPTED SOLUTION

bekfro
Kilo Sage

I found the answer!!
https://www.servicenow.com/community/virtual-agent-forum/servicenow-for-teams-notifications-set-cust...

 

If you want to redirect all the link Teams Virtual Agent Notifications to the custom Portal you can define the same in the Default portal under "sys_cs_provider_application" table .

If you have Requirement to configure based on specific tables ,you have to configure based on below document.

 https://docs.servicenow.com/bundle/vancouver-servicenow-platform/page/administer/conversational-int...

View solution in original post

1 REPLY 1

bekfro
Kilo Sage

I found the answer!!
https://www.servicenow.com/community/virtual-agent-forum/servicenow-for-teams-notifications-set-cust...

 

If you want to redirect all the link Teams Virtual Agent Notifications to the custom Portal you can define the same in the Default portal under "sys_cs_provider_application" table .

If you have Requirement to configure based on specific tables ,you have to configure based on below document.

 https://docs.servicenow.com/bundle/vancouver-servicenow-platform/page/administer/conversational-int...