Created
July 14, 2017 14:22
-
-
Save mattparlane/cf319c8df82407806a75c235469ab096 to your computer and use it in GitHub Desktop.
Set US/non-USD accounts to USD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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