Get field sets of an Object
Hi,I have defined field sets in a object, I use them in apex to on record creation get fields from other related objects and copy them into this object: Can I get the Field sets of this object in skuid?I’m trying to do a “reset record” to get all this fields and copy them again, replacing all the modifications to the record that the users have done of the original data.I have done it without the fieldsets, something like:$.each( selectedItems, function( i, item ) { var row = item.row; rowsToUpdate[ row.Id ] = { Total_Install_Charges_BC__c: row.Sales_Product__r.Total_Install_Charges_BC__c, Total_Monthly_Charges_BC__c: row.Sales_Product__r.Total_Monthly_Charges_BC__c, […] (rest of all the fields to copy, more than 60 fields) }; }); It’s working, the only problem is maintain the fields, every time I have to add or remove a field i have to edit the fieldset, go to the skuid snippet and remove/add the field form the rowsToUpdate.So, If I can get the fieldsets from sa