- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 04:50 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 05:04 AM
This is just an example script
You need to enter the column names which you want to enter in scheduled job
gr.name
gr.run_as
gr.period
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 04:54 AM - edited 01-11-2023 05:03 AM
Hi @PRADEEPREDDY GU ,
You can glide on sys_trigger table.
Below is the example to insert a record
var gr = new GlideRecord("sys_trigger");
gr.initialize();
gr.short_description = 'test';
gr.name= 'Give some name';
gr.run_as = " dfgy"
gr.insert();
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 05:00 AM
Evaluator: com.glide.script.RhinoEcmaError: "inc" is not defined. script : Line(9) column(0) 6: gr.name= 'Give some name'; 7: 8: gr.run_as = " dfgy" ==> 9: inc.insert();
error shown waht is inc

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 05:03 AM
gr.insert(); // not inc.insert();
Will edit top reply.
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 05:04 AM
This is just an example script
You need to enter the column names which you want to enter in scheduled job
gr.name
gr.run_as
gr.period
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.