The CreatorCon Call for Content is officially open! Get started here.

Integration issue - invalid table name

chakriy
Giga Contributor

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.

2 ACCEPTED SOLUTIONS

@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 👍

Thanks,
Anvesh

View solution in original post

@chakriy  Instead of Hard Coding you can try getRecordClassName method.

Thanks,
Anvesh

View solution in original post

7 REPLIES 7

AnveshKumar M
Tera Sage
Tera Sage

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.

 

 

Thanks,
Anvesh

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..

 

@chakriy Are you using Internationalisation plugin to support multiple languages?

Thanks,
Anvesh

Yes, we are using i18ln plugins. But how this effect the code?