Description

This article will show how to import a Salesforce Object into a GenRocket Domain and then populate the Account with generated test data in real time. 


In This Article


Step 1 - Activate a Salesforce Profile

  • You will be prompted to activate a Salesforce Profile after selecting a Project in the GenRocket web platform.

  • Click on the desired Salesforce Profile to select it.



Step 2 - Retrieve the List of Salesforce Objects

  • Click the New Domain button within the Domains pane.


  • Select Import from Salesforce.


  • Click the Load Objects button to load your Salesforce Objects.


  • All Salesforce Objects will be loaded and displayed within the pop-up window.

  • Here, you can view each Salesforce Object in your environment.


Step 3 - Create a GenRocket Domain

To create a GenRocket Domain, you must finish importing the Salesforce Object.

  • Use the Filter field or the Page viewing options to view your Salesforce Objects.

  • Tick the radio button to select a Salesforce Object to be imported into a GenRocket Domain.

  • For this example, the AccountPOC_c Object has been selected.

  • Click the Next button after making your selection.


  • Next, select the Fields to be included within the created Domain. 

  • Check the box for each desired field. 

  • You may also use the Select All or Deselect All options to quickly select or remove all selections.

  • Click the Next button to continue with the import.


  • The selected Salesforce Object and Fields will be imported into a GenRocket Domain.

  • Each selected field for the Salesforce Object will be a Domain Attribute in GenRocket.



Step 4 - Generate Test Data

A few configuration changes and steps are necessary before generating and inserting test data back into Salesforce in real time.


Step 4a - Replace the Generator for the name Attribute

To generate more accurate test data, the name Attribute Generator will need to be replaced with the F500Name2014Gen Generator. This will produce a list of Fortune 500 Companies from 2014.

  • Click on an Attribute within the Domain Dashboard to view its Generator configuration.

  • For this example, the name Attribute will be selected, and its Generator will be changed.


  • The Generator configuration will be displayed at the bottom of the screen.

  • We want to replace the current Generator with the F500Name2014Gen Generator.

  • Click on the Quick Generator Replacement Menu and type F500Name2014Gen.

     
  • Click to select the F500Name2014Gen Generator and then click the Replace button.


  • Make any needed changes to the Generator configuration.

  • Click on any field to type a new value or use the drop-down menus to make a selection.

  • Click the Save Generator button to save your changes once finished.


Step 4b - Alter the Generator Configuration for the shippingCity Attribute

Next, we need to ensure the billingCity and shippingCity Attributes do not create different data.

  • Click on the shippingCity Attribute within the Domain Dashboard.


  • Select false for the autoReference configuration parameter.

  • Click the Save Generator button.


Step 4c - Change the Account Domain global loopCount to 20

A Domain's loopCount determines how many records of test data are generated. This information can be changed from the Domain Dashboard.

  • Click on the Edit (Pencil) icon to change this value.


  • Click on the Value field and enter a number value. For this example, 20 will be entered.

  • Click the Save button to finish.


Step 4d - Review the SFObjectInsertReceiver Configuration

  • The SFObjectInsertReceiver will be automatically added and configured for the Domain.

  • It can be viewed by clicking on SFObjectInsertReceiver within the Domain Dashboard.


  • The parameter configuration for the SFObjectInsertReceiver will appear as shown below for this example:


  • Click on the Attribute Property Keys Tab to see the configuration of the property keys.


Step 4e - Create a Scenario for Generating Test Data

Next, you will need to create a Scenario for the GenRocket Domain. Complete the following steps: 

  • In the Domain Dashboard, click the Quick Scenario button in the Domain Scenarios pane.


  • The Name will be automatically populated and match the Domain Name.

  • You may change the name if desired or add a Description.

  • Click the Save button to finish.


  • You will be redirected to the Scenario Dashboard, as shown below.

  • Here, you can make any needed configuration changes before generating and inserting data back into Salesforce.



Step 5 - Insert Test Data into Salesforce via REST

  • Click the Execute From Web button.

  • The data will be dynamically generated and inserted into Salesforce in real time.


  • Once the data has been generated, you can immediately go into Salesforce and see the results.


Video Training

The following video can be used to see this example in action. Please note that some screens may appear differently based on the application version.