cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dual Super User
Dual Super User

Re: formula does not return records

Hi @octaking 

 

First try and get data in varUserObj

 

for that break formula up into different parts and test

 

Add a button - onselect for button 

Set(varUserEmail,User().Email);

Set(varuserObj,LookUp(Users,('User Name')=(varUserEmail)));

 

see if you get value

 

next try just

loading Users into a collection

clearcollect(colUsers,Users)

then for a label text try

First(colUsers).'User Name' 

check value

 

Also in a label try varUserEmail and check its value

 

There must be something very easy that is missed

 

 

 

octaking Helper V
Helper V

Re: formula does not return records

Hi @RezaDorrani 

The test brings the data we hope look

 

the label 1 is : First(colUser).'UserName'

the label 2 is : the variable Email

 

download (15).png

 

And the collection also returns of all users username

Dual Super User
Dual Super User

Re: formula does not return records

Hi @octaking 

 

CountRows(Filter(Users,('User Name')=(varUserEmail)))

 

what does this give you

octaking Helper V
Helper V

Re: formula does not return records

CountRows (Filter (Users, ('User Name') = (varUserEmail)))

has returned me 1

 

and check the gallery where I want to show the data and this time if the result has returned the records I expected 🙂

I think about who activated this is:

ClearCollect (user, users)

 

thank you very much Reza without a doubt in the community you are the best 🙂

you should open a youtube channel for powerapps

 

Dual Super User
Dual Super User

Re: formula does not return records

Hi @octaking 

 

I have a you tube channel 🙂

Please subscribe to it

https://www.youtube.com/channel/UCvBYTqRx-n_8KzFO0MJlUVw?view_as=subscriber

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

octaking Helper V
Helper V

Re: formula does not return records

you already have a new subscriber 😄

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Attending MBAS? Claim your badge

Attending MBAS? Claim your badge

Whether you’re streaming the digital event live, or watching on-demand, claim your attendee badge to sport on your profile.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

‘Better Together’ Integration Forum Launch

‘Better Together’ Integration Forum Launch

We're launching a how-to forum where you can learn about how Power BI integrates with other Power Platform products.

Emergency Response & Monitoring Solution

Emergency Response & Monitoring Solution

Microsoft has created a regional government emergency response and monitoring solution that is built on Power Apps and Power BI.

Top Solution Authors
Top Kudoed Authors
Users online (5,953)