PHP Toolkit 13.0 Samples
API Methods
This chart provides sample Force.com Web Services API calls with the PHP Toolkit.
| Method | Description | Enterprise | Partner |
|---|---|---|---|
| assignmentRuleHeader | sample | ||
| callOptions | sample | ||
| convertLead | Converts a Lead into an Account, Contact, or (optionally) an Opportunity. | sample | sample |
| create, delete, and undelete | Adds, deletes, and undeletes one or more new individual objects to your organization's data. | sample | sample |
| describeGlobal | Retrieves a list of available objects for your organization's data. | sample | sample |
| describeLayout | Retrieves metadata about page layouts for the specified object type. | sample | sample |
| describeSObject | Retrieves metadata (field list and object properties) for the specified object type. | sample | sample |
| emailHeader | sample | ||
| emptyRecycleBin | Delete records from the recycle bin immediately. | sample | sample |
| fieldsToNull | Nullifies fields | sample | sample |
| getDeleted | Retrieves the IDs of individual objects of the specified object that have been deleted since the specified time. | sample | sample |
| getServerTimestamp | Retrieves the current system timestamp (GMT) from the Force.com Web service. | sample | sample |
| getUpdated | Retrieves the IDs of individual objects of the specified object that have been updated since the specified time. | sample | sample |
| getUserInfo | Retrieves personal information for the user associated with the current session. | sample | sample |
| invalidateSessions | Ends one or more sessions specified by a sessionId. | sample | sample |
| login | Logs in to the login server and starts a client session. | sample | sample |
| loginScopeHeader | Specifies your organization ID so that you can authenticate Self-Service users for your organization using the existing login. | sample | sample |
| logout | Ends the session of the logged-in user. | sample | sample |
| merge | Merge up to three records into one. | sample | sample |
| processSubmitRequest | Process Submit Request (Workflow) | sample | sample |
| processWorkItemRequest | Process Work Item Request (Workflow) | sample | sample |
| query | Executes a query against the specified object and returns data that matches the specified criteria. | sample | sample |
| queryMore | Retrieves the next batch of objects from a query. | sample | sample |
| queryOptions | Specifies the batch size for queries. | sample | sample |
| resetPassword | Changes a user's password to a server-generated value. | sample | sample |
| retrieve | Retrieves one or more objects based on the specified object IDs. | sample | sample |
| search | Executes a text search in your organization's data. | sample | sample |
| sendEmail | Compose and send email. | sample | sample |
| setPassword | Sets the specified user's password to the specified value. | sample | sample |
| update | Updates one or more existing objects in your organization's data. | sample | |
| upsert | Upserts one or more existing objects in your organization's data. | sample | sample |
Metadata API Calls
| Method | Description | |
|---|---|---|
| checkStatus | Check the status of a Metadata create or delete operation via the Metadata API | sample |
| create | Create a custom object via the Metadata API | sample |
| delete | Delete a custom object via the Metadata API | sample |