Is it possible to pass some text to Activity Log

lingamgunta_mah
Kilo Contributor

Is it possible to pass some text to the 'activity log' directly with out saving the text to any of the fields in the table. As far as i know in a table form if we add a 'Activity Log' to it then we can configure only the fields available in that table or it's parent table fields.

Can some one help me on this, if it is achievable in Geneva release?

Thanks,

Mahesh.

10 REPLIES 10

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

If I understand correctly you want to save information only in comments field without updating the full record (like updating fields Updated, Updated By) ?


I am not looking for this.


For every table form we can have the Activities(Filtered) which is used to capture the data that passes to 'Journal' type fields. Also what ever the fields we have configured in that activity log will capture the changes to that.


In my scenario i have UI action button and onclick of that i need to pass some text to the 'Activity Log' directly. So here i don't want to pass this text to 'Journal' filed and add that Journal filed to the Activity Log.



Thanks,


Mahesh.


Activity log is based on Activities (filtered) UI formatter, its just retrieving data from several tables, it doesn't store data.



So, what you want is not possible on Activity log as it's not a field to store data.


fkhan
Kilo Guru

Hi mahesh



Try this using business rule:



function onAfter(current, previous) {


  var req_note='hello world';


  current.work_notes.setJournalEntry(req_note);


  current.update();


}


Thanks


Farukh