According to the docs a behavior function can only be used with an "On....." action like OnSelect,.
We are trying to store the user profile picture in a collection together with the ID of the user. This will allow us to search the collection and only query the Office365Users API when we don't have the image in the collection. Currently we have a Gallery and in that Gallery there's an "Image" control We cannot use the behavior function "Collect" in the "Image " control/property.
The "OnSelect" property of the "Image" is not used. How can we collect the image for each record/row in the Gallery and then use it in the "Image" property?
What we would like to use in the Image property but is currently failing:
If(
Not(ThisItem.userOfficeID in varProfilePictures.id),
Collect(
varProfilePictures,
{
id: ThisItem.userOfficeID,
picture: Office365Users.UserProfileV2(ThisItem.userOfficeID)
}
)
);
LookUp(varProfilePictures, id = ThisItem.userOfficeID)
What is the best way to achieve this?

Report
All responses (
Answers (