cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sababneh
Level 8

I don't have permission while editing app

Hello, this gallery filter isn't working and giving me

 

"You don't have permission to view this data"

 

The data source is Sharepoint, and I have full access, this is the formula:

 

SortByColumns(
    Filter(
        OnlineTickets,
        ClosedTickets=true Or (ClosedTickets=false And (OnlineTicketStatus="الطلب مفتوح" Or OnlineTicketStatus="تم التعامل" Or OnlineTicketStatus="الطلب مرسل" Or OnlineTicketStatus="انتظار العميل" Or OnlineTicketStatus="تم التجهيز" Or OnlineTicketStatus="تم التوثيق" Or OnlineTicketStatus="تم التوقيع")),
        VarUserRole.Text="Super" Or (VarUserRole.Text="Inputer" And (OnlineStageOneDepartmentName=VarUserDepartmentName.Text Or VarUserDepartmentName.Text=OnlineStageTwoDepartmentName Or VarUserDepartmentName.Text=OnlineStageThreeDepartmentName Or VarUserDepartmentName.Text=OnlineStageFourDepartmentName Or VarUserDepartmentName.Text=OnlineStageFiveDepartmentName Or VarUserDepartmentName.Text=OnlineStageSixDepartmentName Or VarUserDepartmentName.Text=OnlineStageSevenDepartmentName Or VarUserDepartmentName.Text=OnlineStageEightDepartmentName)),
        MyTickets=false Or (MyTickets=true And OnlineCurrentDepartmentName=VarUserDepartmentName.Text),
        ClosedTickets=false Or (ClosedTickets=true And OnlineCurrentDepartmentName="أرشيف"),
        IsBlank(TextInput2) Or (OnlineCustomerID=TextInput2.Text Or ID=Value(TextInput2.Text)))
    ,"ID",
    Descending)

When VarUserRole.Text is Super, it is working fine, but if I change it to Inputer, it won't work and give me this permission error.

 

Thanks

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,407)