Skip to main content
Nintex Community Menu Bar
Question

create rows for UI only model with salesforce Id.

  • July 11, 2024
  • 1 reply
  • 6 views

Forum|alt.badge.img

I have an apex class which returns a list of sObject and i am creating a row to a UI only model. I want to create the row with salesforce Id which is returned from myList. How can I achieve that?
Below is my code.

$.each(myList,function(i,row){
            var row1 = model.createRow({
                additionalConditions: [
                    { field: ‘Id’, value: row.Id},
                 ]
                });
        });
       

1 reply

annajosephine
Nintex Employee
Forum|alt.badge.img+18
  • Nintex Employee
  • July 11, 2024

Hi Sameer, what version of Skuid are you using?  

You should be able to achieve this by first creating the new rows, and then using the updateRows model api to update those rows with the Id value.