I have an app tieed to our Dynamics CRM database to add customers (contacts) onto a training request (ie forklift safety, etc...) The user pulls up a list of all customers for a given account using a gallery with filters to narrow down to just users that need updated credentials.
At that point I have a "Request Training" button that copies the gallery into a collection called ClassRoster using and redirects the user to a new screen
At this point the user updates fields such as date and time of training and then can remove items from the collection if needed
Where I run into the problem is the concat() function in the Office365.SendEmail(). In the past when I've used that function the Collection has been built one item at a time and a variable such as "ContactName" was set to the gallery item "Contact Name" and I could call that field in the Concat("Name: " & Contact Name)
Now I pulled the entire Item into the collection and I pull fields just like i do in the collection (ThisItem.fullname) but when I try to pass this through in the email string using
or using the name of the label the resulting email just has the first gallery items name repeated for every item in the email.
Any ideas of what i'm doing wrong?
Here's the full button script with both the gallery.selected.fullname and the label name in for example: