@@ -119,6 +119,7 @@ def _run_walkthrough(client):
119119 "new_Quantity" : "int" ,
120120 "new_Amount" : "decimal" ,
121121 "new_Completed" : "bool" ,
122+ "new_Notes" : "memo" ,
122123 "new_Priority" : Priority ,
123124 }
124125 table_info = backoff (lambda : client .tables .create (table_name , columns ))
@@ -139,6 +140,7 @@ def _run_walkthrough(client):
139140 "new_Quantity" : 5 ,
140141 "new_Amount" : 1250.50 ,
141142 "new_Completed" : False ,
143+ "new_Notes" : "This is a multiline memo field.\n It supports longer text content." ,
142144 "new_Priority" : Priority .MEDIUM ,
143145 }
144146 id1 = backoff (lambda : client .records .create (table_name , single_record ))
@@ -191,6 +193,7 @@ def _run_walkthrough(client):
191193 "new_quantity" : record .get ("new_quantity" ),
192194 "new_amount" : record .get ("new_amount" ),
193195 "new_completed" : record .get ("new_completed" ),
196+ "new_notes" : record .get ("new_notes" ),
194197 "new_priority" : record .get ("new_priority" ),
195198 "new_priority@FormattedValue" : record .get ("new_priority@OData.Community.Display.V1.FormattedValue" ),
196199 },
@@ -217,9 +220,19 @@ def _run_walkthrough(client):
217220
218221 # Single update
219222 log_call (f"client.records.update('{ table_name } ', '{ id1 } ', {{...}})" )
220- backoff (lambda : client .records .update (table_name , id1 , {"new_Quantity" : 100 }))
223+ backoff (
224+ lambda : client .records .update (
225+ table_name ,
226+ id1 ,
227+ {
228+ "new_Quantity" : 100 ,
229+ "new_Notes" : "Updated memo field.\n Now with revised content across multiple lines." ,
230+ },
231+ )
232+ )
221233 updated = backoff (lambda : client .records .get (table_name , id1 ))
222234 print (f"[OK] Updated single record new_Quantity: { updated .get ('new_quantity' )} " )
235+ print (f" new_Notes: { repr (updated .get ('new_notes' ))} " )
223236
224237 # Multiple update (broadcast same change)
225238 log_call (f"client.records.update('{ table_name } ', [{ len (ids )} IDs], {{...}})" )
@@ -451,14 +464,14 @@ def _run_walkthrough(client):
451464 print ("11. Column Management" )
452465 print ("=" * 80 )
453466
454- log_call (f"client.tables.add_columns('{ table_name } ', {{'new_Notes ': 'string'}})" )
455- created_cols = backoff (lambda : client .tables .add_columns (table_name , {"new_Notes " : "string" }))
467+ log_call (f"client.tables.add_columns('{ table_name } ', {{'new_Tags ': 'string'}})" )
468+ created_cols = backoff (lambda : client .tables .add_columns (table_name , {"new_Tags " : "string" }))
456469 print (f"[OK] Added column: { created_cols [0 ]} " )
457470
458471 # Delete the column we just added
459- log_call (f"client.tables.remove_columns('{ table_name } ', ['new_Notes '])" )
460- backoff (lambda : client .tables .remove_columns (table_name , ["new_Notes " ]))
461- print (f"[OK] Deleted column: new_Notes " )
472+ log_call (f"client.tables.remove_columns('{ table_name } ', ['new_Tags '])" )
473+ backoff (lambda : client .tables .remove_columns (table_name , ["new_Tags " ]))
474+ print (f"[OK] Deleted column: new_Tags " )
462475
463476 # ============================================================================
464477 # 12. DELETE OPERATIONS
0 commit comments