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

How can I create new record in sys_ux_my_list table using script

Alon Grod
Tera Expert

 

Hi,

Im trying to create new record or update an existing record using script and im getting this error:

Screenshot 2024-04-07 at 21.03.01.png



 But when I check the 'create' acl i only see this:

Screenshot 2024-04-07 at 21.03.47.png

Screenshot 2024-04-07 at 21.04.03.png

 

How can I create a new record via script in this table?

1 REPLY 1

James Chun
Kilo Patron

Hi @Alon Grod,

 

You would need to set the table's 'Can create' to TRUE.

JamesChun_0-1712519183046.png

Note that you may still get an error and I was able to fix it by flushing the cache by running the following script:

GlideTableManager.invalidateTable(<table_name>);
GlideCacheManager.flushTable(<table_name>;

The above is from the following article - https://www.servicenow.com/community/developer-forum/quot-write-operation-from-scope-rhino-global-ha...

 

Cheers