import cdata.dynamics365 as mod
conn_str = (
'OrganizationUrl=https://dddddd.crm4.dynamics.com;'
"OAuthSettingsLocation=/home/ddddddv.txt;"
'InitiateOAuth=REFRESH;'
'Edition=Sales;'
'IncludeLookUpLogicalName = true;'
)
conn = mod.connect(conn_str)
try:
cursor = conn.cursor()
cursor.execute("""
UPDATE table1
SET colum1 = 'sdsdds0299e3'
WHERE A = 110 AND B = 0
""")
# Get column names from description
columns = [col[0] for col in cursor.description]
print("Columns in gfwi_projects:")
for col in columns:
print(col)
finally:
cursor.close()
conn.close()
column 1 is a lookup column which refers to column 2 of table 2. when i run the python query. there is an error : column1 could not be updated. This column is read-only. please help

