Help with JSON format

Hi guys, i need help with this
![A message box displays an email requesting the reactivation of an expired insurance policy, mentioning financial difficulties and an invalid recipient address error.

I had used this for the email body to be in the same line not different lines:


but even then it’s showing some spaces and i wanted no spaces in between the texts

Try below
Emailbody_SP = System.Text.RegularExpressions.Regex.Replace(Email_sp, "\r\n?|\n", " ")

Regards,
Arivu

1 Like

Hi @Anelisa_Bolosha1

Can you try this

Emailbody_sp = System.Text.RegularExpressions.Regex.Replace(Emailbody_sp,"\s{3, }", " ")

Regards,

1 Like

Thank so much this did the trick

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