We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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

 

Thanks and Regards
Amit Verma

View solution in original post

7 REPLIES 7

vermaamit16
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

Thanks and Regards
Amit Verma

@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

 

Thanks and Regards
Amit Verma

Hi @vermaamit16 

 

Thank you for the suggestion it's working perfectly.