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.

Inbound Email Action Spacing Issues

RSalihar
Kilo Explorer

Hi all,

 

I have an inbound email action to automatically created incident tickets. In this inbound action I have the body of the email being copied into the description field using this line:

        current.description = email.body_text;

 

When Service Now is processing the email, it is adding an extra line return after each line.
For example, if an email has a list the looks like this:

 

Item 1

Item 2

Item 3

 

Service Now processes it as

 

Item 1

 

Item 2

 

Item 3

 

This makes my description field look extremely long. Is there any way to setup how this is brought in by the instance?

6 REPLIES 6

Oh boy... and there we go. We only use Outlook Clients in our company...


Well me chekc if I can find a work-around... otherwise I'm going to contact SN support as it seems the communication with them is not impacted, so they must have a solution.


.replace(/\n\n/g,'\n');




this seems to do the trick for me... let me see if we will have some side effects on this.




Do you guys know if there is a way to find out if this email has been send with an Outlook Client? So I will then only run the above in case it's from an Outlook Client.