created by field should display user name instead of user id

shail3
Giga Contributor

As per my requirement the system fields created by and updated by should show username instead of userID for all tables such as incident,problem,change etc.I tried with Display business rule but it's not working.

Thanks

2 REPLIES 2

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

These are special fields and you cannot do what you want. If you really need to do it, you need to create your own fields. Then you fill in whatever you want in them.



//Göran


ariesmanlangit
Kilo Expert

Hi,


        Created by and Updated by Fields are in String format. If you really need to modify these fields, you need to find the business rule which controls the assignment of these fields. If you can't, you can create a business rule which updates these fields to their respective names.



You can create a Business rule that runs after the create and a business rule that runs after the update.



Then, include a script where in you will update the



current.sys_updated_by



current.sys_created_by



fields for EACH. I think this can work and will not affect the original implementation of ServiceNow.




You can refer to this link for the info about business rules.



Hope this solves your problem.



Thanks,



Aries


serviceNow Developer - Philippines



*please hit Helpful or Correct answer if this helps you, thanks