0

Is there a way for us to hide the Setup button without disabling the "View Setup and Configuration" setting on the profile .

We need to have this setting enabled because in few of the flows we are using GetRecords on the Profile object (ie to get the profile information for logged in user). Hence by disabling this setting, the flow will not work.

Could you please let me know if there is any other way.

Thanks

2
  • You can do this. You need to disable "View Setup and Configuration" to hide "Setup" Commented Feb 3, 2022 at 6:06
  • @NagendraSingh Thank you for responding . A quick question on this . In the flow I mentioned, GetRecords is on the Profile object and the condition requirement is Id EQUALS $User.ProfileId (basically to get the logged in user's profile information). So even in this case, can we move it to sub-flow?
    – Megh
    Commented Feb 3, 2022 at 6:19

1 Answer 1

0

You can do this. You need to disable "View Setup and Configuration" to hide "Setup". You can divide your flow into parts here.

The one which fetches the data from profile, convert that to a subflow, run it with System Admin level access System Context Without Sharing—Access All Data and export the required data and let the other flow run as it is.

3
  • Thank you for responding . A quick question on this . In the flow I mentioned, GetRecords is on the Profile object and the condition requirement is Id EQUALS $User.ProfileId (basically to get the logged in user's profile information). So even in this case, can we move it to sub-flow?
    – Megh
    Commented Feb 3, 2022 at 6:13
  • If you are just using it to fetch self profile id, you need not even create a subflow, as every user will be able to access their profile even if view setup is disabled. Commented Feb 3, 2022 at 7:13
  • Is there a way we can get the name of the profile as well and not just the Profile Id?
    – Megh
    Commented Feb 3, 2022 at 10:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .