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

its sending all the additional comments new ones and previous too I only want to send the latest add

kiran kumar m1
Tera Contributor

I have created a flow , whenever we change the additional comments it should send a mail to the caller mail with those additional comments , but whenever I update the additional comments , its sending all the additional comments new ones and previous too I only want to send the latest additional comments though mail, I am thinking of writing script but in email body I dont find any way to write script ? How can we achieve this ?

1 ACCEPTED SOLUTION

Abhay Kumar1
Giga Sage

@kiran kumar m1 you will have specify like ${comments:1},

please follow below servicneow document for more details scroll down to go line whether explain about comment variable to be used for any number of comment:

https://docs.servicenow.com/bundle/washingtondc-platform-administration/page/administer/notification...

Hope this will help you.

View solution in original post

11 REPLIES 11

Abhay Kumar1
Giga Sage

@kiran kumar m1 you will have specify like ${comments:1},

please follow below servicneow document for more details scroll down to go line whether explain about comment variable to be used for any number of comment:

https://docs.servicenow.com/bundle/washingtondc-platform-administration/page/administer/notification...

Hope this will help you.

@Abhay Kumar1 I have tried this in my email body but its not working , do I have to use it in email scripting?

dgarad
Giga Sage

Hi @kiran kumar m1 

please can you try the below?

dgarad_0-1713507284347.png

 

 

If my answer finds you well, helpful, and related to the question asked. Please mark it as correct and helpful.

Thanks
dgarad

Hi my flow is in this manner

kirankumarm1_0-1713507634290.png

the scenario is I have created a custom application , whenever a ticket is created and it is assigned to agents , if they need more info they will add the required info in additional comments , as the comments gets updated it should send  a mail with the additional comments in the body , but when I put additional comments second time the previous additional comments are also getting attached in the body ? Can I frame the email  template in the body using scripting and I want the latest comments only .