HR satisfaction survey link to ESC instead of default portal

Rob143
Tera Contributor

We are using two portals, SP (IT) and ESC (HRSD), SP is the default portal.

We use ESC for HRSD and want to send Satisfaction surveys to our users.

We configured the Survey, but the link in the Notification is to the default portal (the SP portal).

We want the link to the survey to open in the ESC portal.

Is there a possibility to select the portal in which the survey link will open?

Changing the default portal to ESC is not an option because then we shift the problem to IT.

Thanks in advance.

1 REPLY 1

Tony Chatfield1
Kilo Patron

Hi, I don't utilize HR but looking at OOB survey notifications in a PDI there are a number of different methods used to generate the survey link.

//some formatting removed in these examples as unable to post 'banned key words'
Incident Survey - mail_script:incident_survey
Change Survey - HTML Link to event.parm2 Click here to take the survey
Request Survey - <a href =event.parm2>Click here to take the survey</a>

But all 3 of these ultimately use event.parm2 as a reference.

I would start by identifying the triggered notification, you can get the sys_id of the notification by looking at the email log of a sent email message.
Then review the way the link is generated, as this could potentially also be via a notification temple?

Then hopefully it's a simple tweak in the notification, template
or a replacement of any notification email script IE the 'incident_survey' example

I use this code to create portal specific links for tasks via a notification email script and you should be able to adapt to suit your requirements.

var instanceURL = gs.getProperty('glide.servlet.uri');
var myTable = current.sys_class_name;
var myPortal = '/sp/'; //your portal ID
	
var myURL = '<a href=' + instanceURL + myPortal + '?id=form&table=' + myTable + '&sys_id=' + current.sys_id + '>' + current.number + '</a>';

template.print(myURL);