Access context row within javascript after row action

  • 1
  • Question
  • Updated 3 years ago
  • Answered
I have a javascript function that creates a new row in an another model within a popup. In order to correctly create this record I need to access the current context row for the popup within my javascript code. I have searched online for this but could not find a solution. I would appreciate your help on this. 
Photo of Salesforce Dev007

Salesforce Dev007

  • 308 Points 250 badge 2x thumb

Posted 3 years ago

  • 1
Photo of Salesforce Dev007

Salesforce Dev007

  • 308 Points 250 badge 2x thumb
Found the answer. This can be done in a snippet as below:

var params = arguments[0],
    rowInContext = params.row;
Photo of Emily Davis

Emily Davis, Employee

  • 3,502 Points 3k badge 2x thumb
Glad you figured it out, Sukhpreet!
(Edited)