CData Python Connector for Sage X3 Cloud

Build 26.0.9770

Columns

The available columns for any given table are fetched from a system table called "sys_tablecolumns". A specific table name is provided in the WHERE criteria to restrict the table from which the column information is fetched:

import cdata.sagex3cloud as mod
conn = mod.connect("URL=https://x3server/;OAuthAccessTokenUrl=https://auth-domain/oauth/token;OAuthClientId=your_client_id;OAuthClientSecret=your_client_secret;Audience=https://api-audience;XAPIKey=your_api_key;Folder=SEED;")
cur = conn.cursor()
cmd = "SELECT * FROM sys_tablecolumns WHERE TableName = 'Customer'"
cur.execute(cmd)
rs = cur.fetchall()
for row in rs:
	print(row)

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9770