Multi-Currency Set Up
This page covers:
- 1 Salesforce’s Multi-Currency Feature
- 2 Step 1: Enable and Set Up Multiple Currencies in your Salesforce System
- 3 Step 2: Create a Custom Currency Code Field on Objects with Financial Information & Field Sets
- 4 Step 3: Create a Process that Updates Currency Code & Currency Value(s)
- 5 Step 4: Update the Validation Rule on Disbursement (optional)
Salesforce’s Multi-Currency Feature
This section will give you guidance to set up Salesforce's Multi-Currency feature in your org, specifically after installing and configuring Amp Impact in your Salesforce system.
This solution might not hit all the requirements for your organization so discuss alternative solutions with your Solutions Architect before enabling Salesforce’s Multi-Currency feature in your system.
Step 1: Enable and Set Up Multiple Currencies in your Salesforce System
Enable multi-currency in your system through the Company Information section in the Setup interface.
Also, review the steps here on how to activate and deactivate different currencies.
Step 2: Create a Custom Currency Code Field on Objects with Financial Information & Field Sets
For any object(s) where users will enter or modify financial information via a field set (e.g. the Add New Disbursement pop-up, the Budget Excel Upload, etc.), create a custom currency code field on that object.
Navigate to the “Object Manager” from the Setup interface.
Open the Amp Impact object (e.g. Disbursement, Financial) where you’ll track financial information using input currency fields using a field set.
Here is an example of a picklist field that you can create:
Label: Currency Code
API Name: CustomISOCode__c
Field Type: Picklist
Picklist Values: Currency picklist value set
Add this new picklist field to the relevant field sets where currency fields will be filled out, for example:
ampi__Financial__c: BUDGET_EXCEL_COLUMNS
ampi__Disbursement__c: ADD_EDIT_POPUP
It is recommended to only have active picklist values in this picklist value set that match the active currencies from Step 1.
Step 3: Create a Process that Updates Currency Code & Currency Value(s)
For each object on which the custom currency code field was added, use Process Builder to create a process that updates CurrencyISOCode and retains the entered currency value.
The process below is an example that syncs CurrencyISOCode with the custom currency code field and ensures the currency value remains accurate (i.e. not updated when CurrencyISOCode is updated). This only occurs when a new Disbursement is created with a currency besides the default currency. This process can be modified based on use case, and similar processes can be built on other Amp objects that track financial data through field sets.
Create the Process
Open the Setup Interface and find “Process Builder”.
Click “New” to create a new Process.
Set the Process Name and API Name.
Select “A record changes” for when the process starts.
Click “Save”.
Select the Object and Event to Start the Process
In the Process Builder, click “Add Object”.
In the menu that opens, select the Disbursement object.
Select “only when a record is created” to start the process.
Click “Save”.
Set the Criteria to Run the Process
In the Process Builder, click Add Criteria.
Name the Criteria.
Select “Conditions are met” as the criteria for executing the actions.
Set a condition that the custom currency code field is not blank.
Select the custom currency code field created in Step 2, and click “Choose”.
Select “Does not equal” as the operator.
Select “Global Constant” as the type.
Select “$GlobalConstant.Null” as the value.
Set a condition that the custom currency code field is different from the system’s default currency.
Select the custom currency code field created in Step 2, and click Choose.
Select “Does not equal” as the operator.
Select “Field Reference” as the type.
Select the standard Currency ISO Code field, and click Choose.
Select “All of the conditions are met (AND)” for the conditions.
Click “Save”.
Add a Record Update Action to the Process
Click “Add Action” under Immediate Actions.
Select “Update Records” under Action Type and click Save.
Name the Action.
Select “Select the ampi__Disbursement__c record that started your process”, and click Choose.
Select “No criteria—just update the records!”
Set the fields and values to update:
Create field update to sync currency codes.
Select “Currency ISO Code” as the field.
Select “Field Reference” as the type.
Select the custom currency code field created in Step 2 as the value, and click Choose.
Click “Add Row”.
Create a field update to ensure that the entered disbursement value does not get converted when Currency ISO Code is updated.
Select “Amount” as the field.
Select “Field Reference” as the type.
Select the same Amount field as the value, and click Choose.
Click “Save”.
Activate the Process
Click “Activate in the top right for the process to be used.
Confirm Activation in the popup.
Step 4: Update the Validation Rule on Disbursement (optional)
This step is only necessary if (a) multi-currency is being used on the Disbursement object and (b) the validation rule Disbursement_Amt_Less_Than_Funding_Amt is active.
Open Setup.
Open Object Manager.
Open the Disbursement object.
Click “Validation Rules” in the menu to view existing validation rules on Disbursement.
Open the validation rule: Disbursement_Amt_Less_Than_Funding_Amt.
If the validation rule is active:
Click “Edit”.
Uncheck the Active checkbox.
Click “Save”.
Click “Clone”.
Change the Name of the cloned validation rule.
In the Error Condition Formula, paste this formula over the existing formula:
9. Customize the error message as needed.
10. Click “Save”.