After completing this unit, you'll be able to:
In the previous units, you created a session-based permission set, activated it using a flow, and assigned the permission set to a user. If we stop here, you could have users run your flow to activate the permission set for themselves. However, this can be awkward and isn’t very user-friendly. Most hiring managers don’t need to run flows in our scenario, and they might not have permission to run them.
You can use some simple Visualforce markup and create a custom tab to run your flow. In fact, you might have already used Visualforce in the past. But if you want to make things even easier on yourself, we recommend using a Lightning app page. Why? First, there’s no need to write any markup. None! Then, there are fewer steps to complete your work. Hopefully these are good enough reasons, but let’s start the process so you can see for yourself.
What we just did is make the flow that activates your permission set easy to access via a Lightning component. In the Sales app, you can see the tab in the navigation menu.
All hiring managers need to do to activate the Employment Contracts Access permission set for themselves is select the Activate Temp Access Flow tab. Once the tab is selected, the flow begins running in the background. When completed, a message displays that the flow has finished running. The hiring manager now has read, create, edit, and delete access during the current session.
Let’s test everything that you’ve done now.
TIP: If the New button doesn’t appear, try refreshing your screen or switching to Salesforce Classic and then back to Lightning Experience.