Salesforce Fact #678 | List in AuraEnabled methods

AuraEnabled methods cannot return of type List<SelectOption>. So, one of the option is to create a custom SelectOption class and return the data.

Reference: https://developer.salesforce.com/forums/?id=9062I000000IN7YQAW

Attached is the screenshot.



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow