Loading ...

Email indentation

         Text is inserted without indentation. It may happen that when you paste text into a field, it changes.
         For example, Body on the Email Activity screen. We insert the following text.



After pasting, we get the following result.


The solution is to change our string to a format that supports HTML.
The code below will fix our problem so that it is displayed correctly with indents in the HTML environment, as in the Email Activity field

text = text.Replace("\n", "<br>").Replace("\r", "<br>");

 

Base.CurrentMessage.Current.Body = text;


Need Customization for Your Acumatica Development?

If you’re dealing with formatting issues like the one described in this article—or any other customization challenges in Acumatica—our team can help! Whether it's automating workflows, improving UI behavior, or integrating third-party tools, we specialize in tailoring Acumatica to fit your needs.

📩 Leave a request today, and let’s build the perfect solution for your business!

 

Be the first to rate this post

  • Currently 0.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5