SharePoint workflow put mutiple lines of text to a single line text

Er Bo Guan 461 Reputation points
2021-05-19T15:21:18.937+00:00

I have successfully saved the values to multiple lines text in SharePoint:

97971-workflow1.png

Then I used a workflow to put the value to a Word document

97962-workflow2.png

However, multiple lines “a_equipModel_t” become singe line in Word Document.

97946-workflow3.png

Any idea or solution for this issue would be appreciated. Many thanks

Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

Accepted answer
  1. Echo Du_MSFT 17,316 Reputation points
    2021-05-20T08:01:16.117+00:00

    Hello @Er Bo Guan ,

    In my test, I cannot reproduce your problem.

    98120-word.png

    Please following steps:

    1.Create a list named Ex and create some columns in the list.

    98155-3.png

    2.Create a Document Library named TestLib and create the same fields in the TestLib library for mapping.

    98231-4.png

    3.Create a template document named TestLib Template.docx. The template now looks likes here:

    98167-5.png

    4.Open SharePoint Designer>> click on All Files >> open the TestLib library >> open Forms >> click Import Files from the top of the ribbon, import the TestLib Tempalte.docx file from the Windows location.

    98168-6.png

    5.On the Workflows tab click on List Workflow >> Ex.

    6.Name the Workflow "TestLib" (SharePoint 2010 Workflow).

    7.Click on Action >> Create list item

    98183-6.png

    8.Click OK and Save. Now click Workflow Settings, and check "Start workflow automatically when an item is created"

    98135-8.png

    9.Click Save and Publish.

    10.When you create new item in the Ex list, SharePoint will automatically create document in the testLib library.

    98184-workflow.gif

    For more information, please refer to this post.

    Thanks,
    Echo Du

    =========================

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Er Bo Guan 461 Reputation points
    2021-05-20T16:02:10.55+00:00

    Thank you that you spent time in the test/demo that approved workflow passes the multipliable lines to the variables. I repasted document properties to the template again. It works! Thanks a lot.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.