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

Need help on disabling the updated by while running fix script

shaik_irfan
Tera Guru

Hi,

 

I am running Fix Script whoever runs the fix script it is updating on the user name who updated the script.

 

I want to display it as system

 

Can anyone please help me how to do this ?

 

I know we can use "autoSysFields(false);" but it is disabling sys_updated_by, sys_updated_on, sys_mod_count, sys_created_by, and sys_created_on 

 

for me i just want to disable sys_updated_by field it should track when it was updated. can anyone please help me how to do this ?

 

6 REPLIES 6

Jaspal Singh
Mega Patron
Mega Patron

Hi Irfan,

 

In that case is it not possible to use the fix script as a background script & then set Run as: System administrator for Background script?

No Jaspal because we are going to move this to production instance and we do not have control in production so we need to go with fix scirpt.

 

Can we hardcode and manually the sys_updated_by field as system ?

 

 

I dont find much difference in Fix Script & Background script other than I can save my script for future references/use in Fix script but that cannot be done via Background script.

If required you can use Schedule Job & choose the field Run As field as System Administrator. Since, you would be using schedule job it will give an option for you to execute it once, or whenever you want.

@Jaspal Singh 

 

cant we create hard coded as shown above like

gr.sys_update_by = 'system' ???