Stored Procedures
Stored procedures are available to complement the data available from the REST Data Model. It may be necessary to update data available from a view using a stored procedure because the data does not provide for direct, table-like, two-way updates. In these situations, the retrieval of the data is done using the appropriate view or table, while the update is done by calling a stored procedure. Stored procedures take a list of parameters and return back a dataset that contains the collection of tuples that constitute the response.
Marketo Adapter Stored Procedures
| Name | Description |
| AddLeadsToList | Adds leads to a list in Marketo. |
| CancelExportJob | Cancels an export job. |
| CreateExportJob | Create export job for search criteria defined via filter parameter. Returns the 'JobId' which is passed as a parameter in subsequent calls to Bulk Export Activities. Use EnqueueExportJob to queue the export job for processing. Use GetExportJobStatus to retrieve status of export job. |
| EnqueueExportJob | Places an export job in queue and starts the job when computing resources become available. |
| GetExportJobFile | Returns the file content of an export job. The export job must be in 'Completed' state. Use GetExportJobStatus to get the status of an export job. |
| GetExportJobStatus | Returns the status of an export job. Job status is available for 30 days after Completed or Failed status was reached. |
| GetImportLeadsFailures | Downloads and saves the import leads failures file from Marketo. |
| GetImportLeadsStatus | Gets the status of an import leads from file operation for Marketo. |
| GetImportLeadsWarnings | Downloads and saves the import leads warnings file from Marketo. |
| GetOAuthAccessToken | Gets an authentication token from Marketo. |
| ImportLeadsFromFile | Imports leads from a file into Marketo. |
| ListMembersOfList | Determines whether leads are contained within a list in Marketo. |
| RefreshOAuthAccessToken | Gets an authentication token from Marketo. |
| RemoveLeadsFromList | Removes leads from a list in Marketo. |