Stored Procedures
Stored procedures are available to complement the data available from the 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.
Microsoft Dynamics CRM Adapter Stored Procedures
| Name | Description |
| Assign | Assigns an item to the specified user. |
| AssociateRequest | Executes an associate request. |
| CreateSchema | Creates a custom schema file based on the CRM View name, FetchXML expression, or SQL query. |
| DisassociateRequest | Executes a disassociate request. |
| ExecuteWorkflow | Executes an workflow request. |
| GenerateDeviceCredential | Generates the device name and password, which are used for Dynamics CRM Online authentication. |
| GetOAuthAccessToken | If using a Windows application, set Authmode to App. If using a Web app, set Authmode to Web and specify the Verifier obtained by GetOAuthAuthorizationUrl. |
| GetOAuthAuthorizationUrl | Gets the authorization URL that must be opened separately by the user to grant access to your application. Only needed when developing Web apps. |
| GetSTSUrl | Gets the address for the security token service. |
| RefreshOAuthAccessToken | Refreshes the OAuth access token used for authentication with AzureDataCatalog. |
| SetState | Sets the state and the status of the specified item. |