Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Workflow to populate multi line text box

Posted on by 140

Hello, 

I had a request today that I have been working on writing a workflow for. But bascially the client wants two fields that they update reguarly to populate a running list of the changes to those fields. Today they currently enter date and copy and paste text manually. 

The two fields are Last Contact Date: (Date Only) Subject: (Single line of text (100 characters)) then they copy below to a Detail field which is a Multi Lines of Text 2000 characters.

I was able to write a workflow using the append with operator and it puts the data there correctly when first ran. But when edit text and run workflow again it overwrites it.

So basically they want the following in the detail field and these values would come from the Last Contact Date and Subject fields in the form. 

02/26/2020 - Test3

02/22/2020 - Test2

02/21/2020 - Test1

I cannot seem to find a way to do carriage return and append to the field without overwriting it. Does anyone know if this is possible?

Thanks,
Chris

  • meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Workflow to populate multi line text box

    Hi Chris,

    I recommend Kokulan's approach. 

    Thank you Kokulan Eswaranathan for the tip.

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Workflow to populate multi line text box

    Hi

    Yes its possible and please see below screenshot as to how you can achieve this.

    6708.ScreenClip-_5B00_15_5D00_.png

    Hope this helps

  • chrisc5431 Profile Picture
    chrisc5431 140 on at
    RE: Workflow to populate multi line text box

    Mehdi,

    Thanks for quick response. I have only written javascript that looks up values or formats. Never one that would hold data as a variable. Do you have any examples you could share?

    Thanks,

    Chris

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Workflow to populate multi line text box

    Hi,

    You can use JavaScript for this scenario.

    Your JS will automate the Copy/Paste. Store the current multi lines in a variable (OnLoad Event). Then add your new line (OnChange Event).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans