1/ Pricing Campaign processes

Data extracted from other tools can be found in GooglSheet: 


Template to fill in to upload data in Salesforce : 

Only Data Steward and Pricing Manager profile will upload Pricing Campaing and CPC into Salesforce:  


2/ User Access to Pricing Campaign feature

User, with the correct profile and permissions, can access to the Pricing Campaign feature through the top menu:



Otherwise, they can also access to the Pricing Campaigns through the App Launcher:


3/ Lightning Web Component - Pricing campaign


A. Table 'Pricing Campaign CPC'

Pricing campaign CPC records are displayed in the LWC below.



The main goal of these filters on this LWC for users were to be as useful and helpful as possible.


User must easily find CPCs with key information. Due to this requirement, we implemented logic explained below:


1/ Frozen Column

Two columns have been frozen for helping the user during the navigation of this table from left to right:


2/ Quote History Link

Quote history link redirect the user to a Salesforce report 'Account and Product Price History'


3/ Rationale link

Rationale link redirects the user to a google sheet: 


At the bottom of this LWC, Pricing campaign layout is available with Pricing Campaign key information:



B. Table 'Related'



4/ Quote creation from Pricing campaign CPCs

A. Rejected CPCs

If Account Manager Review ISCHANGED to Rejected - is not auto-saved, but instead:

  1. Message pop's up: “To Reject this CPC, please provide a Reason for Rejection.”

  2. If the User then changes Reason for Rejection from null to not null:

    1. auto-save and commit both values to database (Account Manager Review = Rejected and Reason for Rejection with whatever value the User chose).

  3. if the User does not change Reason for Rejection from null to not null and instead refreshes the page:

    1. do not save any changes made by the User - returning Account Manager Review to the value it had before it was changed to Rejected.

  1. Alternatively, if the User just changes the Reason for Rejection from null to not null and the Account Manager Review != Rejected, present User with a validation Error:

    1. “Please choose Rejected on Account Manager Review field before providing a Reason for Rejection”.

    2. Do not auto-save Reason for Rejection until User chooses Account Manager Review = Rejected.

  2. Note: If User changes Account Manager Review value from Rejected to Not Yet Reviewed or Committed - the system needs to automatically make Reason for Rejection and Rejection Description = null

B/ Committed CPCs

User is able to create a quote only if at the CPC level:


one


Screen below is displayed to the user to explain the reason why a quote cannot be created:



After clicking the button 'Create Quote' and only if there is a Pricing setting matching, a screen dedicated to create a quote appears:



Logic has been implemented for the fields below in order to make the quote creation the easiest possible for the user:



5/ Permissions & Sharing

A. Pricing Campaign object

Profile Object Permissions - only the Profiles meeting the following criteria should be able to Read Pricing Campaigns:

  1. Profile.User License = Salesforce

  2. Profile.Custom = TRUE



B. Pricing campaign CPC Permissions & Sharing

Only Owner can see Pricing Campaign CPC records (Private object).

Profile Object Permissions - only the Profiles meeting the following criteria should be able to Read and Edit Pricing Campaigns:

  1. Profile.User License = Salesforce

  2. Profile.Custom = TRUE