Description

This article shows how to generate data for your first Salesforce Object in GenRocket. 


Note: If you have not already added a Salesforce Profile to GenRocket, please do so before continuing. More information can be found here: How Do I Create a Salesforce Profile in GenRocket?


In This Article


Step 1 - Create a New GenRocket Project

  • Log into the GenRocket web platform.

  • Within the Projects pane, click the New Project button.


  • Enter a Name and Description (Optional) for the Project.

  • (Optional) Select an Industry from the drop-down menu.

  • Click the Save button.


Step 2 - Browse Salesforce Objects in GenRocket

  • Click the New Domain button within the Domains pane.


  • Select Import from Salesforce from the drop-down menu.


  • 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 select a Salesforce Object to import into a GenRocket Domain. 

  • Click on the Filter input field to search for a specific Salesforce Object. 

  • Use the page buttons to view each available page of Salesforce Objects.


Step 3 - Import the Account Object into a GenRocket Domain

You will need to select the Salesforce Object and the Fields to be imported into the GenRocket Domain. Complete the following steps to do so:

  • Tick a radio button to select a Salesforce Object.

  • 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.

  • 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 - Set the Domain's loopCount

A Domain's loopCount determines how many records of test data are generated. This information can be changed from the Domain Dashboard (shown in Step 3 above).

  • 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 5 - Modify an Attribute's Generator

When a Salesforce Object is imported into a GenRocket Domain, a Generator will automatically be assigned to each Attribute (i.e., Field). Sometimes the Generator or its configuration will need to be modified to ensure the right test data is generated. 

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

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


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

  • Currently, the RangeCatReferenceGen is assigned to the Attribute. We want to replace it with the FullNameGen Generator.


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

     
  • Click to select the FullNameGen 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.


  • Use the Preview Tab to see a preview of the data for the Attribute.


Step 6 - Review the SFObjectInsertReceiver Configuration

The SFObjectInsertReceiver will be automatically added and configured for the GenRocket Domain. This Receiver will receive the generated data and insert it into Salesforce over RESTful Web services.  

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

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


Step 7 - Create a GenRocket Scenario

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 8 - Generate and Insert Account Data into Salesforce

Finally, the data will need to be inserted into Salesforce in real time from the Scenario Dashboard.
  • Click the Execute From Web button.


  • A confirmation message will be provided once the Salesforce data has been generated.

  • Click the OK button to close this message.



Video Training

This video may be used to see these steps in action as well. Please note that the screen may appear slightly different due to GenRocket version differences between the instructions above and this video.