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

How to filter items which including user().email address from approvallog?

Dear all:

I am a starter for power apps with sharepoint.

I have a question about Filter function.

I recording approver's email address into approvallog, now i would like to filter items from approvallog which including user().Email.

But i don't know how to do for it.

Would you please help me out?

Jackywei_BDF_0-1653980640744.png

Thanks a lot:)

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

@WarrenBelz :

Thanks for your reply.

I have settle this issue by following function.

Filter(list, User().Email in Approvallog)

View solution in original post

4 REPLIES 4
WarrenBelz
Super User
Super User

Hi @Jackywei_BDF ,

If ApprovalLog is a Person field, you need this

Filter(
   YourSPList,
   ApprovalLog.Email = User().Email
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

@WarrenBelz :

 

Approvallog is Text column in sharepoint list, it is including approver's comments & Email address & approve time. it is totally text.

Such as below screenshots

Jackywei_BDF_0-1653982698938.png

How to Filter Email address from it and   = user().Email?

 

Thank you very much!

@Jackywei_BDF ,

It is helpful to include all the information in your first post - note this is not Delegable and assumes that the email address will always be the second item with the first space before it.

Filter(
   AddColumns(   
      YourSPList,
      "Log",
      Last(
         FirstN(
            Split(
               ApprovalLog,
               " "
            ),
            2
         )
      ).Result
   ),
   Log = User().Email
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

@WarrenBelz :

Thanks for your reply.

I have settle this issue by following function.

Filter(list, User().Email in Approvallog)

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,494)