Issue with kronos spoke
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2025 10:35 AM
I am using Kronos spoke. I setup connection (Integartions->connections) and it prompted for user name/password and successfully got token and grant type is 'password'.
If I have flow for kronos, does it automatically use this connection or is there anyway I can say in the flow to use this connection?
Since I got issues, I tried to use action getkronos token. However it is giving error pointing to 'Provided Credential Sys ID is invalid.'. The same code works fine in background script. I am listing code. It is wierd. Let me know if anyone has suggestions. Appreciate it.
var tokAccess = new GlideRecord(
"oauth_2_0_credentials");
tokAccess.addQuery('sys_id', sys_id);
tokAccess.query();
if (tokAccess.next()) {
return sys_id;
} else {
throw new Error(
"Provided Credential Sys ID is invalid.");
}
0 REPLIES 0