Legacy Data Model
The CData Cmdlets PowerShell Module for SendGrid models the Legacy API as relational tables, views, and stored procedures. Most tables, views, and stored procedures are defined in schema files, which are simple, text-based configuration files.
However, the Recipients table is dynamic: The cmdlet connects to SendGrid and gets the metadata for this table by calling the appropriate Web services. Any changes you make to the custom filters you define for Recipients are available when you connect; you can use these custom filters as columns in the WHERE clause. These custom filters are surfaced in the CustomFields table.
API limitations and requirements are documented in this section; you can use the SupportEnhancedSQL feature, set by default, to circumvent most of these limitations.
To use the Legacy Data Model, simply set Schema to Legacy.
Tables
Tables describes the available tables that are easy to query and update.
Views
Views are tables that cannot be modified. Typically, read-only data are shown as views.
Stored Procedures
Stored Procedures are function-like interfaces to Sendgrid. They can be used to search, update, and modify information.