Table of Contents

Search

  1. Preface
  2. Installing Cloud MDM - Customer 360 for Salesforce
  3. Upgrading Cloud MDM - Customer 360 for Salesforce
  4. Configuring Page Layout
  5. Glossary

Customizing the Visualforce Pages for Salesforce Objects

You can override the Visualforce pages through which you can create Salesforce objects. You can hide the custom buttons in the account, contact, and lead Visualforce pages.
Use the following internal settings to customize the Visualforce pages:
Roles to Hide Search on Scout Pages
You can hide the custom buttons in the
CC360
account, contact, and lead Visualforce pages. To hide
Search
,
Search Option
,
Hide Required Fields
, and
Show Required Fields
, set the internal setting
Roles to Hide Search on Scout Pages
value to a user profile.
The following sample code sets the value of the internal setting to a profile:
API_SettingsManager.updateInternalSetting('Roles to Hide Search on Scout Pages','Profile1');
Account Scout Redirect URL
You can override the account Visualforce page and redirect it to a custom account Visualforce page. To override the account Visualforce page, set the internal setting
Account Scout Redirect URL
value to the URL of a custom account Visualforce page.
Use the following sample code to set the value of the internal setting
Account Scout Redirect URL
to the URL of a custom account Visualforce page:
API_SettingsManager.updateInternalSetting('Account Scout Redirect URL','/apex/<URL of the custom account Visualforce page>id=@RECORDID@');
For example, the following sample code sets the value of the internal setting to the URL of a custom account Visualforce page:
API_SettingsManager.updateInternalSetting('Account Scout Redirect URL','/apex/MyAccountRedirectpagename?id=@RECORDID@');
Contact Scout Redirect URL
You can override the contact Visualforce page and redirect it to a custom contact Visualforce page. To override the contact Visualforce page, set the internal setting
Contact Scout Redirect URL
value to the URL of a custom contact Visualforce page.
Use the following sample code to set the value of the internal setting
Contact Scout Redirect URL
to the URL of a custom contact Visualforce page:
API_SettingsManager.updateInternalSetting('Contact Scout Redirect URL','/apex/<URL of the custom contact Visualforce page>id=@RECORDID@');
For example, the following sample code sets the value of the internal setting to the URL of a custom contact Visualforce page:
API_SettingsManager.updateInternalSetting('Contact Scout Redirect URL','/apex/MyContactRedirectpagename?id=@RECORDID@');
Lead Scout Redirect URL
You can override the lead Visualforce page and redirect it to a custom lead Visualforce page. To override the lead Visualforce page, set the internal setting
Lead Scout Redirect URL
value to the URL of a custom lead Visualforce page.
Use the following sample code to set the value of the internal setting
Lead Scout Redirect URL
to the URL of a custom lead Visualforce page:
API_SettingsManager.updateInternalSetting('Lead Scout Redirect URL','/apex/<URL of the custom lead Visualforce page>id=@RECORDID@');
For example, the following sample code sets the value of the internal setting to the URL of a custom lead Visualforce page:
API_SettingsManager.updateInternalSetting('Lead Scout Redirect URL','/apex/MyLeadRedirectpagename?id=@RECORDID@');

0 COMMENTS

We’d like to hear from you!