Advanced customization and how to’s

Setup Resource Hero on a custom or standard object

All of the features and functionality that you can use out of the box on the Opportunity object can be applied to other standard and custom objects by following the steps below.

 

Create a new lookup field to your object

  1. From Setup, click on the Object Manager tab.
  2. From the quick find search box, enter Resource Assignment, then click on the link for the Resource Assignment object
  3. On the left side, click on Fields and Relationships section, then click the New button.
  4. Select Lookup Relationship as your field type, then click Next.
  5. Select your object from the Related To drop down, then click Next.
  6. Enter your desired Field Label and Field Name.  Write down the Field Name as we will need this later on.  Group and Professional Edition customers should ensure that the What to do if the lookup record is deleted radio button is set to Don’t allow deletion of the lookup record that’s part of a lookup relationship.  Click Next.
  7. Review Field Level Security settings, then click Next.
  8. Review Page Layout settings, then click Next.
  9. Review the Related List settings, then click Save.

 

Add custom setting entry

This step will allow Resource Hero to know how to find your custom object.

  1. From Setup, enter Custom Settings in the quick find search box, then click on the Custom Setting link on the left.
  2. In the list of Custom Settings, click the Manage link next to RHA Object Translation.
  3. Click the New button.
  4. On this page, enter the information based on the below details.

    Name (Ex.  Project__c) – This is the API name of the Resource Assignment lookup field that we created in the previous step.

    NameField (Ex.  Name) – This is the API name of the field on your custom object that you will show in the matrix that will link to your custom object’s detail page.  Usually this will be the Name field, however, in certain circumstances you may wish or need to use another field.  For example, if you were configuring Resource Hero on the case object, you would want to enter Subject.

    Namespace – Only used when your custom object was created as part of a managed package installation.  The Namespace, if any, can be found on the object detail page.

    Object Name (Ex.  Project__c) – This is the API Name of the object that we are configuring. Note: Both the Namespace and Object Name can be found on the Object detail page. From Setup, enter the word Object in the quick find search box, then click on the Objects link on the left. Click on the Label of the desired Custom Object. The namespace is listed here.

  5. Click Save.

 

Create a Custom Matrix

Depending on how you plan to use Resource Hero, you can create a custom matrix for forecasting, tracking actuals, and even other types of numeric fields.  Details on creating a new matrix Visualforce page can be found here:  Create a Custom Matrix.

 

Update your object’s Lightning Page

While viewing a record from your object, click the gear icon in the top-right corner, then click Edit Page.  Once the Lightning App Builder opens, the following components can be added to the page:

  • RH Manage Assignments lightning component
  • Resource Hero Time Tracking lightning component
  • Your new custom visualforce pages
Add RH components on standard or custom object

Create Resource Hero Rollup Fields

Resource Hero has a built-in mechanism that automatically rolls up aggregates from related assignments to your standard or custom object.  Details about out of the box rollups can be found here:  Resource Hero Rollup Fields

Information about creating your own custom rollups can be found here:  Customized Rollups

 

Have more questions?

Contact Us