Activity Forums Salesforce® Discussions How to convert a comma separated string into a list in Salesforce?

  • Nikita

    Member
    November 22, 2019 at 8:03 am

    Hi Yogesh,

    Salesforce provides String class which can be used to work with string. You can use the Split method

    For Example

    String alpha = 'A, B, C, D';
    
    List<String> lstAlpha = alpha.split(',');
    
    System.debug(lstAlpha);

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Pros & Cons of Lightning Component vs. 3rd party frameworks in Salesforce UI development

Video in

Nikita drops by to share his invaluable experience of using popular 3rd party frameworks in Salesforce. http://media.blubrry.com/salesforceway/audio.xmcdn.com/group42/M05/25/57/wKgJ81rXk6XjaZIAAU_I_KtprFM998.m4a