Create and Configure an App in Salesforce Lightning
This section describes how to create a connected application in Salesforce Lightning, connect it to Pricefx, and set up authentication and application layout.
Create a Connected Application
Take the following steps:
Log in to Salesforce as administrator.
Click on the Gear icon and then Setup button
Search for the "App Manager" in Quick Find and click the New Connected App button.
Fill in the following fields in the Basic Information section:
Connected App Name – The unique name of your application, e.g., Quote Configurator.
API Name – Application name used by the API (cannot contain spaces or special characters), e.g., Quote_Configurator.
Contact Email – support@pricefx.eu
Check the Enable OAuth Settings box and:
Enter the Callback URL:Â https://<cluster name>.pricefx.eu/Â (it can be different, please ask the Pricefx support).
Add Full access (full)Â as Selected OAuth Scope.
In the Web App Settings section:Â
Check the Enable SAML box.
Enter the Entity Id: https://<cluster name>.pricefx.eu/pricefx/<partition>/saml/consume/<SAML Configuration Name>?RelayState=quoteConfigurator (customization for your partition).
Enter the ACS URL:Â https://<cluster name>.pricefx.eu/pricefx/<partition>/saml/consume/<SAML Configuration Name>?RelayState=quoteConfigurator (customization for your partition).
Leave the default settings for the other options.
It is possible to check the SAML configuration in a specific cluster to get some more information about how to prefill the Entity Id and ACS URL.
In the Canvas App Settings section, enable the Canvas option and:
Enter the Canvas App URL:Â https://<cluster name>.pricefx.eu/Â (it can be different, please ask Pricefx support).
Leave Signed Request (POST) as Access Method.
Select Identity Provider Initiated as SAML Initiation Method.
Select Visualforce Page and Mobile Nav as Locations.
Save the settings.
Go to App Manager and find your new application in the list and click Manage.
Click Edit Policies and set All users may self-authorize to Admin approved users are pre-authorized.
Click Save and in the list of applications click your application name.
Click Manage and in the Profiles section, click Manage Profiles and add all profiles which will use this application.
Create a Visualforce Page
Take the following steps:
Open the Developer console (Setup > Developer Console) and go to File > New > Visualforce Page.
Enter the name of the page, e.g., Quote_Configurator.
In the editor, enter the following markup for the page (with the appropriate applicationName value):
<apex:page > <apex:canvasApp applicationName="Quote_Configurator" height="700px" width="100%" border="0" scrolling="yes"/> </apex:page>
Click File > Save.
Search in Quick Find > Tabs.
In the Visualforce Tabs section, click New.
Select the Visualforce page that you have created previously.
Enter the label (e.g., Quote Configurator) and the name (e.g., Quote_Configurator) of the new tab.
Click Next and select the profiles for which the tab will be available.
Click Next and select the custom apps for which the tab will be available.
Click Save.
Search in Quick Find > Visualforce Pages.
Select your created page.
Click Security.
Add all the required profiles.
One Canvas App for All Partitions
Instead of having one canvas app for each partition, you can have a configuration in which there is just one app that redirects the user to the correct partition.
In this configuration, the app's URL does not point to a concrete partition but to 'system'. For example:
https://pricefx.eu/pricefx/system/saml/consume?RelayState=quoteConfigurator&applicationEnvironment=salesforce
When this request is sent to Pricefx, it is consumed by 'system' SAML Consume service. This backend service resolves the target partition based on the user ID or email address. The service utilizes a user-partition map and redirects the authenticated user to the partition where the user has an account.
In cases when the same email address or user ID exists in multiple partitions (e.g., IT support users), the user will be redirected to a so called "preferred partition". The preferred partition is set on the Pricefx side as a feature flag.Â
Note: This solution is suitable only for customer dedicated clusters.
Found an issue in documentation? Write to us.
Â
Pricefx version 13.1