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
upNcommNupNcommN 

partner API and creating objects

Hi,

If I make a  create or update partner API call and pass an object that has XMLElements that do not correspond to defined fields within the SalesForce system object, will an exception be thrown or will said fields simply be ignored?

thanks

aj

GlennWGlennW

Before you insert (to avoid errors) just do a sfdc.describeSObject(TableName).  This will give you the available fields and tell you if they are creatable or updateable.

I find it easier to load the metadata for the object into a dataset (if your in .NET) and that way you can quickly access the creatable or updateable fields.

Cheers;
GlennW