Hello everyone,
I ran into a weird issue and was hoping you could help. I don’t see anything wrong with my code at the moment, but I have checked multiple times and I’m scratching my head.
This is on the OnVisible property of the screen:
UpdateContext({varUsers:
Filter(
Office365Users.SearchUser({top: 999}),
AccountEnabled
&& EndsWith(Mail, "@samplecompany.com")
&& Not(IsMatch(DisplayName, ".*\d.*"))
)
})
This code stores the data into varUsers, and I checked the context variables under the same screen. It does have all the data I wanted.
Now, I set varUsers for the Item property of three comboboxes:
- ComboBox1 item:
varUsers - ComboBox2 item:
varUsers - ComboBox3 item:
varUsers
Here is the part I am struggling with:
- ComboBox1 seems to ignore
Not(IsMatch(DisplayName, ".*\d.*"))even though it is from thevarUsersvariable. - ComboBox2 and ComboBox3 seem to ignore all the filters except for
AccountEnabled.
I tried this on another tablet and encountered the same issues. One of my colleagues tried the app and is seeing the same issue. If it matters, I am in my developer environment and do have access to the production environment.
I also tried this, but the same issues occurred:
// Copying data from Connection to variable
UpdateContext({varUsers:
Filter(
Office365Users.SearchUserV2({top: 999}).value,
AccountEnabled
&& EndsWith(Mail, "@samplecompany.com")
&& Not(IsMatch(DisplayName, ".*\d.*"))
)
})
I also tried this, but the same issue persists:
// Copying data from Connection to variable
Set(varUsers,
Filter(
Office365Users.SearchUser({top: 999}),
AccountEnabled
&& EndsWith(Mail, "@samplecompany.com")
&& Not(IsMatch(DisplayName, ".*\d.*"))
)
})
Thank you!
EDIT: Removed one line of code just in case for piracy concern.

Report
All responses (
Answers (