Modify activity.xml script to change activities formatter on tasks

sax10or
Tera Contributor

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.

 

4 REPLIES 4

Willem
Giga Sage
Giga Sage

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:

find_real_file.png

find_real_file.png

 

The result:

find_real_file.png

Willem
Giga Sage
Giga Sage

@sax10or can you mark answer as Helpful and Correct? This will close the thread.

If you have any additional questions, let me know how we can help 🙂

Kind regards,

Willem

Sunil hp
Tera Contributor

@Willem Is there a way to filter activities based on user?

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