I have a loop that creates a parent row and a variable number of child rows. I would like to update the Predecessor field of the child row with the prior child row number (when more than one child row is added). I am having difficulty adding the 2 required arguments to the 'cell.object_value' object (object_type & predecessors).
for key, value in record.items():
new_cell = ss.models.Cell()
if k == 'Predecessors':
pred = []
pred_update = {}
pred_update['rowId'] = predecessor_row_id
pred_update['type'] = 'FS'
pred.append(pred_update)
row = ss.Sheets.get_row(sheet_id, predecessor_row_id)
new_cell.object_value = str(row.row_number)
new_cell.object_value.predecessors = pred
new_cell.object_type = "PREDECESSOR_LIST"
EDIT: The code runs without error however the information contained in the new_cell.object_value.predecessors argument is not being transferred into SmartSheet.