Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Set US/non-USD accounts to USD
Account[] accounts = [select Id from Account where Primary_Funding_Nation__r.Name = 'United States' and CurrencyIsoCode != 'USD' Limit 2000];
for (Account account : accounts)
account.CurrencyIsoCode = 'USD';
update accounts;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.