web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Hide Edit form of the ...
Power Apps
Answered

Hide Edit form of the LineItem to User login in Expenses app

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

Hope you are doing well,

I'm currently working on my Expenses app, want to hide edit form, so that the person logged in can only see they own LineItems only.

 

Thanks,

Monisha

Categories:
I have the same question (0)
  • Bipin D365 Profile Picture
    971 on at

    Hi,

     

    You would need to do couple of changes to achive your requirement -

    1. App Onstart -> ClearCollect LineItems2 add EmailAddress field in collection

    {Title: "Lodging", ID: "1", Date: DateAdd(Now(), -5, Months), Category: "Business Needs", Cost: 1400, ReportID: "4", Description: "Lodging throughout trip", Email:"bipinshan@bipininfysolution.onmicrosoft.com"}

    2. While Adding Line Item on click of Save button you would need to set Email Address User().Email

    Email:User().Email

    3. Filter gallery by logged in user to show line item created by logged in user

    Filter(LineItems2,ReportID = Text(SelectedReport2.ID), Email=User().Email)

     

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: https://xrmdynamicscrm.wordpress.com/

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @bipinshan,

     

    Thanks for responding, could you be more clear the comments please.

    Monishayuvaraj_0-1639482414386.png

    Thanx,

    Monisha

     

  • nickellis74 Profile Picture
    432 Moderator on at

    I think @bipinshan's suggestion is a bit over complex.  Assuming the underlying data is SharePoint, simply set the gallery data source to

    Filter('SharePoint Data Source','Created by'.Email = User().Email)

    The gallery will then only show the records created by the logged in user.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @nickellis74,

     

    Thanks for responding, still I get error.

    Monishayuvaraj_0-1639483212966.png

    Kindly help me please.

     

    Thanx,

    Monisha

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi  @nickellis74',

     

    Monishayuvaraj_1-1639483729676.png

    I'm getting error like this.

  • Himanshu_90677 Profile Picture
    416 on at

    In the Onvisible property of screen 

    Set(editformvisible, false)

    Make editform visible property to visibleeditform 

    And then 

    Add this 

    Set(visibleeditform, true);

    When you want to show this form

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @CNT,@StalinPonnusamy ,

     

    I need help to solve this below error please,

    Monishayuvaraj_0-1639485501857.png

    Thanks,

    Monisha

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous  'Created By' B - Should be in Caps

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @CNT,

    Thanks for responding,

    Monishayuvaraj_0-1639486889140.png

    Im still getying same error.

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at
    Filter(IssueTracker, 'Created By'.Email=User().Email)

     

    StalinPonnusamy_0-1639486882303.png

     

    Reproducing your error (When use 'Created by' instead of 'Created By'

    StalinPonnusamy_1-1639486905705.png

     


    Thanks,
    Stalin - Learn To Illuminate

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard