- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2024 04:12 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2024 05:09 AM
I tried reproducing it on my PDI. I am able to get the details in new line. Refer below snips :
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 -
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2024 04:26 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2024 05:09 AM
I tried reproducing it on my PDI. I am able to get the details in new line. Refer below snips :
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 -
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2024 12:02 AM