Is it possible to assign the Name and other fields to a reference field via updateRow? This is a similar problem to showing the Name of a record instead of the Id when created a new row. I’m trying to do this with updateRow and am not having success.
My code:
modelA.updateRow({Id: firstrow.Id},
{CheetahBMS__Serial__c: equipId,
CheetahBMS__Serial__r:
{
CheetahBMS__Serial__c: firstrow.CheetahBMS__dummysku__c,
CheetahBMS__Product_Group__r :
{
Id:equip,
Name: prodname
}
},
CheetahBMS__Rate_Type__c: modelD.data[resindex].CheetahBMS__Rate_Type__c,
CheetahBMS__Order_Line__c: resID}
);
I’m able to see in the dev console that these values are being updated in the model, but they are not showing up on my table until I save (which would happen even if I didn’t update the values).
I’m not trying to update the parent model values, just populate the table with the proper values.
Question
Assigning values in relationships through updateRow()
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
