Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Answered

Concatenate "Name" of all selected row from subgrid to one text field

Posted on by Microsoft Employee

Hi All,

I want concatenate "Name" of all selected row from subgrid to one text field.

I try this with a flow, but it give me one row when i execute the flow.

pastedimage1625602805815v1.png

Any idea Please!!

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,198 User Group Leader on at
    RE: Concatenate "Name" of all selected row from subgrid to one text field

    Hi,

    You can implement this scenario by adding a new button to your grid + implement your logic using JS code.

  • AriaConsulting Profile Picture
    AriaConsulting 2,651 on at
    RE: Concatenate "Name" of all selected row from subgrid to one text field

    ,

    On the very slight chance it's not obvious from her reply, Nya is another fab resource here in the forums for the more developer type aspects.  (that's a subtle hint that you might want to consider following her....)

  • Verified answer
    Nya Profile Picture
    Nya 29,054 on at
    RE: Concatenate "Name" of all selected row from subgrid to one text field

    Hi,

    You can enable the Concurrency Control for the trigger of the flow by clicking the 3 dots button > Settings of the trigger. (Value of the limit = 1)

     pastedimage1625624945278v1.png

    Here is my example to get the names of the selected contacts and append them to the description of the account with the Expression - concat.

     pastedimage1625624950183v2.png

    Here is the original description of the account.

     pastedimage1625624962973v3.png

    After I selected the two contacts in sub-grid and run the flow,

     pastedimage1625624968323v4.png

    the description is shown as the following:

     pastedimage1625624977876v5.png

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Nya

  • AriaConsulting Profile Picture
    AriaConsulting 2,651 on at
    RE: Concatenate "Name" of all selected row from subgrid to one text field

    Hey Wahaj Rashid,

    You're much better at the "developer" aspects than me.  If adds a "for each" to the compose or the variable versions of the Flow, will that solve the problem of getting all the selected records to concat?  Or does it need to be an array?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Concatenate "Name" of all selected row from subgrid to one text field

    I mean i get the name of last row selected in subgrid, not all names. :/

  • AriaConsulting Profile Picture
    AriaConsulting 2,651 on at
    RE: Concatenate "Name" of all selected row from subgrid to one text field

    Sorry, I'm not sure what that means.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Concatenate "Name" of all selected row from subgrid to one text field

    I get now the last selected!!

  • AriaConsulting Profile Picture
    AriaConsulting 2,651 on at
    RE: Concatenate "Name" of all selected row from subgrid to one text field

    What if you replace the init variable with Compose?  What output do you get?

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,647 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans