created by field should display user name instead of user id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2016 12:29 PM
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
- Labels:
-
Scripting and Coding
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2016 01:56 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2016 04:07 AM
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