Build URL without SYS_ID

TramaineM
Kilo Sage

Hello,

I'm trying to build a URL for another system that they can use to take them directly to the Account in Agent Workspace. The problem is how do I get the sys_id for the account record? They will have the Account number (name) that they will pass into the URL, but I cannot get to the account without the sys_id.

https://myinstance.service-now.com/now/workspace/agent/record/customer_account

This is the beginning of the URL, and I've tried customer_account/name/123456789 as well as customer/?sysparm_query=name=123456789. Whenever I try it with a real account number that exist, I get record cannot be found. 

4 REPLIES 4

Community Alums
Not applicable

Hi @Tramaine ,

You can Navigate to accounts > open the required Account > Right click on the header > click on "Copy SysID > see below: 

find_real_file.png

 

You can also find sysID in the URL too, i have highlighted in the above screenshot .

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

Hi Sandeep,

Thanks for your response, however that's not what I was asking as I already know where to get the sysID for records.

External systems won't know the sysID of those records but they have the Account #. So my question was how do we set up a URL on that system that will take them to that ServiceNow Account record without having the sysID? Or does it have to be an API?

Allen Andreas
Administrator
Administrator

Hi,

Unfortunately, from all my research around this, you won't be able to navigate with just the customer name/account number (any other field value other than a sys_id) in the URL. You'd want to give them the sys_id at some point through your interaction and then they'd use that in the URL.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Dave Belgard
Tera Contributor

this DOES work

 

 https://[your SNOW Instance]/[Table Name].do?sysparm_query=[Field]=[Value]

 

opens directy to the record