Hot answers tagged

2

First of all, if you do a .getName() that will give you the Name (api) of the field, not the label. As you can see in your screenshot, you get things like LastName instead of Last Name (with a space) If you want the real label, you should be using .getLabel() in combination with the .getName() (to be able to map the field to its label). If you use the ...


1

I'd refactor your code so that you don't need to worry about it. Yes, you can indeed make the columns dynamic, you just need a mechanism for that. Here's a possible solution: public with sharing class ObjectController { public class Column { @AuraEnabled public String fieldName; @AuraEnabled public String fieldLabel; @AuraEnabled ...


1

I build an app that does something similar - it passes in 200 records at at a time in a JSON array to be processed, and many of those records have long text descriptions as part of the data so are too big for a long text field. So we have a staging object with a fields on it like status, type, and then the inbound request comes to a custom Apex REST endpoint ...


Only top voted, non community-wiki answers of a minimum length are eligible