Sending HTML to parameter body in notification and conversation

The parameter body asks HTML to put text into the parameter. Now I want to send these line of text:

programma : C:\Run 2\mYAPP.exe 
datum userfile : 07-10-2024 
datum bijbestellingen : 05-11-2024 
database locatie : C:\MY APP 
database grootte : gsn.dat (174 mb)

If the text is sent to freshdesk, the text is in one line and doesn’t use a cariage return on screen. But if I use “programma : C:\Run 2\mYAPP.exe
” the “
” will not converted in freshdesk as a cariage return.

How do I convert my lines of text to freshdesk, so that freshdesk will show correctly?
Is it also possible to use tables?

I’m using delphi ad desktop application.

Hi @jkuiper

Do you want to add multiple line notes in Freshdesk ticket notes section.
If yes, please send any sample body.

This is an example of my JSON:

{
    "body": "programma             : C:\\Run 2\\MyApp.exe\r\ndatum userfile        : 07-10-2024\r\ndatum bijbestellingen : 05-11-2024\r\ndatabase locatie      : C:\\RUN 2\r\ndatabase grootte      : gsn.dat (174 mb)",
    "private": true
}

Hi @jkuiper,

To add multiple lines in ticket notes, you can use the < div> and < br> tags.

Here’s an example of the body payload format you can use:

This will render your ticket notes as shown in the example image below:

Problem solved. Thank you.
I used TNetEncoding.HTML.Encode in Delphi to convert strange characters into HTMLcode. but its seems you don’t have to do it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.