i am new to dataverse and trying to build the helpdesk app and i wanted to hide certain text boxes like ticket-assined , should only be visible to the admin and the technicain can edit the ticket-status.
for this i have created a collection
ClearCollect(
isAdmin,
"xyz.com"
);
Set(
verifyemail,
Office365Users.MyProfileV2().mail
)
the collection isAdmin will be tested at the time of login when i user logs in the below and some other control should not appear.
so iam tryin the formula on the control using if(isAdmin,true, Navigate,xyz)....
any help is appriciated..
Reagrds
Rabbani
Solved! Go to Solution.
i have solved my issue after spending 3 hours reading global variables and collection, this time i use the global variable and assign the value as email address as admin
first APP-> on start i have created a gloabl variable called isAdmin
Set(isAdmin, user().email)
then in visible property i wrote the following formula
isAdmin = "admin@xyz.com" || isAdmin = "admin1@xyz.com" it works
Hi @Rabbanisyed,
I think you can try the below.
Select the field and Select OnVisible Property
if(isAdmin,true, false);
this code will check if logged ln User is Admin then TRUE(Enable the field) else FALSE(Hide the field)
Please mark as Answer if it is helpful and provide Kudos
Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com
i tried the above and i did not succeed, i am still getting error
i have solved my issue after spending 3 hours reading global variables and collection, this time i use the global variable and assign the value as email address as admin
first APP-> on start i have created a gloabl variable called isAdmin
Set(isAdmin, user().email)
then in visible property i wrote the following formula
isAdmin = "admin@xyz.com" || isAdmin = "admin1@xyz.com" it works
User | Count |
---|---|
20 | |
11 | |
10 | |
5 | |
5 |
User | Count |
---|---|
32 | |
30 | |
15 | |
12 | |
9 |