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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Users online (3,096)