- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 08:26 AM
We have an integration which is working fine but if the ticket is created from record producer by some users it is not working. When we checked the logs we are getting a strange message like invalid table name.
We found there is no issue with roles.
Why it is not working for few users?
Help is highly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 11:16 PM
@chakriy There you go. Using getClassDisplayValue() returns the table name in the user preferred language. Hence try another approach to pass the table name.
Please mark my answer helpful and accept as solution if it helped you 👍✅
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2023 05:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 07:46 PM
Hi @chakriy
As you mentioned it is not working for few users and the when the Incident is created from RP.
Can you please share your code if possible, atleast the code where the table name is being used.
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 08:21 PM
This is the code we are using in the Business Rule.
var json_obj = new PayloadBuildUtils().constructJSON(current.sys_id, current.getClassDisplayValue(), current.assignment_group);
In the above code we call a Script Include to construct the JSON and pass the Table name using current.getCladsDisplayValue().
And the error thrown in the ScriptIclude where we pass the table name to a GlideRecord.
Please help..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 09:58 PM
@chakriy Are you using Internationalisation plugin to support multiple languages?
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 11:00 PM
Yes, we are using i18ln plugins. But how this effect the code?