Is it possible to pass parameters to the scheduled job?

Flavio Tiezzi
Kilo Sage

Hello everyone,

 

I need to execute a script that inserts into the sys_user_grmember table. However, since the Application Administration is active, I need to run it with the admin user of the application. I tried running it via Scheduled Job with this user, and it worked well, but I can't seem to update the parameters.

 

PS: I am aware of SncTriggerSynchronizer but not sure how to pass the parameter.

 

Does anyone have any suggestions?

 

 

Thanks.

1 ACCEPTED SOLUTION

Flavio Tiezzi
Kilo Sage

To solve my issue, I created a new role with the Application Administration field set to true and assigned this role to the user who needed to run the scripts. This allowed the script to be executed.

View solution in original post

8 REPLIES 8

Hi,

In my case, I need to run the script with a specific user, and the scheduled job is capable of doing that. However, this script needs to receive parameters dynamically

 

Do you have any other suggestions for running a script with a specific user?

 

I don't really understand your question as it's not how Scheduled Jobs work. What are you trying to achieve with this script?

Basically, I need to dynamically insert a record into the sys_user_grmember table. However, since Application Administration is enabled in my scoped application, I can only do this by running the script with the application admin user, so I cannot run the script with the system user

 

I know it's not the expected behavior of the scheduled job, but so far it's the only way I've found to run a script with a specific user

Flavio Tiezzi
Kilo Sage

To solve my issue, I created a new role with the Application Administration field set to true and assigned this role to the user who needed to run the scripts. This allowed the script to be executed.