Foundations Apex API Developer Reference

fferpcore.ErpCurrencyService

global with sharing class ErpCurrencyService

Returns or activates Foundations currencies.

Methods

getActiveCurrencies

global static Set<String> getActiveCurrencies()

Get the Foundations currencies that are active.

Return Value

A set of currency ISO codes.

activateCurrencies

global static fferpcore.ErpCurrencyService.ActivateCurrenciesResult activateCurrencies(Set<String> isoCodes)

Activate a set of Foundations currencies. During the activation process, Foundations automatically activates all Salesforce currencies that relate to active Foundations currencies to ensure the details are synchronized.

Input Parameters

Name Type Description
isoCodes Set<String> The ISO codes of the currencies you want to activate.

Return Value

An instance of ActivateCurrenciesResult, which provides information about the result of the request.

fferpcore.ErpCurrencyService.ActivateCurrenciesResult

global inherited sharing class ActivateCurrenciesResult

Information relating to a Foundations currency activation request.

Properties

Name Type Description
HasRemainingWork Boolean When true, this indicates that the request could not be completed in a single execution context due to platform limits. To complete the request, call the method with the same parameters until the value is false. Additional calls must be done in a new execution context, using a batch job for example.

Methods

ActivateCurrenciesResult

global ActivateCurrenciesResult()

© Copyright 2009–2024 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.