Modify activity.xml script to change activities formatter on tasks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020 02:16 AM
Hi,
I would like to change the activities formatter user interface on task forms.
I have add screechots to illustrate the need.
1/ Task activities formatter
2/ Add a lign and a value on "Email sent activity" : File attached : name + type of file
Is that possible ? And how ?
Regards.
Rémi.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020 10:38 PM
Many have tried, many have failed.
The Activity.xml is not available outside of ServiceNow.
What you could do however to fulfill your requirement is add a field "File attached" to the table you want it to show. Create a business rule that sets the value of the "File attached"-field whenever a file gets attached to name + file. Then you can add the "File attached"-field to the Activity formatter:
The result:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2020 11:49 PM
If you have any additional questions, let me know how we can help 🙂
Kind regards,
Willem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2023 09:48 AM
@Willem Is there a way to filter activities based on user?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
Yes, but it requires customization.
The fields selection is stored in User Preferences [sys_user_preference] in a record with the name "<table_name>.activity.filter" (e.g. "incident.activity.filter") tied to a user. If you make sure, by means of e.g. a business rule(s),
1) the record exists for each user, and
2) whenever it gets updated, the value (fields list) gets reset to whatever you want
then the behavior for the end user is exactly that: individual for each user and can't be overridden