function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How to retrive a field's data type definition?

I've went through the API documentation "Describe Calls" section but I cannot find a description on how to retreive a specific Object.Fields's data type definition..?
As an example: I want to retrive the Opportunity.Description field's internal definition which might be nvarchar(500).
I am making an extensive data dump into an SQL and I want to make sure I keep the same definitions on the text fields to not risking any truncation..
Any way to retrieve this info?
Its all there, the describe results include all the fields, and the field describe includes its type and lengths, loop through the array of fielddescribes looking for the one with the name description.

Hi Simon,

OK, I'll go back and double check