I’m creating a new row on an empty model in JavaScript, and would like to retrieve the Salesforce Id of the newly created row. Here’s what I’m doing, “m” is the model:
m.createRow(); m.save(); r = m.getFirstRow(); alert(r.Id);
The new row is being saved to the Salesforce object successfully. However the Id I get is “1”, which I gather is a Skuid temporary Id for the row. How can I get the real Salesforce Id? I need it to use in other new rows that will reference my new row. I’ve tried doing this: skuid.model.updateData([m]); after my save thinking it might retrieve the Salesforce Id, but it throws this error : “Uncaught Model ‘m’ has unsaved changes. To update this model’s data, you must first save or cancel the changes.”
