@@ -120,6 +120,7 @@ def _run_walkthrough(client):
120120 "new_Quantity" : "int" ,
121121 "new_Amount" : "decimal" ,
122122 "new_Completed" : "bool" ,
123+ "new_Notes" : "memo" ,
123124 "new_Priority" : Priority ,
124125 }
125126 table_info = backoff (lambda : client .tables .create (table_name , columns ))
@@ -140,6 +141,7 @@ def _run_walkthrough(client):
140141 "new_Quantity" : 5 ,
141142 "new_Amount" : 1250.50 ,
142143 "new_Completed" : False ,
144+ "new_Notes" : "This is a multiline memo field.\n It supports longer text content." ,
143145 "new_Priority" : Priority .MEDIUM ,
144146 }
145147 id1 = backoff (lambda : client .records .create (table_name , single_record ))
@@ -192,6 +194,7 @@ def _run_walkthrough(client):
192194 "new_quantity" : record .get ("new_quantity" ),
193195 "new_amount" : record .get ("new_amount" ),
194196 "new_completed" : record .get ("new_completed" ),
197+ "new_notes" : record .get ("new_notes" ),
195198 "new_priority" : record .get ("new_priority" ),
196199 "new_priority@FormattedValue" : record .get ("new_priority@OData.Community.Display.V1.FormattedValue" ),
197200 },
@@ -218,9 +221,19 @@ def _run_walkthrough(client):
218221
219222 # Single update
220223 log_call (f"client.records.update('{ table_name } ', '{ id1 } ', {{...}})" )
221- backoff (lambda : client .records .update (table_name , id1 , {"new_Quantity" : 100 }))
224+ backoff (
225+ lambda : client .records .update (
226+ table_name ,
227+ id1 ,
228+ {
229+ "new_Quantity" : 100 ,
230+ "new_Notes" : "Updated memo field.\n Now with revised content across multiple lines." ,
231+ },
232+ )
233+ )
222234 updated = backoff (lambda : client .records .get (table_name , id1 ))
223235 print (f"[OK] Updated single record new_Quantity: { updated .get ('new_quantity' )} " )
236+ print (f" new_Notes: { repr (updated .get ('new_notes' ))} " )
224237
225238 # Multiple update (broadcast same change)
226239 log_call (f"client.records.update('{ table_name } ', [{ len (ids )} IDs], {{...}})" )
@@ -462,14 +475,14 @@ def _run_walkthrough(client):
462475 print ("11. Column Management" )
463476 print ("=" * 80 )
464477
465- log_call (f"client.tables.add_columns('{ table_name } ', {{'new_Notes ': 'string'}})" )
466- created_cols = backoff (lambda : client .tables .add_columns (table_name , {"new_Notes " : "string" }))
478+ log_call (f"client.tables.add_columns('{ table_name } ', {{'new_Tags ': 'string'}})" )
479+ created_cols = backoff (lambda : client .tables .add_columns (table_name , {"new_Tags " : "string" }))
467480 print (f"[OK] Added column: { created_cols [0 ]} " )
468481
469482 # Delete the column we just added
470- log_call (f"client.tables.remove_columns('{ table_name } ', ['new_Notes '])" )
471- backoff (lambda : client .tables .remove_columns (table_name , ["new_Notes " ]))
472- print (f"[OK] Deleted column: new_Notes " )
483+ log_call (f"client.tables.remove_columns('{ table_name } ', ['new_Tags '])" )
484+ backoff (lambda : client .tables .remove_columns (table_name , ["new_Tags " ]))
485+ print (f"[OK] Deleted column: new_Tags " )
473486
474487 # ============================================================================
475488 # 12. DELETE OPERATIONS
0 commit comments