Marketo Data Model

Connection String Options

  1. Auto Cache
  2. Cache Connection
  3. Cache Driver
  4. Cache Location
  5. Cache Metadata
  6. Cache Query Result
  7. Check Prompt Mode
  8. Connect On Open
  9. Encryption Key
  10. Firewall Password
  11. Firewall Port
  12. Firewall Server
  13. Firewall Type
  14. Firewall User
  15. Initiate OAuth
  16. Location
  17. Logfile
  18. Max Log File Size
  19. OAuth Access Token
  20. OAuth Client Id
  21. OAuth Client Secret
  22. OAuth Settings Location
  23. Offline
  24. Other
  25. Page Size
  26. Proxy Auth Scheme
  27. Proxy Auto Detect
  28. Proxy Password
  29. Proxy Port
  30. Proxy Server
  31. Proxy SSL Type
  32. Proxy User
  33. Pseudo Columns
  34. Query Cache
  35. Readonly
  36. REST Endpoint
  37. RTK
  38. Schema
  39. SOAP Endpoint
  40. SSL Server Cert
  41. Support Enhanced SQL
  42. Tables
  43. Timeout
  44. User Id
  45. Verbosity
  46. Views

Auto Cache

Data Type

bool

Default Value

false

Remarks

When AutoCache is set, the driver maintains a cache in the background and executes queries against the local data by default. The driver incrementally updates the cache, retrieving only changesets instead of first dropping the cached tables and retrieving the entire dataset again. The driver can update the cache on an interval (the default) or when you execute a SELECT query to the remote Marketo data.

This functionality gives you the option to query a persistent, up-to-date cache or execute real-time queries with a failover solution for connectivity loss.

Caching on an Interval

By default, the driver replicates on an interval. You can use the CacheTolerance property to control how often the driver retrieves changesets from the Marketo API.

the CacheTolerance functionality makes AutoCache a single setting to implement robust caching. CacheTolerance is also useful for caching if your application generates many queries in succession -- CacheTolerance prevents the driver from running a replication on every query, as is the case when CacheQueryResult is set.

Caching on Every SELECT

CacheQueryResult is a way to query Marketo in real time while maintaining a cache for offline use. Set CacheQueryResult to update the cache whenever you execute a SELECT statement. When you execute a SELECT statement with AutoCache and CacheQueryResult set, the driver executes the query to the remote data and persists the results; rows that already exist are overwritten. That is, SELECT statements are used to create and refresh the cache, not to query it. Data manipulation commands are executed to the remote data as well.

To query the cached data, set the Offline property. If you need to query the cached data in an online connection, you can append #CACHE to the table name. For example:

