Friday, 9 February 2018

Apex Method to convert json format records into List of Sobject Records format


The following method will be useful when you are supplying list of records as input to the Apex Method.

Note:
1. Passing List of Sobjects to the Apex Method from the Lightning component is not allowed.
2. you should convert Sobject list by using JSON.stringify(yourSobjects) and the Apex method input should be string.
3. The following method will be useful to convert above json fromat string into List<Sobject>

Please find the following Code -

Thank You,
http://onlinetraining.srinusfdc.com/

2 comments:

  1. My spouse and I love your blog and find almost all of your post’s to be just what I’m looking for.
    safety course in chennai
    nebosh course in chennai

    ReplyDelete
  2. Great Article
    Cloud Computing Projects


    Networking Projects

    Final Year Projects for CSE


    JavaScript Training in Chennai

    JavaScript Training in Chennai

    The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

    ReplyDelete