Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Flow Designer

Abhijit Somavan
Tera Contributor

Hello All,

Need help I have created flow for Microsoft Teams Graph Spoke in message activity i want to send message like below mentioned;

Number : INC********;
Caller : Caller Name;
Short Description : Test Teams link;
Assignment Group : TeamsTestGroup;
Assigned To : Assigned To Name;
Link To Incident In ServiceNow : 

INC****** 

But in the chat it is going in single line.

PS: I have used '\n'  in message script too. for reference please check screen shot.

Thanks in advance.

1 ACCEPTED SOLUTION

@Abhijit Somavan 

 

I tried reproducing it on my PDI. I am able to get the details in new line. Refer below snips :

AmitVerma_0-1728994084139.png

 

var incidentNumber = fd_data.trigger.current.number;
var html = '<html><p>Hi Team <br> Below are the details: <br>Incident Number:'+incidentNumber+'<br></p></html>';
return html;

 

Output -

AmitVerma_1-1728994124017.png

 


Please mark this response as correct and helpful if it assisted you with your question.

View solution in original post

7 REPLIES 7

Amit Verma
Kilo Patron
Kilo Patron

Hi @Abhijit Somavan 

 

You can send the message in HTML and introduce line breaks using <br> tag. Refer https://www.servicenow.com/community/developer-forum/show-line-breaks-when-posting-message-to-ms-tea...

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

@Abhijit Somavan 

 

I tried reproducing it on my PDI. I am able to get the details in new line. Refer below snips :

AmitVerma_0-1728994084139.png

 

var incidentNumber = fd_data.trigger.current.number;
var html = '<html><p>Hi Team <br> Below are the details: <br>Incident Number:'+incidentNumber+'<br></p></html>';
return html;

 

Output -

AmitVerma_1-1728994124017.png

 


Please mark this response as correct and helpful if it assisted you with your question.

Hi @Amit Verma 

 

Thank you for the suggestion it's working perfectly.