SELECT * FROM [Leads#CACHE]

Setting the Caching Database

When AutoCache is set, the driver caches to a simple, file-based cache. You can configure its location or cache to a different database with the following properties:

See Also

  • Caching: Best Practices: This section provides more examples of using AutoCache with Offline, as well as information on determining a caching strategy.
  • QueryCache: In addition to backup, you can also use a local copy of data as a shortcut that minimizes network transit.

    When this property is set, the driver builds a temporary, in-memory dataset that caches the results of the queries you execute. Result sets for subsequent queries are extracted from this dataset, if possible.

    This property is useful in BI, analytics, and other tools that generate queries for you. In these tools, explicit cache queries with the #CACHE syntax may not be an option.

  • CacheMetadata: This property reduces the amount of metadata that crosses the network by persisting table schemas retrieved from the Marketo metadata. Metadata then needs to be retrieved only once instead of every connection.
  • REPLICATE Statements: When you execute a SELECT statement with AutoCache set, the driver internally calls the REPLICATE statement. The REPLICATE statement enables incremental updates instead of first dropping the cached table.
  • CACHE Statements: You can use the CACHE statement to persist any SELECT query, as well as manage the cache; for example, refreshing schemas.



Cache Connection

Data Type

string

Default Value

""

Remarks

The cache database is determined based on the CacheDriver and CacheConnection properties. You will need at least the following information to connect to one of the caching databases below. To load the caching database's driver, refer to CacheDriver.

The connection string specified in the CacheConnection property is passed directly to the underlying CacheDriver. The documentation for the underlying JDBC driver will have all of the available properties.

Derby and Java DB

In most caching scenarios, you need to set only the following:

For other Java DB configurations, you will need to use CacheDriver and CacheConnection. Below is the Derby JDBC URL syntax:

jdbc:derby:[subsubprotocol:][databaseName][;attribute=value[;attribute=value] ... ]
For example, to cache to an in-memory database, use the following:
jdbc:derby:memory

SQLite

To cache to SQLite, you can use the SQLite JDBC driver. Below is the syntax of the JDBC URL:

jdbc:sqlite:dataSource
  • Data Source: The path to an SQLite database file. Or, use a value of :memory to cache in memory.

MySQL

The installation includes the CData JDBC Driver for MySQL. Below is an example JDBC URL:

jdbc:mysql:User=root;Password=root;Server=localhost;Port=3306;Database=cache
Below are typical connection properties:

  • Server: The IP address or domain name of the server you want to connect to.
  • Port: The port that the server is running on.
  • User: The username provided for authentication to the database.
  • Password: The password provided for authentication to the database.
  • Database: The name of the database.
SQL Server

The JDBC URL for the Microsoft JDBC Driver for SQL Server has the following syntax:

jdbc:sqlserver://[serverName[\instance][:port]][;database=databaseName][;property=value[;property=value] ... ]
For example:
jdbc:sqlserver://localhost\sqlexpress:1433;integratedSecurity=true
Below are typical SQL Server connection properties:
  • Port: The port SQL Server is running on.
  • Server: The name or network address of the computer running SQL Server. To connect to a named instance instead of the default instance, this property can be used to specify the host name and the instance, separated by a backslash.
  • Database: The name of the SQL Server database.
  • Integrated Security: Set this option to true to use Windows authentication. Set this option to false to use forms-based authentication.

    To use integrated security, you will also need to add sqljdbc_auth.dll to a folder on the Windows system path. This file is located in the auth subfolder of the Microsoft JDBC Driver for SQL Server installation. The bitness of the assembly must match the bitness of your JVM.

  • User: The username provided for authentication with SQL Server, if you are using forms authentication.
  • Password: The password provided for authentication with SQL Server, if you are using forms authentication.
Oracle

Below is the conventional JDBC URL syntax for the Oracle JDBC Thin driver:

jdbc:oracle:thin:[userId/password]@[//]host[[:port][:sid]]
For example:
jdbc:oracle:thin:scott/tiger@myhost:1521:orcl
Below are typical connection properties:
  • Data Source: The connect descriptor that identifies the Oracle database. This can be a TNS connect descriptor, an Oracle Net Services name that resolves to a connect descriptor, or, after version 11g, an Easy Connect naming (the host name of the Oracle server with an optional port and service name).

  • Password: The password provided for authentication with the Oracle database.
  • User Id: The user Id provided for authentication with the Oracle database.
PostgreSQL

Below is the JDBC URL syntax for the official PostgreSQL JDBC driver:

jdbc:postgresql:[//[host[:port]]/]database[[?option=value][[&option=value][&option=value] ... ]]
For example, the following connection string connects to a database on the default host (localhost) and port (5432):
jdbc:postgresql:postgres
Below are typical connection properties:
  • Host: The address of the server hosting the PostgreSQL database.
  • Port: The port used to connect to the server hosting the PostgreSQL database.
  • Database: The name of the database.
  • Username: The user Id provided for authentication with the PostgreSQL database. You can specify this in the JDBC URL with the "user" parameter.
  • Password: The password provided for authentication with the PostgreSQL database.



Cache Driver

Data Type

string

Default Value

""

Remarks

You can cache to any database that you have a JDBC driver for, including CData JDBC drivers.

The cache database is determined based on the CacheDriver and CacheConnection properties. The CacheDriver is the name of the JDBC driver class that you would like to use to cache data.

Note that you must also add the CacheDriver JAR to the classpath.

The following examples show how to cache to several major databases. Refer to CacheConnection for more information on the JDBC URL syntax and typical connection properties.

Derby and Java DB

The driver simplifies Java DB configuration. Java DB is the Oracle distribution of Derby. The JAR is shipped in the JDK. You can find the JAR, derby.jar, in the db subfolder of the JDK installation. In most caching scenarios, you need to specify only the following, after adding derby.jar to the classpath.

jdbc:marketo:CacheLocation='c:/Temp/cachedir';Schema=REST;RESTEndpoint=https://MyMarketoUrl/rest;OAuthClientId=MyOAuthClientId;OAuthClientSecret=MyOAuthClientSecret;
To customize the Java DB JDBC URL, use CacheProvider and CacheConnection. For example, to cache to an in-memory database, use a JDBC URL like the following:
jdbc:marketo:CacheDriver=org.apache.derby.jdbc.EmbeddedDriver;CacheConnection='jdbc:derby:memory';Schema=REST;RESTEndpoint=https://MyMarketoUrl/rest;OAuthClientId=MyOAuthClientId;OAuthClientSecret=MyOAuthClientSecret;
SQLite

Below is a JDBC URL for the SQLite JDBC driver:

jdbc:marketo:CacheDriver=org.sqlite.JDBC;CacheConnection='jdbc:sqlite:C:/Temp/sqlite.db';Schema=REST;RESTEndpoint=https://MyMarketoUrl/rest;OAuthClientId=MyOAuthClientId;OAuthClientSecret=MyOAuthClientSecret;
MySQL

Below is a JDBC URL for the included CData JDBC Driver for MySQL:

jdbc:marketo:Cache Driver=cdata.jdbc.mysql.MySQLDriver;Cache Connection='jdbc:mysql:Server=localhost;Port=3306;Database=cache;User=root;Password=123456';Schema=REST;RESTEndpoint=https://MyMarketoUrl/rest;OAuthClientId=MyOAuthClientId;OAuthClientSecret=MyOAuthClientSecret;
The CData JDBC Driver for MySQL is located in the lib subfolder of the CData JDBC Driver for Marketo 2016 installation directory.
SQL Server

The following JDBC URL uses the Microsoft JDBC Driver for SQL Server:

jdbc:marketo:Cache Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver;Cache Connection='jdbc:sqlserver://localhost\sqlexpress:7437;user=sa;password=123456;databaseName=Cache';Schema=REST;RESTEndpoint=https://MyMarketoUrl/rest;OAuthClientId=MyOAuthClientId;OAuthClientSecret=MyOAuthClientSecret;
Oracle

Below is a JDBC URL for the Oracle Thin Client:

jdbc:marketo:Cache Driver=oracle.jdbc.driver.OracleDriver;CacheConnection='jdbc:oracle:thin:scott/tiger@localhost:1521:orcldb';Schema=REST;RESTEndpoint=https://MyMarketoUrl/rest;OAuthClientId=MyOAuthClientId;OAuthClientSecret=MyOAuthClientSecret;
PostgreSQL

The following JDBC URL uses the official PostgreSQL JDBC driver:

jdbc:marketo:CacheDriver=org.postgresql.Driver;CacheConnection='jdbc:postgresql://localhost:5433/postgres?user=postgres&password=admin';Schema=REST;RESTEndpoint=https://MyMarketoUrl/rest;OAuthClientId=MyOAuthClientId;OAuthClientSecret=MyOAuthClientSecret;



Cache Location

Data Type

string

Default Value

""

Remarks

The CacheLocation is a simple, file-based cache. The driver uses Java DB, Oracle's distribution of the Derby database. To cache to Java DB, you will need to add the Java DB JAR to the classpath. The JAR, derby.jar, is shipped in the JDK and located in the db subfolder of the JDK installation.

CacheLocation defaults to the directory specified by the Location setting.

See Also

  • AutoCache: Set this to implicitly create and maintain a cache for later offline use.
  • QueryCache: Set this to use a temporary, in-memory cache.
  • CacheMetadata: Set this to persist the Marketo catalog in CacheLocation.



Cache Metadata

Data Type

bool

Default Value

false

Remarks

As you execute queries with this property set, the relevant system tables in the Marketo catalog are cached to the file store specified by CacheLocation.

Setting CacheMetadata and CacheLocation will retrieve metadata only once over multiple connections. For example, metadata will be retrieved only when a connection pool is initialized.

When to Use CacheMetadata

The driver automatically caches metadata in memory when you open a connection, so within the same connection schema discovery is only expensive on the first query. QueryCache only becomes useful when retrieving the system catalog on every connection open becomes expensive. For example, when you are working with large amounts of metadata or when you have many simultaneous, short-lived connections.

When Not to Use CacheMetadata

  • When you are working with volatile metadata: To pick up new, changed, or deleted columns, you need to delete and rebuild the metadata cache. In this case, if the default in-memory cache is insufficient, consider a caching solution that will allow you to use the REPLICATE command or maintain the cache with CACHE Statements statements. See Caching Data for more information on selecting a caching solution.
  • When you are caching to a database: CacheMetadata can only be used with CacheLocation. If you are caching to another database with the CacheDriver and CacheConnection properties, use AutoCache to cache implicitly. Or, use REPLICATE Statements or CACHE Statements to cache explicitly.



Cache Query Result

Data Type

bool

Default Value

false

Remarks

When CacheQueryResult and AutoCache is set, the entire result of every SELECT query is cached in the cache database. Note that the performance can be significantly impacted when using AutoCache when the Marketo API does not support the REPLICATE Statements statement.



Check Prompt Mode

Data Type

bool

Default Value

false

Remarks

For ODBC, check whether the application says if it supports prompting the user. You can turn this off to force it to launch the browser during OAuth. (Qlikview, Visual Studio, Power BI all have NO_PROMPT).

For ODBC, check whether the application says if it supports prompting the user. You can turn this off to force it to launch the browser during OAuth. (Qlikview, Visual Studio, Power BI all have NO_PROMPT).



Connect On Open

Data Type

bool

Default Value

false

Remarks

When set to 'true', a connection will be made to Marketo when the connection is opened. This property enables the 'Test Connection' feature available in various database tools.

This feature acts as a NOOP command as it is used to verify a connection can be made to Marketo and nothing from this initial connection is maintained.

Setting this property to 'false' may provide performance improvements (depending upon the number of times a connection is opened).



Encryption Key

Data Type

string

Default Value

""

Remarks

The EncryptionKey is generated on the Admin page of the Marketo website and is used to authenticate to the Marketo SOAP Web service.



Firewall Password

Data Type

string

Default Value

""

Remarks

This property is passed to the proxy specified by FirewallServer and FirewallPort, following the authentication method specified by FirewallType.



Firewall Port

Data Type

string

Default Value

""

Remarks

This specifies the TCP port for a proxy allowing traversal of a firewall. Use FirewallServer to specify the name or IP address. Specify the protocol with FirewallType.



Firewall Server

Data Type

string

Default Value

""

Remarks

This property specifies the IP address, DNS name, or host name of a proxy allowing traversal of a firewall. The protocol is specified by FirewallType: Use FirewallServer with this property to connect through SOCKS or do tunneling. Use ProxyServer to connect to an HTTP proxy.

Note that the driver uses the system proxy by default. To use a different proxy, set ProxyAutoDetect to false.



Firewall Type

Data Type

string

Default Value

"NONE"

Remarks

This property specifies the protocol that the driver will use to tunnel traffic through the FirewallServer proxy. Note that by default the driver connects to the system proxy; to disable this behavior and connect to one of the following proxy types, set ProxyAutoDetect to false.

Type Default Port Description
TUNNEL 80 When this is set, the driver opens a connection to Marketo and traffic flows back and forth through the proxy.
SOCKS4 1080 When this is set, the driver sends data through the SOCKS 4 proxy specified by FirewallServer and FirewallPort and passes the FirewallUser value to the proxy, which determines if the connection request should be granted.
SOCKS5 1080 When this is set, the driver sends data through the SOCKS 5 proxy specified by FirewallServer and FirewallPort. If your proxy requires authentication, set FirewallUser and FirewallPassword to credentials the proxy recognizes.

To connect to HTTP proxies, use ProxyServer and ProxyPort. To authenticate to HTTP proxies, use ProxyAuthScheme, ProxyUser, and ProxyPassword.



Firewall User

Data Type

string

Default Value

""

Remarks

The FirewallUser and FirewallPassword properties are used to authenticate against the proxy specified in FirewallServer and FirewallPort, following the authentication type specified in FirewallType.



Initiate OAuth

Data Type

string

Default Value

"GETANDREFRESH"

Remarks

The following options are available:

  1. OFF: Indicates that the OAuth flow will be handled entirely by the user. An OAuthAccessToken will be required to authenticate.
  2. GETANDREFRESH: Indicates that the entire OAuth Flow will be handled by the driver. If no token currently exists, it will be obtained by prompting the user via the browser. If a token exists, it will be refreshed when applicable.
  3. REFRESH: Indicates that the driver will only handle refreshing the OAuthAccessToken. The user will never be prompted by the driver to authenticate via the browser. The user must handle obtaining the OAuthAccessToken and OAuthRefreshToken initially.



Location

Data Type

string

Default Value

""

Remarks

The path to a directory which contains the schema files for the driver (.rsd files for tables and views, .rsb files for stored procedures). The Location property is only needed if you would like to customize definitions (e.g., change a column name, ignore a column, etc.) or extend the data model with new tables, views, or stored procedures.

The schema files used in your application must be deployed with other assemblies. You must also ensure that Location points to the folder that contains the schema files. The folder location can be a relative path from the location of the executable.



Logfile

Data Type

string

Default Value

""

Remarks

For more control over what is written to the log file, take a look at Verbosity.



Max Log File Size

Data Type

string

Default Value

""

Remarks

A string specifying the maximum size in bytes for a log file (ex: 10MB). When the limit is hit, a new log is created in the same folder with the date and time appended to the end. There is no limit by default. Values lower than 100kB will use 100kB as the value instead.



OAuth Access Token

Data Type

string

Default Value

""

Remarks

The OAuthAccessToken property is used to connect using OAuth. The OAuthAccessToken is retrieved from the OAuth server as part of the authentication process. It has a server-dependent timeout and can be reused between requests.

The access token is used in place of your username and password. The access token protects your credentials by keeping them on the server.



OAuth Client Id

Data Type

string

Default Value

""

Remarks

OAuth requires you to register your application. As part of the registration, you will receive a client Id, sometimes also called a consumer key, and a client secret. You must specify both the OAuthClientId and OAuthClientSecret to connect to an OAuth server.



OAuth Client Secret

Data Type

string

Default Value

""

Remarks

OAuth requires you to register your application. As part of the registration you will receive a client Id and a client secret, sometimes also called a consumer secret. You must specify both the OAuthClientId and OAuthClientSecret to connect to an OAuth server.



OAuth Settings Location

Data Type

string

Default Value

"%APPDATA%\\CData\\Marketo Data Provider\\OAuthSettings.txt"

Remarks

When InitiateOAuth is set to GETANDREFRESH or REFRESH, the driver saves OAuth values to a settings file to avoid requiring the user to manually enter OAuth connection properties. The default OAuthSettingsLocation is a settings file located in the %AppData%\CData folder.

This property is useful for connecting to multiple Marketo accounts at once: Set OAuthSettingsLocation to a file unique to the connection.



Offline

Data Type

bool

Default Value

false

Remarks

When Offline is set to TRUE, all queries execute against the cache as opposed to the live data source. In this mode, certain queries like INSERT, UPDATE, DELETE, and CACHE are not allowed.



Other

Data Type

string

Default Value

""

Remarks

The Other property is a semicolon-separated list of name-value pairs used in connection parameters specific to a data source.

Caching Configuration

CachePartial=TrueCaches only a subset of columns, which you can specify in your query.
QueryPassthrough=TruePasses the specified query to the cache database instead of using the SQL parser of the driver.

Integration and Formatting

SupportAccessLinkedModeIn Access' linked mode, it is generally a good idea to always use a cache as most data sources do not support multiple Id queries. However if you want to use the driver in Access but not in linked mode, this property must be set to False to avoid using a cache of a SELECT * query for the given table.
ConvertDateTimeToGMTWhether to convert date-time values to GMT, instead of the local time of the machine.
RecordToFile=filenameRecords the underlying socket data transfer to the specified file.
ClientCultureThis property can be used to specify the format of data (e.g., currency values) that is accepted by the client application. This property can be used when the client application does not support the machine's culture settings. For example, Microsoft Access requires 'en-US'.
CultureThis setting can be used to specify culture settings that determine how the driver interprets certain data types that are passed into the driver. For example, setting Culture='de-DE' will output German formats even on an American machine.



Page Size

Data Type

string

Default Value

"1000"

Remarks

The PageSize can control the number of results requested from Marketo on a given query. Setting a higher PageSize will cause more data to come back in a given request, but may take longer to execute. Setting a smaller PageSize is generally recommended to ensure timeout exceptions do not occur.

The default value is 1000; however, Marketo may impose a smaller items-per-page limit (such as 100). Therefore the PageSize will be 100 for all subsequent requests.

Note the Marketo REST API imposes a 300 items-per-page limit and thus 300 is the maximum number of items that will be returned in a Marketo REST API.



Proxy Auth Scheme

Data Type

string

Default Value

"BASIC"

Remarks

This value specifies the authentication type to use to authenticate to the HTTP proxy specified by ProxyServer and ProxyPort.

Note that the driver will use the system proxy settings by default, without further configuration needed; if you want to connect to another proxy, you will need to set ProxyAutoDetect to false, in addition to ProxyServer and ProxyPort. To authenticate, set ProxyAuthScheme and set ProxyUser and ProxyPassword, if needed.

The authentication type can be one of the following:

  • BASIC: The driver performs HTTP BASIC authentication.
  • DIGEST: The driver performs HTTP DIGEST authentication.
  • NEGOTIATE: The driver retrieves an NTLM or Kerberos token based on the applicable protocol for authentication.
  • PROPRIETARY: The driver does not generate an NTLM or Kerberos token. You must supply this token in the Authorization header of the HTTP request.
If you need to use another authentication type, such as SOCKS 5 authentication, see FirewallType.



Proxy Auto Detect

Data Type

bool

Default Value

true

Remarks

By default, the driver uses the system HTTP proxy. Set this to false if you want to connect to another proxy.

To connect to an HTTP proxy, see ProxyServer.

For other proxies, such as SOCKS or tunneling, see FirewallType.



Proxy Password

Data Type

string

Default Value

""

Remarks

This property is used to authenticate to an HTTP proxy server that supports NTLM (Windows), Kerberos, or HTTP authentication. To specify the HTTP proxy, you can set ProxyServer and ProxyPort. To specify the authentication type, set ProxyAuthScheme.

If you are using HTTP authentication, additionally set ProxyUser and ProxyPassword to HTTP proxy.

If you are using NTLM authentication, set ProxyUser and ProxyPassword to your Windows password. You may also need these to complete Kerberos authentication.

For SOCKS 5 authentication or tunneling, see FirewallType.

By default, the driver uses the system proxy. If you want to connect to another proxy, set ProxyAutoDetect to false.



Proxy Port

Data Type

string

Default Value

"80"

Remarks

The port the HTTP proxy is running on that you want to redirect HTTP traffic through. Specify the HTTP proxy in ProxyServer. For other proxy types, see FirewallType.



Proxy Server

Data Type

string

Default Value

""

Remarks

The hostname or IP address of a proxy to route HTTP traffic through. The driver can use the HTTP, Windows (NTLM), or Kerberos authentication types to authenticate to an HTTP proxy.

If you need to connect through a SOCKS proxy or tunnel the connection, see FirewallType.

By default, the driver uses the system proxy. If you need to use another proxy, set ProxyAutoDetect to false.



Proxy SSL Type

Data Type

string

Default Value

"AUTO"

Remarks

This property determines when to use SSL for the connection to an HTTP proxy specified by ProxyServer. This value can be AUTO, ALWAYS, NEVER, or TUNNEL. The applicable values are the following:

AUTODefault setting. If the URL is an HTTPS URL, the driver will use the TUNNEL option. If the URL is an HTTP URL, the component will use the NEVER option.
ALWAYSThe connection is always SSL enabled.
NEVERThe connection is not SSL enabled.
TUNNELThe connection is through a tunneling proxy: The proxy server opens a connection to the remote host and traffic flows back and forth through the proxy.



Proxy User

Data Type

string

Default Value

""

Remarks

The ProxyUser and ProxyPassword options are used to connect and authenticate against the HTTP proxy specified in ProxyServer.

You can select one of the available authentication types in ProxyAuthScheme. If you are using HTTP authentication, set this to the username of a user recognized by the HTTP proxy. If you are using Windows or Kerberos authentication, set this property to a username in one of the following formats:

user@domain
domain\user



Pseudo Columns

Data Type

string

Default Value

""

Remarks

This setting is particularly helpful in Entity Framework, which does not allow you to set a value for a pseudo column unless it is a table column. The value of this connection setting is of the format "Table1=Column1, Table1=Column2, Table2=Column3". You can use the "*" character to include all tables and all columns; i.e., "*=*".



Query Cache

Data Type

string

Default Value

""

Remarks

The QueryCache property allows you to cache the results of a query in memory and use them until the cache expires. The cache expires after the seconds specified in this property. The in-memory query cache is shared across connections, so it can help with performance even if more than one connection is being used.

How QueryCache Works

The cache manager for QueryCache will not only use the cache for exactly the same query, but also use the cache for queries that represent a subset of data in the cached query. For example, in the following queries, the cache created while executing Query A will be used to obtain the results for both Query B and Query C.

SELECT * FROM Account; // Query A
SELECT * FROM Account WHERE Name LIKE '%John'; // Query B
SELECT Id, Name FROM Account LIMIT 10; // Query C

When to Use QueryCache

Setting the QueryCache property can improve performance in the following scenarios:

  • When you need to execute the same or similar queries from multiple connections: With this property set, all connections share the same temporary cache instead of each executing a query to Marketo. This can be useful in connection pooling.

  • When you need to query cached data with generated queries: Data access wizards and dashboard designers generate an underlying SQL query, which you may have a limited ability to modify. Typically, to pass through SQL to query a cache, you need to set Offline. Offline queries may be unacceptable if your BI and analytics need to reflect changes to the data in real time. But, slow networks or servers can result in reports with unacceptable lag.

    QueryCache enables you to execute standard SQL against a local cache while remaining online to periodically refresh the cache.

    Note that Offline and QueryCache do not provide an ad-hoc way to select a cached table or a remote table after opening a connection; the properties allow access to only one or the other. The #CACHE SQL syntax enables you to explicitly select a cached table, without going offline. Refer to Caching Explicitly for more information.

When Not to Use QueryCache

  • When you need the most efficient queries possible: By default, the driver offloads as much processing as possible to the server. This results in the least amount of data crossing the network. ; even if a query is not supported and needs some in-memory processing, the driver still leverages the API's capabilities. QueryCache is only desirable when the default functionality is not possible or when there are overriding constraints; for example, even API-optimized queries can be expensive against a slow server.



Readonly

Data Type

bool

Default Value

false

Remarks

If this property is set to true, the driver will allow only SELECT queries. INSERT, UPDATE, DELETE, and stored procedure queries will cause an error to be thrown.



REST Endpoint

Data Type

string

Default Value

""

Remarks

The URL of the REST Web service endpoint is provided by Marketo on the Admin page of the Marketo website.



RTK

Data Type

string

Default Value

""

Remarks

The RTK property may be used to license a build. Please see the included licensing file to see how to set this property. The runtime key is only available if you purchased an OEM license.



Schema

Data Type

string

Default Value

"REST"

Remarks

The schemas available are REST (to use Marketo's REST API) and SOAP (to use Marketo's SOAP API).



SOAP Endpoint

Data Type

string

Default Value

""

Remarks

The URL of the SOAP Web service endpoint is provided by Marketo on the Admin page of the Marketo website.



SSL Server Cert

Data Type

string

Default Value

""

Remarks

If using a TLS/SSL connection, this property can be used to specify the TLS/SSL certificate to be accepted from the server. Any other certificate that is not trusted by the machine will be rejected.

This property can take the forms:

Description Example
A full PEM Certificate (example shortened for brevity) -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE-----
A path to a local file containing the certificate C:\cert.cer
The public key (example shortened for brevity) -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY-----
The MD5 Thumbprint (hex values can also be either space or colon separated) ecadbdda5a1529c58a1e9e09828d70e4
The SHA1 Thumbprint (hex values can also be either space or colon separated) 34a929226ae0819f2ec14b4a3d904f801cbb150d

If not specified, any certificate trusted by the machine will be accepted. Use '*' to signify to accept all certificates (not recommended for security concerns).



Support Enhanced SQL

Data Type

bool

Default Value

true

Remarks

Use QueryCache to cache memory for a given time in seconds or to disable in-memory caching.

Use QueryCache to cache in memory for a given time in seconds or to disable in-memory caching.



Tables

Data Type

string

Default Value

""

Remarks

Listing the tables from some databases can be expensive. Providing a list of tables in the connection string improves the performance of the driver.



Timeout

Data Type

string

Default Value

"60"

Remarks

If the Timeout property is set to 0, operations do not time out: They run until they complete successfully or encounter an error condition.

If Timeout expires and the operation is not yet complete, the driver throws an exception.



User Id

Data Type

string

Default Value

""

Remarks

The User Id is provided by Marketo and is used to authenticate to the Marketo SOAP Web service.



Verbosity

Data Type

string

Default Value

"1"

Remarks

The verbosity level determines the amount of detail that the driver reports to the Logfile. Verbosity levels from 1 to 5 are supported. These are described below:

1Setting Verbosity to 1 will log the query, the number of rows returned by it, the start of execution and the time taken, and any errors.
2Setting Verbosity to 2 will log everything included in Verbosity 1, cache queries, and HTTP headers.
3Setting Verbosity to 3 will additionally log the body of the HTTP requests.
4Setting Verbosity to 4 will additionally log transport-level communication with the data source. This includes SSL negotiation.
5Setting Verbosity to 5 will additionally log communication with the data source and additional details that may be helpful in troubleshooting problems. This includes interface commands.

The Verbosity should not be set to greater than 1 for normal operation. Substantial amounts of data can be logged at higher verbosities, which can delay execution times.



Views

Data Type

string

Default Value

""

Remarks

Listing the Views from some databases can be expensive. Providing a list of Views in the connection string improves the performance of the driver.





Tables

  1. Companies
  2. CustomActivities
  3. CustomObjects
  4. Leads
  5. NamedAccounts
  6. Opportunities
  7. OpportunityRoles
  8. Programs
  9. SalesPersons

Companies

Query Companies for a Marketo organization.

Table Specific Information

Note: This table is only available for Marketo subscriptions which do not have a native CRM sync enabled. If sync is enabled, an error will be returned when attempting to query the table stating that the API is disabled.

Select

A filter must be specified when retrieving companies. Valid filters are any searchable columns which include Id, ExternalCompanyId, ExternalSalesPersonId, or Company.

SELECT * FROM Companies WHERE ExternalCompanyId='CData'
Columns

Name Type ReadOnly Filterable Description
Id [KEY] String True True

The unique, Marketo-assigned identifier of the company.

ExternalCompanyId String False True

The external Id of the company.

AnnualRevenue Double False

The annual revenue of the company.

BillingCity String False

The billing ciy of the company.

BillingCountry String False

The billing country of the company.

BillingState String False

The billing state of the company.

BillingStreet String False

The billing street of the company.

Company String False True

The name of the company.

CompanyNotes String False

Notes about the company.

ExternalSalesPersonId String False True

The external sales person Id associated with the company.

Industry String False

The industry of the company.

MainPhone String False

The main phone number of the company.

NumberOfEmployees Integer False

The number of employees at the company.

SICCode String False

The SIC Code of the company.

Site String False

The site of the company.

Website String False

The web site of the company.

CreatedAt Datetime True

The date and time the company was created.

UpdatedAt Datetime True

The date and time the company was last updated.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
rows@next String

An input used internally to determine whether to get the next page of results.



CustomActivities

Query Custom Activities for a Marketo organization.

Table Specific Information
Each custom activity contained within your Marketo organization will be returned as it's own table. Each table name will be prefixed with 'Activity_' followed by the name of your custom activity.
Select

Custom activities can be retrieved by performing a SELECT query on the custom activity table.

SELECT * FROM Activity_MyCustomActivity
Columns

Name Type ReadOnly Filterable Description
ActivityId [KEY] String True

The unique Id of the activity.

LeadId String True True

The unique Id of the lead associated with the activity.

ActivityDate Datetime True True

The date and time the lead was added to the list. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.

PrimaryAttribute String True

The primary field Id

PrimaryAttributeValue String True

The primary field value.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String

A List Id used to retrieve actvities for all leads contained within the specified list.

rows@next String

An input used internally to determine whether to get the next page of results.



CustomObjects

Create, update, delete, and query custom objects for a Marketo organization.

Table Specific Information
Each custom object contained within your Marketo organization will be returned as it's own table. Each table name will be prefixed with 'CustomObject_' followed by the name of your custom object.
Select

The Marketo REST API requires that a filter be specified to retrieve custom objects. The filter must contain at least one column that is the Key, a dedupeField, or a column that is searchable. Only the '=' operator is supported on these filter types. Other filters can be specified in addition to this but at least one of the previously mentioned filters must be specified. All filterable columns allow multiple values to be specified by using the IN operator or the OR logical operator.

Response time from the server can be improved by identifying only the rows and columns you want to retrieve.

SELECT Make, Model, Year, Color FROM CustomObject_MyCustomBikeObject WHERE VIN='12345'
Columns

Name Type ReadOnly Filterable Description
MarketoGUID [KEY] String True

The unique, Marketo-assigned identifier of the custom object.

CreatedAt Datetime False

The datetime the custom object was created.

UpdatedAt Datetime False

The datetime the custom object was updated.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
rows@next String

An input used internally to determine whether to get the next page of results.



Leads

Create, update, delete, and query Leads for a Marketo organization.

Table Specific Information
Select

The Marketo REST API requires one (and only one) of the following columns to be used in the WHERE clause of a SELECT query: Id, Email, SFDCAccountId, SFDCLeadId, SFDCLeadOwnerId, SFDCContactId, Cookies, FacebookId, LinkedInDisplayName, ListId or ProgramId. All columns must be specified using the '=' operator; otherwise, an exception will be thrown. All filterable columns allow multiple values to be specified by using the IN operator or the OR logical operator.

Response time from the server can be improved by identifying only the rows and columns you want to retrieve.

SELECT Id, FirstName, LastName FROM Leads WHERE Id IN ('1','2','5','10')

If a filter is not specified, the Activities_NewLead table will be queried to retrieve a list of Lead Ids. Once the Lead Ids have been compiled, the Leads table will be queried using the compiled list of Lead Ids. The 'CreatedAt' column can be used as a filter to specify the created datetime range of Leads to retrieve. When the '>' or '>=' operator is specified, the datetime value will be submitted in the Activities_NewLead table request. Note that this requires additional API calls and will at least double the amount of API calls made as one Activities_NewLead request must be made for each Leads request made. The maximum batch size per request for the REST API is 300, so to get a rough estimate of the number of API calls required, the following formula can be used: (Total Number of Leads / 300) * 2

The 'UpdatedAt' column can also be used as a filter to specify the updated datetime range of Leads to retrieve. When specified, the Activities_LeadChanges table will be queried to retrieve a list of Lead Ids. Once the Lead Ids have been compiled, the Leads table will be queried using the compiled list of Lead Ids. When the '>' or '>=' operator is specified, the datetime value will be submitted in the Activities_LeadChanges table request. Note that this requires additional API calls and will at least double the amount of API calls made as one Activities_LeadChanges request must be made for each Leads request made. In most cases, the total API calls will more than double as individual values for a Lead are returned as a record). Thus to get a full list of Lead Ids, multiple Activities_LeadChanges requests may need to be made. The maximum batch size per request for the REST API is 300, so to get a minimum estimate of the number of API calls required, the following formula can be used: (Total Number of Leads / 300) * 2

Alternatively, the SOAP API can be used to to retrieve a list of Lead Ids by setting "UseSOAPForLeadIds=True" in the 'Other' property. When specified the SOAP API will be used (provided the SOAP connection details are specified) to compile a list of Lead Ids which will then be used as a filter for the REST API. Note that the SOAP API is significantly slower than the REST API, although this hybrid approach is faster than using just the SOAP API by itself. The maximum batch size per request for the SOAP API is 1000, so to get a minimum estimate of the number of API calls required, the following formula can be used: (Total Number of Leads / 1000) + (Total Number of Leads / 300)

To bypass utilizing multiple API calls and for the best performance, create a static list of Leads within Marketo and then specify the ListId to retrieve them.

Columns

Name Type ReadOnly Filterable Description
Id [KEY] String True True

The unique, Marketo-assigned identifier of the account.

Email String False True

The lead's email address.

Salutation String False

The lead's salutation.

FirstName String False

The lead's first name.

MiddleName String False

The lead's middle name.

LastName String False

The lead's last name.

DateOfBirth Date False

The lead's date of birth.

Title String False

The lead's job title.

Address String False

The lead's street address.

City String False

The lead's city.

State String False

The lead's state.

PostalCode String False

The lead's ZIP/postal code.

Country String False

The lead's country.

Website String False

The lead's website.

Phone String False

The lead's phone number.

MobilePhone String False

The lead's mobile phone number.

Fax String False

The lead's fax number.

Company String False

The name of the lead's company.

MainPhone String False

The phone number of the lead's company.

SICCode String False

The SIC (Standard Industrial Classification) code of the lead's company.

Site String False

The site of the lead's company.

BillingStreet String False

The billing street address of the lead's company.

BillingCity String False

The billing city of the lead's company.

BillingState String False

The billing state of the lead's company.

BillingPostalCode String False

The billing ZIP/postal code of the lead's company.

BillingCountry String False

The billing country of the lead's company.

NumberOfEmployees Integer False

The number of employees at the lead's company.

Industry String False

The industry of the lead's company.

Department String False

The lead's deparment.

AnnualRevenue Double False

The annual revenue generated at the lead's company.

AnonymousIP String False

The IP address of the lead if it is anonymous.

Unsubscribed Boolean False

Determines whether the lead is unsubscribed.

UnsubscribedReason String False

The reason why the lead has unsubscribed.

EmailInvalid Boolean False

Identifies whether the lead's email address is invalid.

EmailInvalidCause String False

The reason why the lead's email address is invalid.

DoNotCall Boolean False

Identifies whether the lead is on the 'Do Not Call' list.

DoNotCallReason String False

The reason why the lead is on the 'Do Not Call' list.

PersonType String False

The type of person the current record is, such as a contact.

IsAnonymous Boolean True

Identifies whether the lead is anonymous or not.

IsLead Boolean False

Identifies whether the person is a lead or not.

LeadRole String False

The lead's role.

LeadSource String False

The lead's source.

LeadStatus String False

The lead's current status.

LeadScore Integer False

The lead's score.

Rating String False

The lead's rating.

Urgency Double True

The lead's urgency.

Priority Integer True

The lead's priority.

RelativeScore Integer True

The lead's relative score.

OriginalSourceType String True

The original source type where the lead originated from.

OriginalSourceInfo String True

Information about the original source of the lead.

RegistrationSourceType String False

The original source type where the lead originated from.

RegistrationSourceInfo String False

Information about the original source of the lead.

CreatedAt Datetime True

The date the lead was created.

UpdatedAt Datetime True

The date the lead was last updated.

Cookies String False True

The cookies associated with the lead.

AcquisitionProgramId String False

The Id of the program in which the lead was acquired.

Gender String False

The lead's social gender.

TotalReferredVisits Integer True

The lead's total social referred visits.

TotalReferredEnrollments Integer True

The lead's total social referred enrollments.

LastReferredEnrollment Datetime False

The lead's last social referred enrollment.

LastReferredVisit Datetime False

The lead's last social referred visit.

SyndicationId String False

The lead's social syndication Id.

FacebookDisplayName String False

The lead's Facebook display name.

FacebookId String False True

The lead's Facebook Id.

FacebookPhotoURL String False

The lead's Facebook photo URL.

FacebookProfileURL String False

The lead's Facebook profile URL.

FacebookReach Integer False

The lead's Facebook reach.

FacebookReferredEnrollments Integer False

The lead's Facebook referred enrollments.

FacebookReferredVisits Integer False

The lead's Facebook referred visits.

LinkedInDisplayName String False True

The lead's LinkedIn display name.

LinkedInId String False

The lead's LinkedIn Id.

LinkedInPhotoURL String False

The lead's LinkedIn photo URL.

LinkedInProfileURL String False

The lead's LinkedIn profile URL.

LinkedInReach Integer False

The lead's LinkedIn reach.

LinkedInReferredEnrollments Integer False

The lead's LinkedIn referred enrollments.

LinkedInReferredVisits Integer False

The lead's LinkedIn referred visits.

TwitterDisplayName String False

The lead's Twitter display name.

TwitterId String False

The lead's Twitter Id.

TwitterPhotoURL String False

The lead's Twitter photo URL.

TwitterProfileURL String False

The lead's Twitter profile URL.

TwitterReach Integer False

The lead's Twitter reach.

TwitterReferredEnrollments Integer False

The lead's Twitter referred enrollments.

TwitterReferredVisits Integer False

The lead's Twitter referred visits.

ListId String True True

A List Id used to retrieve all leads contained within the specified list. This is a filter only field made available to enhance filtering capabilities.

ProgramId String True True

A Program Id used to retrieve all leads associated with the specified program. This is a filter only field made available to enhance filtering capabilities.

LookupField String True True

Used to specify the field used to find duplicate leads. Only used when performing an INSERT or UPDATE. Available values are: id (default), cookie, email, twitterId, facebookId, linkedInId, sfdcAccountId, sfdcContactId, sfdcLeadId, sfdcLeadOwnerId, and custom fields. This is a filter only field made available to enhance filtering capabilities.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
rows@next String

An input used internally to determine whether to get the next page of results.



NamedAccounts

Query Named Accounts for a Marketo organization.

Table Specific Information
Select

A filter must be specified when retrieving named accounts. Valid filters are any searchable columns which include MarketoGUID, Name, Industry, State, City, etc.

SELECT * FROM NamedAccounts WHERE Name='MyAccount'
Columns

Name Type ReadOnly Filterable Description
MarketoGUID [KEY] String True True

The unique, Marketo-assigned identifier of the named account.

Name String False True

The name of the account.

AccountOwnerId Integer False True

The owner id of the account.

AnnualRevenue Double False True

The annual revenue for the account.

City String False True

The city for the account.

Country String False True

The country for the account.

DomainName String False True

The name of the domain for the account.

Industry String False True

The industry for the account.

LogoURL String False True

The URL to the logo for the account.

MembershipCount Integer True True

The number of members for the account.

NumberOfEmployees Integer False True

The number of employees for the account.

OpptyAmount Double True True

The total amount of opportunities for the account.

OpptyCount Integer True True

The total number of opportunities for the account.

SICCode String False True

The SIC Code for the account.

State String False True

The state for the account.

CreatedAt Datetime True

The date and time the named account was created.

UpdatedAt Datetime True

The date and time the named account was last updated.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
rows@next String

An input used internally to determine whether to get the next page of results.



Opportunities

Query Opportunities for a Marketo organization.

Table Specific Information

Note: This table is only available for Marketo subscriptions which do not have a native CRM sync enabled. If sync is enabled, an error will be returned when attempting to query the table stating that the API is disabled.

Select

A filter must be specified when retrieving opportunities. Valid filters are any searchable columns which include MarketoGUID, ExternalOpportunityId, ExternalCompanyId, or ExternalSalesPersonId.

SELECT * FROM Opportunities WHERE ExternalOpportunityId='CDATA1'
Columns

Name Type ReadOnly Filterable Description
MarketoGUID [KEY] String True True

The unique, Marketo-assigned identifier of the opportunity.

ExternalOpportunityId String False True

The external Id of the opportunity.

Amount Double False

The description of the opportunity.

CloseDate Datetime False

The date and time the opportunity was closed.

Description String False

The description of the opportunity.

ExpectedRevenue Double False

The expected revenue of the opportunity.

ExternalCompanyId String False True

The external company Id of the opportunity.

ExternalCreatedDate Datetime False

The external date and time the opportunity was created.

ExternalSalesPersonId String False True

The external sales person Id of the opportunity.

Fiscal String False

The fiscal of the opportunity.

FiscalQuarter String False

The fiscal quarter of the opportunity.

FiscalYear String False

The fiscal year of the opportunity.

ForecastCategoryName String False

The forecast category name of the opportunity.

IsClosed Boolean False

Specifies whether the opportunity is closed.

IsWon Boolean False

Specifies whether the opportunity was won.

LastActivityDate Datetime False

The date and time the last activity occurred on the opportunity.

LeadSource String False

The lead source of the opportunity.

Name String False

The name of the opportunity.

NextStep String False

The next step of the opportunity.

Probability Integer False

The probability of the opportunity.

Quantity Double False

The quantity of the opportunity.

Stage Double False

The stage of the opportunity.

Type Double False

The type of the opportunity.

CreatedAt Datetime True

The date and time the opportunity was created.

UpdatedAt Datetime True

The date and time the opportunity was last updated.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
rows@next String

An input used internally to determine whether to get the next page of results.



OpportunityRoles

Query Opportunity Roles for a Marketo organization.

Table Specific Information

Note: This table is only available for Marketo subscriptions which do not have a native CRM sync enabled. If sync is enabled, an error will be returned when attempting to query the table stating that the API is disabled.

Select

A filter must be specified when retrieving opportunities. Valid filters are any searchable columns which include MarketoGUID and a combination of ExternalOpportunityId, LeadId, and Role.

SELECT * FROM OpportunityRoles WHERE ExternalOpportunityId='Opportunity1' AND LeadId='1' AND Role='MyRole'
Columns

Name Type ReadOnly Filterable Description
MarketoGUID [KEY] String True True

The unique, Marketo-assigned identifier of the opportunity role.

ExternalOpportunityId String False True

The external Id of the opportunity.

ExternalCreatedDate Datetime False

The external date and time the opportunity role was created.

IsPrimary Boolean False

Specifies whether the opportunity role is the primary role on the opportunity.

LeadId String False True

The lead Id associated with the opportunity role.

Role String False True

The role associated with the opportunity.

CreatedAt Datetime True

The date and time the opportunity role was created.

UpdatedAt Datetime True

The date and time the opportunity role was last updated.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
rows@next String

An input used internally to determine whether to get the next page of results.



Programs

Query Programs for a Marketo organization.

Table Specific Information
Select

Note: Tag and Cost columns are not returned when browsing all Programs (such as performing a SELECT * query). These columns are only returned when filtering by a specific Program Id or Name.

Tag and Cost Columns are not returned in this case.

SELECT * FROM Programs

Tag and Cost Columns are returned in this case.

SELECT * FROM Programs WHERE Id='1001'
Columns

Name Type ReadOnly Filterable Description
Id [KEY] String True True

The unique, Marketo-assigned identifier of the program.

Name String False True

The name of the program.

Description String False

The description of the program.

Type String False

The program type.

Channel String False

The channel the program is associated with.

Workspace String False

The name of the workspace where the program is located.

Url String True

The URL reference to the program.

Status String False

The status of the program.

FolderType String False

The folder type that the program is contained in.

FolderId Integer False

The folder id that the program is contained in.

FolderName String False

The name of the folder the program is contained in.

TagTypes# String False True

A comma-separated list of tag types associated with the program. Each TagType has a value associated with it which is returned via the TagValue column.

TagValues# String False True

A comma-separated list of tag values. Each value corresponds to the type listed within the TagTypes column.

CostStartDates# String False

A comma-separated list of cost start dates. Each value corresponds to the costs and notes listed within the Costs and CostNotes columns.

Costs# String False

A comma-separated list of costs (integer values). Each value corresponds to the start dates and notes listed within the CostStartDates and CostNotes columns.

CostNotes# String False

A comma-separated list of cost notes. Each value corresponds to the costs and start dates listed within the Costs and CostStartDates columns.

CreatedAt Datetime True

The date and time the program was created.

UpdatedAt Datetime True

The date and time the program was last updated.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
rows@next String

An input used internally to determine whether to get the next page of results.



SalesPersons

Query Sales Persons for a Marketo organization.

Table Specific Information
Select

A filter must be specified when retrieving companies. Valid filters are any searchable columns which include Id, ExternalSalesPersonId, or Email.

SELECT * FROM SalesPersons WHERE ExternalSalesPersonId='sales@cdata.com'
Columns

Name Type ReadOnly Filterable Description
Id [KEY] String True True

The unique, Marketo-assigned identifier of the sales person.

ExternalSalesPersonId String False True

The external Id of the sales person.

Email String False True

The email address of the sales person.

Fax String False

The fax number of the sales person.

FirstName String False

The first name of the sales person.

LastName String False

The last name of the sales person.

MobilePhone String False

The mobile phone number of the sales person.

Phone String False

The phone number of the sales person.

Title String False

The sales person's title.

CreatedAt Datetime True

The date and time the sales person was created.

UpdatedAt Datetime True

The date and time the sales person was last updated.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
rows@next String

An input used internally to determine whether to get the next page of results.





Views

  1. Activities_AddToList
  2. Activities_AddToNurture
  3. Activities_AddToOpportunity
  4. Activities_AddToSFDCCampaign
  5. Activities_ChangeDataValue
  6. Activities_ChangeNurtureCadence
  7. Activities_ChangeNurtureTrack
  8. Activities_ChangeOwner
  9. Activities_ChangeRevenueStage
  10. Activities_ChangeScore
  11. Activities_ChangeStatusInProgression
  12. Activities_ChangeStatusInSFDCCampaign
  13. Activities_ClickEmail
  14. Activities_ClickLink
  15. Activities_ClickSharedLink
  16. Activities_ConvertLead
  17. Activities_DeleteLead
  18. Activities_DeleteLeadFromSFDC
  19. Activities_EmailBounced
  20. Activities_EmailBouncedSoft
  21. Activities_EmailDelivered
  22. Activities_FillOutForm
  23. Activities_InterestingMoments
  24. Activities_LeadChanges
  25. Activities_MergeLeads
  26. Activities_NewLead
  27. Activities_OpenEmail
  28. Activities_RemoveFromList
  29. Activities_RemoveFromOpportunity
  30. Activities_RemoveFromSFDCCampaign
  31. Activities_SendAlert
  32. Activities_SendEmail
  33. Activities_SFDCActivity
  34. Activities_SFDCActivityUpdated
  35. Activities_ShareContent
  36. Activities_SyncLeadToSFDC
  37. Activities_UnsubscribedEmail
  38. Activities_UpdateOpportunity
  39. Activities_VisitWebpage
  40. Activities_VoteInPoll
  41. Campaigns
  42. Channels
  43. Lists
  44. Tags

Activities_AddToList

Query Add To List Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the lead was added to the list. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
ListId String The id of the list the lead was added to.
ListName String The name of the list the lead was added to.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
rows@next String An input used internally to determine whether to get the next page of results.



Activities_AddToNurture

Query Add To Nurture Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the lead was added to the nurture program. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
ProgramId String The id of the nurture program.
ProgramName String The name of the nurture program.
TrackId String The Id of the nurture track.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_AddToOpportunity

Query Add To Opportunity Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the account was added to the opportunity. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
OpportunityId String The id of the opportunity.
AccountName String The account name added to the opportunity.
IsPrimary Boolean Identifies if the account is the primary account added to the opportunity.
Role String The role of the account for the opportunity.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_AddToSFDCCampaign

Query Add To SFDC Campaign Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the lead was added to the SFDC campaign. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
CampaignId String The id of the SFDC campaign.
CampaignName String The name of the SFDC campaign.
Status String The status of the SFDC campaign add activity.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_ChangeDataValue

Query Change Data Value Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the attribute value was changed. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
AttributeId String The id of the attribute that was changed.
AttributeName String The name of the attribute that was changed.
NewValue String The new value of the attribute.
OldValue String The old value of the attribute.
Reason String The reason why the attribute value was changed.
Source String The source used to change the attribute value.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_ChangeNurtureCadence

Query Change Nurture Cadence Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the nurture cadence was changed. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
ProgramId String The id of the nurture program.
ProgramName String The name of the nurture program.
NewNurtureCadence String The new nurture cadence.
PreviousNurtureCadence String The old nurture cadence.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_ChangeNurtureTrack

Query Change Nurture Track Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the nurture track was changed. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
ProgramId String The id of the nurture program.
ProgramName String The name of the nurture program.
NewTrackId String The new nurture track Id.
OldTrackId String The old nurture track Id.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_ChangeOwner

Query Change Owner Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the lead owner was changed. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
NewOwnerId String The id of the new lead owner.
NewOwnerName String The name of the new lead owner.
OldOwnerName String The name of the old/previous lead owner.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_ChangeRevenueStage

Query Change Revenue Stage Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the lead owner was changed. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
ModelId String The id of the revenue model.
ModelName String The name of the revenue model.
NewStageId String The new Id of the stage that the lead is currently in.
NewStage String The new name of the stage that the lead is currently in.
OldStageId String The Id of the stage that the lead was previously in.
OldStage String The name of the stage that the lead was previously in.
Reason String The reason why the data value was changed.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_ChangeScore

Query Change Score Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the score value was changed. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
ScoreId String The id of the score that was changed.
ScoreName String The name of the score that was changed.
ChangeValue String The net change in the score value. For example, +5 or -5.
NewValue Integer The new score value.
Priority Integer The priority rank used to decide which lead should be contacted first. Priority has two components: Urgency and Relative Score. The higher the priority, the higher likelihood that the lead will respond positively to a contact.
RelativeScore Integer Contains a measure of how a lead's score compares to other lead scores. This value is derived from score value (NewValue).
RelativeUrgency Integer Contains a measure of how a lead's urgency compares to other lead urgencies.
Urgency Double How much the score has changed recently. A higher urgency represents a score that has increased a lot lately, showing customer interest. This value is derived from score value (NewValue).

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_ChangeStatusInProgression

Query Change Status In Progression Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the attribute value was changed. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
ProgramId String The Id of the program.
ProgramName String The name of the program where the status change occurred.
AcquiredBy Boolean Identifies whether the lead was acquired by this activity.
NewStatusID String The Id of the new status value.
OldStatusID String The Id of the old status value.
Reason String The reason why the status was changed.
Success Boolean Identifies whether the status represents a success.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_ChangeStatusInSFDCCampaign

Query Change Status In SFDC Campaign Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the status was change in the SFDC campaign. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
CampaignId String The id of the SFDC campaign.
CampaignName String The name of the SFDC campaign.
NewStatus String The new status of the SFDC campaign.
OldStatus String The old/previous status of the SFDC campaign.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_ClickEmail

Query Clicked Email Link Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the email link was clicked. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
EmailId String The Id of the email link that was clicked.
EmailName String The name of the email link that was clicked.
Link String The link that was clicked in the email.
LinkId String The Id of the link that was clicked.
Device String The device that was used to click the email link.
IsMobileDevice String Identifies whether a mobile device was used to click the email link.
Platform String The platform that was used to click the email link.
UserAgent String The web browser user agent information obtained when the email link was clicked.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_ClickLink

Query Click Link Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the link was clicked. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
LinkId String The Id of the link that was clicked
LinkURL String The URL of the link that was clicked
ClientIPAddress String The IP address of the client that clicked the link.
QueryParameters String The query parameters contained within the link address.
ReferrerURL String The URL of the referrer used to identify where the link click originated from.
UserAgent String The web browser user agent information obtained when the link was clicked.
WebpageId String The Id of the web page where the link was clicked.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_ClickSharedLink

Query Click Shared Link Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the shared link was clicked. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
SocialAppId String The id of the social app.
SocialAppName String The name of the social app.
SharerId Integer The message that was shared.
SocialAppTypeId Integer The id of the social app type used when the shared link was clicked.
SocialNetwork String The social network used when the shared link was clicked.
WebpageId Integer The id of the webpage that was used when the shared link was clicked.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_ConvertLead

Query Convert Lead Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the lead was converted. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
LeadOwnerId String The id of the account owner that the converted lead was assigned to.
LeadOwnerName String The name of the account owner that the converted lead was assigned to.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_DeleteLead

Query Delete Lead Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
LeadName String The name of the lead that was deleted.
ActivityDate Datetime True The date and time the lead was deleted. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_DeleteLeadFromSFDC

Query Delete Lead From SFDC (Salesforce.com) Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
LeadName String The name of the lead was deleted.
ActivityDate Datetime True The date and time the lead was deleted from SFDC. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_EmailBounced

Query Email Bounced Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the email bounced. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
EmailId String The Id of the email that bounced.
EmailName String The name of the email that bounced.
EmailAddress String The email address that bounced.
Details String Details about why the email bounced.
Category String The category associated with bounced email.
Subcategory String The subcategory associated with bounced email.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_EmailBouncedSoft

Query Email Bounced Soft Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the email bounced. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
EmailId String The Id of the email that bounced.
EmailName String The name of the email that bounced.
EmailAddress String The email address that bounced.
Details String Details about why the email bounced.
Category String The category associated with bounced email.
Subcategory String The subcategory associated with bounced email.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_EmailDelivered

Query Email Delivered Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the email was delivered. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
EmailId String The Id of the email that was delivered.
EmailName String The name of the email that was delivered.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_FillOutForm

Query Fill Our Form Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the web form was filled out. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
WebformId String The Id of the web form that was filled our
WebformName String The name of the web form that was filled our
ClientIPAddress String The IP address of the client that filled out the form.
QueryParameters String The query parameters contained within the URL.
ReferrerURL String The URL of the referrer used to identify where the form visit originated from.
UserAgent String The web browser user agent information obtained when the web form was filled out.
WebpageId String The Id of the web page where the form was hosted.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_InterestingMoments

Query Interesting Moments Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the interesting moment occurred. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
Type String The type of moment that occurred such as Web, Email, Milestone, etc.
Description String The description about the moment.
Source String The source by which the interesting moment occurred.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_LeadChanges

Query Lead Change Activities for a Marketo organization.

Table Specific Information
Select

Marketo requires that the Fields filter be specified when retrieving lead change activities. The Fields filter is used to specify the Leads to retrieve that has changes to the fields specified. In the example below, only the Leads that have had the email or company field changed will be returned.

SELECT * FROM Activities_LeadChanges WHERE Fields='email,company'
Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the lead was changed. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
ActivityTypeId String The id of activity that was performed when the lead was changed.
ActivityType String The name of activity that was performed when the lead was changed.
AttributeId String The id of the lead attribute that was changed.
AttributeName String The name of the lead attribute that was changed.
NewValue String The new value of the lead attribute.
OldValue String The old value of the lead attribute.
Reason String The reason why the lead attribute value was changed.
Source String The source used to change a lead attribute value.
FormName String The name of the form that generated the lead change.
SourceType String The source type that generated the lead change.
SFDCType String The Salesforce.com type assocated with the lead change.
Fields String True A comma-separated list of lead fields to get the changes for. The applicable fields are the column names from the Leads table. If not specified, all the columns in the Leads table will be used by default.
ListId String True A List Id used to retrieve all lead changes contained within the specified list.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
rows@next String An input used internally to determine whether to get the next page of results.



Activities_MergeLeads

Query Merge Leads Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
LeadName String The name of the lead that MergeIDs were merged into.
MergeIDs String A comma-separated list of the lead Ids that were merged.
MasterUpdated Boolean Identifies whether the master lead was updated.
MergedInSales Boolean Identifies whether the lead was merged in sales.
MergeSouce String The source by which the merge was performed.
ActivityDate Datetime True The date and time the lead was added to the list. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_NewLead

Query New Lead Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
LeadName String The full name of the lead.
ActivityDate Datetime True The date and time the lead was created. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
FormName String The name of the form used to create the new lead.
LeadSource String The lead source.
ListName String The name of the list the lead is contained within.
SourceType String The source type that generated the lead.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_OpenEmail

Query Open Email Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the email was opened. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
EmailId String The Id of the email that was opened.
EmailName String The name of the email that was opened.
Device String The device that was used to open the email.
IsMobileDevice String Identifies whether a mobile device was used to open the email.
Platform String The platform that was used to open the email.
UserAgent String The web browser user agent information obtained when the email was opened.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_RemoveFromList

Query Remove From List Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the lead was removed from the list. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
ListId String The id of the list the lead was removed from.
ListName String The name of the list the lead was removed from.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
rows@next String An input used internally to determine whether to get the next page of results.



Activities_RemoveFromOpportunity

Query Remove From Opportunity Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the account was removed from the opportunity. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
OpportunityId String The id of the opportunity.
AccountName String The account name removed from the opportunity.
IsPrimary Boolean Identifies if the account is the primary account removed from the opportunity.
Role String The role of the account for the opportunity.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_RemoveFromSFDCCampaign

Query Remove From SFDC Campaign Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the lead was removed from the SFDC campaign. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
CampaignId String The id of the SFDC campaign.
CampaignName String The name of the SFDC campaign.
Status String The status of the campaign remove activity.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_SendAlert

Query Send Alert Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the email bounced. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
EmailId String The Id of the email alert that was sent.
EmailName String The name of the email alert that was sent.
SendToList String A comma-separated list of lead email addresses.
SendToOwner String The name of the lead owner the alert was sent to.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_SendEmail

Query Send Email Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the email was sent. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
EmailId String The Id of the email that was sent.
EmailName String The name of the email that was sent.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_SFDCActivity

Query SFDC Activity Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the SFDC activity occurred. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
Subject String The subject of the SFDC activity.
Owner String The owner of the SFDC activity.
Description String The description of the SFDC activity.
DueDate Datetime The date the SFDC activity is due.
IsTask Boolean Identifies whether the SFDC activity is a task.
Priority String The priority of the SFDC activity.
Status String The current status of the SFDC activity.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_SFDCActivityUpdated

Query SFDC Activity Updated Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the SFDC activity was updated. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
Subject String The subject of the updated SFDC activity.
Owner String The owner of the updated SFDC activity.
Description String The description of the updated SFDC activity.
DueDate Datetime The date the updated SFDC activity is due.
IsTask Boolean Identifies whether the updated SFDC activity is a task.
Priority String The priority of the updated SFDC activity.
Status String The current status of the updated SFDC activity.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_ShareContent

Query Share Content Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the content was shared. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
SocialAppId String The id of the social app.
SocialAppName String The name of the social app.
ShareMessage String The message that was shared.
SocialAppTypeId Integer The id of the social app type used to share the content.
SocialNetwork String The social network used to share the content.
WebpageId Integer The id of the webpage that was used to share the content.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_SyncLeadToSFDC

Query Sync Lead to SFDC (Salesforce.com) Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the lead was synced to SFDC. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
LeadOwnerId String The id of the account owner that the converted lead was assigned to.
LeadOwnerName String The name of the account owner that the converted lead was assigned to.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_UnsubscribedEmail

Query Unsubscribed Email Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the email was unsubscribed. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
EmailId String The Id of the email that the unsubscribe occurred on.
EmailName String The name of the email that the unsubscribe occurred on.
ClientIPAddress String The IP address of the client that unsubscribed.
FormFields String The query parameters contained within the URL.
QueryParameters String The query parameters contained within the URL.
ReferrerURL String The URL of the referrer used to identify where the form visit originated from.
UserAgent String The web browser user agent information obtained when the lead unsubscribed.
WebpageId String The Id of the unsubscribe web page.
WebformId String The Id of the unsubscribe web form.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_UpdateOpportunity

Query Update Opportunity Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the account was the opportunity was updated. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
OpportunityId String The id of the opportunity.
AccountName String The account name of the opportunity.
AttributeName String The name of the attribute that was updated for the opportunity.
NewValue String The new value for the attribute.
OldValue String The old/previous value for the attribute.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_VisitWebpage

Query Visit Webpage Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the web page was visited. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
WebpageId String The Id of the web page that was visited.
WebpageName String The name of the web page that was visited.
ClientIPAddress String The IP address of the client that visited the web page.
QueryParameters String The query parameters contained within the URL.
ReferrerURL String The URL of the referrer used to identify where the web page visit originated from.
SearchQuery String The search query used when the web page was visited.
UserAgent String The web browser user agent information obtained when the web page was visited.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Activities_VoteInPoll

Query Vote In Poll Activities for a Marketo organization.

Columns

Name Type Filterable Description
ActivityId [KEY] String The unique Id of the activity.
LeadId String True The unique Id of the lead associated with the activity.
ActivityDate Datetime True The date and time the vote was placed. Can be used as a filter to specify the starting date and time to retrieve all activities on or after the specified date.
SocialAppId String The id of the social app.
SocialAppName String The name of the social app.
SocialNetwork String The social network used to share the content.
VoteChoice Integer The choice voted on by the lead.
WebpageId Integer The id of the webpage that was used to share the content.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
ListId String A List Id used to retrieve actvities for all leads contained within the specified list.
rows@next String An input used internally to determine whether to get the next page of results.



Campaigns

Query Campaigns for a Marketo organization.

Columns

Name Type Filterable Description
Id [KEY] String True The unique, Marketo-assigned identifier of the campaign
Name String True The name of the campaign
Description String The description of the campaign
Type String The campaign type.
ProgramName String The name of the program associated with the campaign
WorkspaceName String The name of the workspace associated with the campaign
CreatedAt Datetime The date and time the campaign was created.
UpdatedAt Datetime The date and time the campaign was last updated.
Active Boolean Identifies whether the campaign is active.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
rows@next String An input used internally to determine whether to get the next page of results.



Channels

Query Channels for a Marketo organization.

Columns

Name Type Filterable Description
Id [KEY] String The unique, Marketo-assigned identifier of the channel.
Name String True The name of the channel.
Description String The description of the channel.
ApplicableProgramType String The type of program that the channel is used for.
StatusName [KEY] String The progression status name of the channel.
StatusStep String The step number of each progression status used to sequence the order of the channel.
StatusDescription String The description of the progression status of the channel.
StatusHidden Boolean Specifies whether the progression status is hidden.
StatusSuccess Boolean Specifies whether the progression status results in a success.
CreatedAt Datetime The date and time the channel was created.
UpdatedAt Datetime The date and time the channel was last updated.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
rows@next String An input used internally to determine whether to get the next page of results.



Lists

Query Lists for a Marketo organization.

Columns

Name Type Filterable Description
Id [KEY] String True The unique, Marketo-assigned identifier of the list.
Name String True The name of the list.
Description String The description of the list.
ProgramName String The name of the program associated with the list.
WorkspaceName String The name of the workspace associated with the list.
CreatedAt Datetime The date and time the list was created.
UpdatedAt Datetime The date and time the list was last updated.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
rows@next String An input used internally to determine whether to get the next page of results.



Tags

Query Tags for a Marketo organization.

Columns

Name Type Filterable Description
TagType [KEY] String True The name/type of the tag.
ApplicableProgramTypes String The types of program that the tag is used for.
Required Boolean The date and time the channel was created.
AllowableValues String The date and time the channel was last updated.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
rows@next String An input used internally to determine whether to get the next page of results.