You need to sign in to do that
Don't have an account?
Raffi
SOAP API call to update Currency Conversion Rate problem
I'm trying to update currency rates from our ERP through a SOAP API call to Salesforce. I'm getting update success returned and the timestamp on LastModifiedDate shows that the sObject are in fact being updated but the values do not actually change. I'm using the following code:
List<sObject> ctList = new List<sObject>(); while (queryResult.size > i) { CurrencyType ct = (CurrencyType)queryResult.records[i]; CurrencyType c = new CurrencyType(); // contains fields to be updated if (ct.IsoCode == "USD") { c.Id = ct.Id; c.ConversionRate = curr_USD; } if (ct.IsoCode == "EUR") { c.Id = ct.Id; c.ConversionRate = curr_EUR; } ctList.Add(c); i++; } updateSObject(ctList); // calls update metod to SFDC
Any ideas why?
Thanks,
This has been resolved here: http://boards.developerforce.com/t5/NET-Development/Why-is-my-date-number-boolean-being-ignored-for-create-and/m-p/655891#M10013
All Answers
Are you using "Advance Currency Management"? I think what you need to update is DateCurrencyRate in that case.
No, we are not. I can update values in that table with Mass Update Anything for example and that works just fine so I am working with the correct sObject.
Raffi
This has been resolved here: http://boards.developerforce.com/t5/NET-Development/Why-is-my-date-number-boolean-being-ignored-for-create-and/m-p/655891#M10013