Along with configuring object types, you can configure custom object types in Salesforce. This enables associating projects/intakes with custom object types such as Asset, Deals, Campaigns, and more.
Permission: Users must have the privilege System Administrator in Salesforce and Company Administrator in RFPIO. |
The steps involved in configuring custom object types are as follows:
- Click
icon and select Setup.
- You will be navigated to the Home From the left navigation pane, click Objects and Fields displayed under PLATFORM TOOLS.
- Select Object Manager. The Object Manager page will be displayed.
- Scroll down and click RfpioDetail. The RfpioDetail page will be displayed. For intakes, select RfpioIntakeDetails.
- Click Field & Relationships. The Fields & Relationships page will be displayed.
- Click New. The New Custom Field page will be displayed.
- Select Lookup Relationship and click Next. A page as shown below will be displayed:
- Select the field to which the custom object has to be related (for example: Campaign) and click Next. A page as shown below will be displayed.
- Enter the values as shown in the image.
Note: The required checkbox should NOT be selected. |
- Click Next.
- The field level security page will be displayed. Click Next.
- The Add Reference Page will be displayed. Clear the selection associated with RfpioOpportunity Layout and click Next.
- The Add Custom Related Fields page will be displayed. Clear the selection associated with Campaign Layout and click Save.
The newly added custom object field will be displayed in the Custom Fields & Relationships section as shown below:
- From RFPIO, click Organization Settings > INTEGRATION > Salesforce Configure.
The Salesforce pop-up will be displayed as shown below:
- Click CONNECT TO SALESFORCE AND PUBLISH DATA FOR REPORTING.
Once connected a field as shown below will be displayed:
- Click Add Salesforce Data. Select Campaign from the options.
- Select Campaign ID from the Report Field Mapping drop-down.
- Click SUBMIT.
- From Salesforce Home page, enter visualforce pages in the Quick Find text box.
- The results would be displayed as shown. Click Visualforce Pages.
- The Visualforce Pages will be displayed. Click New.
A page as shown below will be displayed:
- Enter the Name, Label and Description.
Note: Label must be unique. |
- In Visualforce Markup section, enter the following code:
Project:
<apex:page StandardController="YOUR CUSTOM OBJECT API" extensions="rfpio.RfpioController" showHeader="false" applyHtmlTag="false" sidebar="true" action="{!onLoad}" docType="html-5.0"> <rfpio:RfpioComponent recordId="{!recordId}" RFPIO_BASE_URL="{!RFPIO_BASE_URL}" bgColor="{!bgColor}" JSONString="{!JSONString}" createButton="{!createButton}" intakeButton="{!intakeButton}" associateButton="{!associateButton}" removeAssociateButton="{!removeAssociateButton}" launchRFPIO="{!launchRFPIO}"> </rfpio:RfpioComponent> </apex:page>
Intake: <apex:page StandardController="YOUR CUSTOM OBJECT API" extensions="rfpio.RfpioIntakeDetailsController" showHeader="false" applyHtmlTag="false" sidebar="false" action="{!getIntakeDetails}" docType="html-5.0">
|
Note: Replace YOUR CUSTOM OBJECT API with Campaign, as you had selected custom field lookup relationship for the object Campaign. Similarly, you can replace the value for other custom object types. |
- Click Save. The Campaign page will be displayed as shown below:
- Once the Visualforce page is created, from the Salesforce Home page click Campaigns.
- The Campaigns page will be displayed. Click New.
- Enter the details and click Save. The Campaign created will be displayed in the Recent Campaigns tab as shown:
- Next, click Settings icon, select Setup.
- From the navigation pane, select Object and Fields > Object Manager.
- The Custom Object page will be displayed. Select Campaign.
- The Campaign page will be displayed. Click Page Layouts.
- The Page Layouts page will be displayed. Click Campaign Layout.
- The layout settings page will be displayed.
- Select Section, drag it and place it in Campaign Detail section.
- The Section Properties pop-up will be displayed. Enter the section name as RFPIO Documents, and select the Layout as 1-Column.
- Click OK.
- Click Visualforce Pages, select Campaign and drag it and place it in RFPIO Document section.
- Once the Visualforce page has been added, click the properties icon or double click on the layout. The Visualforce Page Properties pop-up will be displayed.
- Modify Height (in pixels) to 500, to have extra space for viewing the projects.
- To show scrollbars and labels, select the associated check-boxes.
- Click OK. The layout will be displayed as shown below:
- Click Save to save the changes.
- Click
App launcher icon > select Sales from App Launcher pop-up. The tabs will be listed.
- Click Campaigns and then click on the campaign name.
- The campaign’s page will be displayed. Click Details The layout will be displayed.
To refer other Salesforce (Lightning) documentation, click here.