Update a field on context row

  • 1
  • Question
  • Updated 3 years ago
  • Answered
I am trying to update a field on context row but it is not getting saved to database.

var seq = recordrow.Sequence__c-1;
var rowsToUpdate = {};
model.updateRow(recordrow, 'Sequence', seq);

Any thoughts?
Photo of Anjali Kumar

Anjali Kumar

  • 310 Points 250 badge 2x thumb

Posted 3 years ago

  • 1
Photo of Var_GBC


  • 146 Points 100 badge 2x thumb
Could you please provide me more information please ?
Photo of Chris Herr

Chris Herr

  • 436 Points 250 badge 2x thumb
I think it should be 

model.updateRow(recordrow, {'Sequence__c': seq}); 

maybe there are other Problems as well