Page Assignments

Page assignments allow you to assign different Skuid pages to different profiles, end users, record types, and any combination thereof. To access the page assignments created within the org, click Deploy in the Skuid navbar.

Warning

All users must be granted access to the Visualforce page override when using page assignments, even if some will not be using a Skuid page.

Skuid will not be able to properly redirect users otherwise

Note

  • Users will be redirected to the standard Salesforce layout until an organization default page assignment is set. This allows for controlled roll outs of Skuid pages.
  • Except for Other Situation-based assignments, page assignments are not enforced until a matching Visualforce page has been created and assigned to a Salesforce action. To do this, see Applying Visualforce Overrides.

Managing assignments

After navigating to the Page Assignments page, you’ll see a table of all assignments, and it will likely be empty if Skuid is newly installed.

For each field on this table, begin typing the appropriate value and then select it from the lookup list. To create a new assignment within the table, click fa-plus-circle Add new Page Assignment.

Each row in the table has the following actions:

  • fa-pencil Edit Row: Click to edit an assignment’s fields.
  • fa-times-circle Flag for Deletion: Click to prepare an assignment for deletion. To finish deleting one or more assignments, click Save.

Every page assignment consists of the following:

  • Object Type: Enter the Salesforce object that this assignment should be based, e.g. Account or CustomObject__c.

    • Other Situation: Use this option to create an page assignments that controls which Skuid page appears when a end user visits an arbitrary link, which might be a home page dashboard component, a specific link in Skuid Navigation, or any other non-object based page.

      If you use this option, you must select an arbitrary Action Type for the assignment.

      If you are using the Visualforce generation form when looking through markup samples, insert the value of the Other Situation field in the Salesforce Object API Name field.

  • Action Type: Select the Salesforce action—as seen on the object’s Buttons, Links, and Actions pane—that should be overridden by this page assignment.

  • Applies To: Select how an assignment will be handled within the organization.

    • Organization Default: All end users in the org will see the assigned page.
    • Profile: Only users with a certain Salesforce profile will see the assigned page.
    • User: Only one particular end user will see the assigned page.
  • Record Type: If an assignment’s selected object makes use Salesforce record types , you further specify the assignment based on this field.

    • Any Record Type: All record types for the object will display the same page.
    • Specific Record Type: Enter a particular record type to assign a page to.
  • Page to Use: Select what type of page to present to end users.

    • Skuid Page: Enter the name of the Skuid page to be assigned.
    • Use Standard Layouts: Enforce the original Salesforce layout for a user with a Skuid license. This may be useful when particular profiles or users need to see the standard layout when an organization default assignment is already set.
  • Active: Enable and disable an assignment by checking and unchecking this box, respectively.

Note

The Object Type, Action Type, and Page to Use fields all must match the Visualforce markup used for the override.

You can also use filters and the search form to narrow your results if you have many assignments. Activating filters will also pre-populate fields if a new assignment is created while they are active.

Note

The Record Type field takes precedence over Profile, so if you have a System Administrator Profile page assignment for the Account object and an Organization Wide Default Account page assignment for a particular record type and a System Admin user selects the Group tab, then that administrator will see the record type-assigned Account page, not the profile-assigned Account page.

Additional actions

Several additional actions are available by clicking the down arrow fa-caret-down beside fa-plus-circle Add new Page Assignment.

  • fa-suitcase Package all Page Assignments:

    • Packaging Options: Select which page assignments should be packaged on this page.
    • Choose Pack: Select whether to create a new pack—with a name and description—or update an existing one within the org.

    After selecting how to package page assignments, click fa-suitcase Package all Page Assignments to create the pack as a static resource.

  • fa-briefcase Unpack Page Assignments from Pack(s): Select a static resource that corresponds to a pack of page assignments and click fa-suitcase Unpack to apply those page assignments in the table.

  • fa-file-excel-o Export Page Assignments: Exports the table’s data as a CSV. This can also be accomplished by clicking fa-file-excel-o Export table data at the bottom of the table.

Lightning Page Assignments

In Salesforce Classic, Skuid page assignments allow you to assign different Skuid pages to different end users, records types, or profiles. The Skuid Page Assignment component brings the same functionality to Salesforce Lightning—meaning Skuid pages can be assigned to records, users, and profiles in the updated Salesforce interface.

For example, you have a Lightning page that serves as a sales dashboard comprised of numerous KPIs. While most of your team only requires regional sales data, the CEO requires the ability to see national sales data. Because your sales team and CEO need to see different views, you would create two separate Skuid pages and two page assignments based on user profiles to ensure they see the appropriate sales data.

To accomplish this, you would use the the Skuid Page Assignment component to place the appropriate page assignment into an existing Lightning page.

But first, you’ll need to recreate your page assignments specifically for Lightning.

To set up page assignments for Lightning, navigate to Deploy > Lightning in the Skuid UI.

Each assignment has the following properties:

  • Situation: The value that is referenced by the Skuid Page Assignment Lightning component to display the correct Skuid page. This is an arbitrary, user-specified value, such as SalesView or HomePage.
  • Applies To: How an assignment will be handled within the organization.
    • Organization Default: All end users in the org will see the assigned page.
    • Profile: Only end users with a certain Salesforce profile will see the assigned page.
    • User: Only one particular end user will see the assigned page.
  • Page to Use: Select the Skuid page to present to users.
    • Clicking fa-search will bring up a table with a list of all available Skuid pages.
    • Typing a page name in the search box and clicking fa-search will provide all Skuid pages that fit the entered search terms.
  • Active: Enable and disable an assignment by checking and unchecking this box, respectively.

There are a few notable differences between Page Assignments on Salesforce Classic and Lightning, including:

  • The Situation column corresponds to the Object Type > “Other Situation” option in Salesforce Classic. This indicates the value referenced by the Skuid Page Assignment Lightning component to render the correct Skuid page.
  • The Action Type field is not applicable in Lightning and is not an option.
  • Record types are not supported by the Lightning Page Assignment component because Salesforce provides an effective tool for managing different pages for different record types.

Note

The Lightning page activation https://help.salesforce.com/articleView?id=lightning_app_builder_customize_lex_pages_activate.htm&type=5 feature can be combined with the Page Assignment component to deliver the right Skuid page to the right record type.

Troubleshooting

  • Users receive an Insufficient Privileges error when trying to access a Skuid page or when trying to access the standard Salesforce layout:

    You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary. For more information, see Insufficient Privileges Errors.

    Users who see this error may not have access to the Visualforce page that overrides the Salesforce page.

    If other users are redirected to the standard Salesforce layout, they still must have access to the Visualforce page. If not, Skuid will not be able to properly redirect those users.

    Verify the user or profile has access to the Visualforce page containing the override markup.