You need to sign in to do that
Don't have an account?
Amar
Can i track truncation warnings.
I am a Java developer and using sforce API version 4.0.
While inserting data in salesforce Objects, salesforce automatically truncate the data if its more than the field length. Is there anyway to track the name and number of fields for which values has been truncated.
Thanks,
Amar
While inserting data in salesforce Objects, salesforce automatically truncate the data if its more than the field length. Is there anyway to track the name and number of fields for which values has been truncated.
Thanks,
Amar
DescribeSObjectResult.getFields()[i].getLength()
to return the length of the field and check it yourself.
That could work, but someone else could have a better idea.
I don�t want to check the length of every field before inserting them. Salesforce automatically manages extra length values and truncate them. So I don't need to worry about that, I just wanted to check if after truncation sforce API provide any call/object that can track about the truncation warnings.
Can I have more views?
Thanks,
Message Edited by Amar on 01-05-2005 12:16 PM
Hi Amar,
The answer to your original question is no. The update or create returns either a success = true or success = false. In the case of success = false an error collection (generally a one element collection) is also returned. In the case of true, no status or warnings are returned. We return no "warnings" based on system caused changes to the data (such as truncation).
If this is important to you make a feature request case with customer support.