web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Multiselect picklist - copy to text? - SOLUTION WORKS!!!

(0) ShareShare
ReportReport
Posted on by 90

I have a multiselect picklist that I want to show in an email in a process.  I understand this cannot be done by simply selecting the field.

Can the picklist be copied to a plain text field using jscript or some other method?  Does anyone have any sample code?  THANKS!

I have the same question (0)
  • Torrado Profile Picture
    1,270 on at
    RE: Multiselect picklist - copy to text?

    Hello,

    Please refer to these posts:

    JavaScript

    Power Automate

    Hope this helps you

    Please mark the answer as verified if helpful. That will help others in future.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Multiselect picklist - copy to text?

    Hi DawnK,

    You can create an automated flow to copy Multiselect picklist to a plain text field automatically.

    Here are steps. (For example, I have two fields in Account entity).

     pastedimage1620021594874v1.png

    1.Go power automate(https://us.flow.microsoft.com/en-us/) to create an automated flow.

    pastedimage1620021688318v2.png

    2.Set Trigger.

    pastedimage1620022000801v3.png

    3.Add action 'Get a row by ID'

    pastedimage1620022107400v4.png

    3.Add 'Compose' action.

    you can copy following function and replace multiselect field logic name.

    outputs('Get_a_row_by_ID')?['body/new_multiselectpicklist@OData.Community.Display.V1.FormattedValue']

    pastedimage1620022380641v5.png

    4.Add 'Update a row' action

    pastedimage1620022569373v6.png

    5.Test.

    pastedimage1620022723198v7.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • DawnK Profile Picture
    90 on at
    RE: Multiselect picklist - copy to text?

    Leah - thank you so much for the detailed instructions!  I sure do appreciate it!

    Unfortunately I cannot get it to work.  The text field is being filled with the text: 

    outputs('Get_a_row_by_ID')?['body/new_swapprovedswmultilookup@OData.Community.Display.V1.FormattedValue']

    Any ideas what I did wrong?  THANKS!

    pastedimage1621014726247v2.png

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Multiselect picklist - copy to text?

    Hi DawnK,

    Not copying value i provided and paste it into in the 'compose' step directly.

    pastedimage1621244659087v1.png

    You need firstly click '+Add dynamic content' and navigate to 'Expression' tab in the dialog.

    pastedimage1621244740561v2.png

    Then you can paste value in it and click ok button

    pastedimage1621244878612v3.png

    Finally, result should like following screenshot:

    pastedimage1621244975811v4.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • DawnK Profile Picture
    90 on at
    RE: Multiselect picklist - copy to text?

    Hi Leah, thanks for your response.  My Compose does not offer the "Add Dynamic Content" so that's why I put the code there.

    pastedimage1621273674273v1.png

  • Julia Streatfield Profile Picture
    25 on at
    RE: Multiselect picklist - copy to text? - SOLUTION WORKS!!!

    Hi

    Did you resolve this? I'm stuck at the same point - entering the text as per the example into the Expression box, returns invalid expression when I click OK.

    Cheers

    Jules

  • DawnK Profile Picture
    90 on at
    RE: Multiselect picklist - copy to text? - SOLUTION WORKS!!!

    Yes I did!  Attached is my documentation.  Hope it works for you!

    Flow-to-copy-a-multi_2D00_select-field-to-a-text-field.docx

  • GBarkin Profile Picture
    84 on at
    RE: Multiselect picklist - copy to text? - SOLUTION WORKS!!!

    This is simple, and it works, thanks!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 242

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 83 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 68 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans