Skip to main content
June 16, 2021
Question

Append to text doc from template smartservice

  • June 16, 2021
  • 8 replies
  • 1 view

Hello Community,

U want to use a array of CDT's as input to the text from template smartservice. It works fine for 1 Line. How to configure the next CDT's Will append to the document on the next Line? Tried joinarray char 13 and char 10, this only works for one mergefield.

Kind regards,

Erik

    8 replies

    mikes0011
    Brainy
    June 16, 2021

    As far as I know, you should be able to insert char(10) linebreaks into a text-from-template document and get linebreaks in the resulting text document.  If you have a dynamic number of rows you want to generate in the document, you would probably need to use one merge field and use an expression rule to handle generating the text that you want to populate into it.

    The Expression Guru
    erikb0001Author
    June 16, 2021

    Okay that option crossed my mind, but thought maybe there is another solution.

    Thanks for your help Mike.

    Kind regards,

    Erik

    stefanhelzle0001
    Brainy
    June 16, 2021

    I did that a while ago. You have a placeholder in the file. When inserting, just add that same placeholder at the end. Appian will replace it happily in the next iteration.