You need to sign in to do that
Don't have an account?

How to Write a scheduled class to update the Data Conversion Rate at the start of every month.
Hi All,
please help me developing code or share code who to write apex class for this scenario and how to schedule it.
req -
thanks
nagendra
please help me developing code or share code who to write apex class for this scenario and how to schedule it.
req -
1) Fetch the exchange rate (CAN/USD) from some publicly available api using apex
2) Given this exchange rate create a Currency Conversion Record with the correct start date, end date and exchange rate.
3) Run a scheduled job to run (1) and (2) once per month.
2) Given this exchange rate create a Currency Conversion Record with the correct start date, end date and exchange rate.
3) Run a scheduled job to run (1) and (2) once per month.
thanks
nagendra
https://developer.salesforce.com/forums/?id=906F00000008xMkIAI
https://salesforce.stackexchange.com/questions/17380/update-conversionrate-in-test-class
https://th3silverlining.com/2009/11/23/dml-currently-not-allowed/
https://salesforce.stackexchange.com/questions/175205/manage-datedconversionrate-using-apex?noredirect=1&lq=1
can you help me setp by setp.
can you contact me to my email if that is okay nagendra.snowfall@gmail.com