Documentation

Looking for something in particular?

Extract Salesforce Layout

This test step extracts all fields and the master Page Layout details of a target Salesforce object into an Excel sheet.

This test step is helpful when you want to extract or check over an entire Salesforce page layout. It is typically used with the Assert Salesforce Layout test step, which compares an extracted page layout from one Salesforce org to a current page layout. This is useful for comparing page layouts between sandboxes (for example) or checking that no changes have occurred in an existing org.

The API can also be used to test field permissions of the logged-in user of a given Salesforce connection.

To use this API, locate the Extract Salesforce Layout test step in the Test Palette and click and drag it into your test case.

Update the parameters as follows:

  • Connection Name: The Salesforce Connection relating to the Salesforce org from which you want to use to extract the layout information and the user details you want to use to do it
  • Object Name: The Salesforce object whose fields and page layout need to be extracted. Refer to the Org Browser for the exact name of the object.
  • Result File: The file format in which to save the information (default is Excel Workbook)
  • Workbook: Choose the destination Excel Workbook on your local machine.  An Excel named ‘Workbook’ will be created in your Test Project Folder by default.
  • Worksheet: Leave this info blank. A new sheet named the Object will be added with the field information.  Additionally, a sheet named Master will be added containing the page layout information for that object.
  • Include Field Permissions: If checked, add a list of access permissions to each and every field on that object for all profiles in that SF org.
  • Then save the test case

Example

The screenshot above shows the use of an Extract Salesforce Layout API to extract the Page Layout and field details of the Contact object from a connected Salesforce Org identified as SFConnection.

Page layout details

Field details    


Feedback

Was this article helpful for you?
Documentation library

Trying to raise a case with our support team?

We use cookies to better understand how our website is used so we can tailor content for you. For more information about the different cookies we use please take a look at our Privacy Policy.

Scroll to Top