cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
czwatson
New Member

Patching with Concat Function removing values from gallery items

Hello, 

 

I have been struggling with this for a few days now and can't seem to resolve.

 

Specifically to the issue, within a gallery I have a multiselect combo box. The items property of the combo box is set to Office365Users.SearchUser({searchTerm:Reviewers1.SearchText}) and defaultselecteditems property set to {Value:ThisItem. 'Reviewer or Tester'}. I am patching values of the combo box to a single line of text column in a Dataverse table using:

 

'Reviewer or Tester':Left(Concat(Reviewers1.SelectedItems,DisplayName & ";"),Len(Concat(Reviewers1.SelectedItems,DisplayName & ";"))-1)

 

Without the concat function; everything works properly, if I were patching a single value. With the concat function; it combines the strings and patches the record within the gallery and to the data source fine. However, it deletes all previously patched combo box selections within the gallery and from the data source. If anyone could help, it would be greatly appreciated. Thanks. 

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @czwatson,

Do you want to keep the previously saved value and concatenate with the new saved value?

Could you please share a bit more about your scenario?

 

If you want keep the previously saved value, I think you should reference to the 'Reviewer or Tester' value of the current record.

'Reviewer or Tester':ThisItem.'Reviewer or Tester' & Left(Concat(Reviewers1.SelectedItems,DisplayName & ";"),Len(Concat(Reviewers1.SelectedItems,DisplayName & ";"))-1)

 

Best Regards,
Qi

View solution in original post

1 REPLY 1
v-qiaqi-msft
Community Support
Community Support

Hi @czwatson,

Do you want to keep the previously saved value and concatenate with the new saved value?

Could you please share a bit more about your scenario?

 

If you want keep the previously saved value, I think you should reference to the 'Reviewer or Tester' value of the current record.

'Reviewer or Tester':ThisItem.'Reviewer or Tester' & Left(Concat(Reviewers1.SelectedItems,DisplayName & ";"),Len(Concat(Reviewers1.SelectedItems,DisplayName & ";"))-1)

 

Best Regards,
Qi

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,607)