Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

UIページへの遷移を行うためのURLについて

TianhanJ
Mega Guru

Notificationの本文に以下のmail scriptを使用して、UI page($pwd_change)への遷移URLを作成しました。

送信されたメールのURLをクリックすると、UI pageへ遷移するユーザーとトップ画面へ遷移するユーザーがいる状況が確認されています。

この遷移先が異なる原因と、全てのユーザーがUI pageへ正しく遷移できる方法について、ご教示いただけますでしょうか?

	var url = 'https://'+ gs.getProperty('instance_name') + '.service-now.com/$pwd_change';
	template.print('<a href="' + url + '">' + LINK+ '</a>')
4件の返信4

Ankur Bawiskar
Tera Patron
Tera Patron

@TianhanJ 

Homepage destination rules, Service Portal entry scripts (SPEntryPage), or custom redirect logic can override the intended target and send users to a workspace, portal, or generic home page after login

check these links

Role based redirection with SPEntryPage 

KB0869746

Homepage Redirect Rules in Next Experience 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thank you for your response,

I have reconfirmed the user settings.

Users with the same role are redirected to dfferent destination.

When a user clicks the link without logging in,some are redirected to the UI page while others are redirected to the top page.

 

@TianhanJ 

it has something to do with redirection

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

@TianhanJ 

try to add this in URL -> add .do in the URL

var url = 'https://'+ gs.getProperty('instance_name') + '.service-now.com/$pwd_change.do';
template.print('<a href="' + url + '">' + LINK+ '</a>')

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader