3

Is it possible to enable Advanced Currency Management (see image) using CLI? enter image description here I need to enable it in the scratch org. The use case is that our test classes require that Advanced Currency Management is enabled. I have sought answers across Google and nothing comes up pertaining to this.

3 Answers 3

4

Some settings are still not supported as of today .You can find the list of unsupported settings here

Looks like Advanced Currency (Currency Exchange Rates) is not supported and today you are out of luck .

What are your options ?

  1. Salesforce has a pilot program called Scratch org snapshots .That allows to create a scratch org from pre configured scratch org .Seems like this is exactly what you need .

  2. If you have heard of googles puppeteer we could use this to run a web browser headless .Hence you can script it today to find the right setting and enable it .

Wade has a sample repo on how to approach this .

8
  • Thank you for your thoughts! By 'Scratch org snapshots' do you mean shape org? releasenotes.docs.salesforce.com/en-us/winter18/release-notes/…
    – Seyitbek
    Mar 1, 2019 at 22:06
  • 1
    Org shape and org snapshots are two different things .My answer has url for you to reach out . Mar 1, 2019 at 22:09
  • Thank you! How do you know that Currency Exchange Rates is same as Advanced Currency?
    – Seyitbek
    Mar 1, 2019 at 22:26
  • There is nothing else I could relate to except that ! Mar 1, 2019 at 23:01
  • 1
    Yes. Not in pilot! He said "We've working through some kinks in the product in order to get it working. As soon as we've fixed those bugs, I will announce its availability in the Trailblazer community."
    – Seyitbek
    Mar 7, 2019 at 18:21
2

This can be turned on in the Scratch Org Definition File (the one ending scratch-def.json) for a project. Simply add Multicurrency to features, and then in currencySettings, enable multi currency and currency effective dates. When you create your scratch org, Advanced currency management will be turned on.

{
    "orgName": "My Scratch",
    "edition": "Developer",
    "features": ["MultiCurrency"],
    "settings": {
        "currencySettings": {
            "enableMultiCurrency":true,
            "enableCurrencyEffectiveDates":true
        }
    }
}
0

Instead of making this manual change, we can retrieve following Currency Setting in package xml and then can set enableCurrencyEffectiveDates to true.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .