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
unikevinunikevin 

Can I get an Object's layout through SForce ?

I think it's too complex for me to generate a form manually on my website when these fields are updated in salesforce.
Can I get the object's layout and fields dynamicly in SForce?
SuperfellSuperfell
Yes, use the describeSObject & describeLayout calls.
unikevinunikevin
Thanks a lot! I got the layouts. But is there any easy way that I can get the given record's fields' value to fill in the layout, so I can view a detail page of a appointed record? Just like sforcePartnerPortal's detail page....
SuperfellSuperfell
call query or retrieve to get the actual data.