Newer Version Available
Examples of Synchronous Calls
Data Call Examples
login Example:
query Example:
queryMore Example:
queryAll Example:
Relationship Query Example—Child to Parent:
Relationship Query Example—Parent to Child:
create Example:
Batch create Example:
delete Example:
merge Example:
process Example:
update Example:
undelete Example:
upsert Example:
retrieve Example:
search Example:
getDeleted Example:
getUpdated Example:
convertLead Example:
Describe Examples
describeSObject Account Example:
describeSObjects Example:
describeGlobal Example:
describeLayout Example:
describeTabs Example:
Utility Examples
getServerTimestamp Example:
getUserInfo Example:
resetPassword and setPassword Example:
sendEmail Example:
The following sample shows best practice techniques by putting all processing in a function that does not execute until the HTML page is loaded.