Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

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

(0) ShareShare
ReportReport
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,204 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,655 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,056 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,655 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,655 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,655 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

News and Announcements

Announcing Category Subscriptions!

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans