Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

UI Button
colormagenta
titleFluorine
urlhttp://doc.perspectium.com/display/fluorine


To deploy Apex triggers in your Salesforce production organization, you will need to create them Apex triggers in a sandbox organization and then move the triggers over to your production organization. You can move the triggers in this way using change setsWhen deploying change sets, you may need to add a test class that tests your trigger's Apex code to ensure 75% coverage of all Apex code. By default, the Perspectium Managed Package comes with a test class that covers the basic components of Perspectium's dynamic share Apex triggers.


Prerequisites


(warning) First, you will need to install the Perspectium Package for Salesforce.

(warning) You will also need to configure your Salesforce remote site settings.

Procedure


To deploy Apex triggers in a Salesforce production organization, follow these steps:

UI Steps
UI Step

Log into your sandbox Salesforce organization and click theicon in the top right-hand corner of the screen. Then, click Setup.

UI Step

In the Quick Find window on the left side of the screen, type and then click Apex Test Execution (under Custom Code).

UI Step

In the upper left-hand corner of the Apex Test Execution form, click Select Tests...

UI Step

For any tests that need to be run, check the box next to each test and then click the Run button.

UI Step

In the Quick Find window on the left side of the screen, type and then click Outbound Change Sets (under Environments > Change Sets).

UI Step

At the top of the Change Sets list, click the New button.

UI Step

Type any name for the change set. Then, click Save.

UI Step

Under the Change Set Components section, click Add.

UI Step

From the Component Type dropdown, choose Apex Trigger. Then, check the boxes next to the Apex triggers you want to include:

Apex TriggerTriggers dynamic sharing of...
PSP_Case_Local_Attachment_CaseTriggerattachments added to Salesforce case records
PSP_Case_Local_CaseTriggerSalesforce case record data (excluding attachments and document links)
PSP_Case_Local_ContentDocumentLink_CaseTriggerdocument links added to Salesforce case records

Finally, click Add To Change Set to finish adding the Apex triggers to the change set.

UI Step

Log into your production Salesforce organization and click theicon in the top right-hand corner of the screen. Then, click Setup.

UI Step

In the Quick Find window on the left side of the screen, type and then click Inbound Change Sets (under Environments > Change Sets).

UI Step

Choose to deploy the change set you created under the Change Sets Awaiting Deployment section.



Similar topics


Content by Label
showLabelsfalse
max5
showSpacefalse
sortcreationmodified
cqllabel = "optional-config" and parent = "27548266096249"

Contact Perspectium Support


US: 1 888 620 8880

UK: 44 208 068 5953

support@perspectium.com