The CreatorCon Call for Content is officially open! Get started here.

Total no of active incidents count should be displayed after submission of an incident record

great
Kilo Contributor

Hi all,

I want to  get Total no of active incidents count should be displayed after submission of an incident record as  a message.How can I get the same.

 

 

1 ACCEPTED SOLUTION

Shweta KHAJAPUR
Tera Guru

Hi,

Use below code in After BR on incident table,

var inc = new GlideRecord('incident');
inc.addActiveQuery();
inc.query();
gs.addInfoMessage("Records in incident table: " + inc.getRowCount());

 

View solution in original post

5 REPLIES 5

find_real_file.pngHi Shweta,

Thank you. I have one more query can you please help me on this as well.

 

when I'm trying attach any document to an incident, currently its showing like( see attached screenshot). Now I want to update one comments saying

username attached a document in worknotes

 

example : babu attached a document "test file".

please help me how can I achieve the same'