Can I add a record to sys_dictionary by using a script?

erantal2000
Giga Contributor

Hi everyone,

I am trying to create a script that will automatically add field to a table.

Is there a way I can do this? maybe by adding a record to sys_dictionary?

I tried to do that by using GlideRecord but it didn't work.

Any ideas?

1 ACCEPTED SOLUTION

I just created my own app and scoped table. WHen I executed it on scoped app, it gave me cross-scope-privilege error.

I executed it in Global scope and it worked.


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

14 REPLIES 14

Still, no luck 😞

I just created my own app and scoped table. WHen I executed it on scoped app, it gave me cross-scope-privilege error.

I executed it in Global scope and it worked.


Please mark this response as correct or helpful if it assisted you with your question.

Thank you very much!

From Global scope it worked perfectly.

Just one comment... in the sys_scope field, I had to put the sys_id of the scope (not the name).

I appreciate the help very much 🙂

 

Eran

Jon Barnes
Kilo Sage

I wouldn't do this. there are other tables that come into play like sys_documentation, etc that you have to go through as well. what is your use case here?

I have a scoped application in which I want to enable automatic conversion of other applications into my scoped application.

So I want the integrator to have the list of customized fields in an Excel file, and then upload the file and create those fields...