How to call fix script from schedule job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2024 07:02 AM
Hi Team,
Please assist How to call fix script from schedule job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2024 07:13 AM
Hi @naresh g
Use below code in your scheduled job script. Pass your fix script name in query.
Hope it helps. Kindly mark helpful/ accepted if assists you.
Regards,
Priyanka Salunke.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2024 08:23 AM
Hello @naresh g ,
Kindly use below code in the scheduled job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2024 01:36 PM
Move the code from the Fix Script into and adapt it for a Script Include.
Call a method of the Script Include both from the Fix Script and the Scheduled Job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2024 02:10 PM
I believe the existing responses provide valuable insights. However, running a fix script from a scheduled job might not be optimal. Fix scripts, being server-side on-demand scripts, are susceptible to modifications by other developers. It is advisable to consider executing such scripts from a script include. If feasible, replacing the fix script with a script include is also recommended for better maintainability.