@harshi_ramesh 

yes it's a standard message which is shown.

The script I shared should work fine in both native + portal.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post