LWC and complex parametersApex Prepopulated Email bodyNeed help writing test Apex ClasseHow to pass a variable's value of child visualforce page to a variable in parent visualforce using jsI am getting Exception FATAL_ERROR|System. LimitException: Maximum stack depth reached: 12Not able to escape quote in visualforce page?fault string: No such parameter param defined for the operation, please check the WSDL for the servicewhat is wrong in this codeNeed to add field in apex class email template - not workingWhy is my Approval Process instance not creating NewWorkItems?Is there any help/ hint while attending trailhead challenge?

Map list to bin numbers

How can I plot a Farey diagram?

What are the advantages and disadvantages of running one shots compared to campaigns?

Pristine Bit Checking

How can I add custom success page

Manga about a female worker who got dragged into another world together with this high school girl and she was just told she's not needed anymore

Typesetting a double Over Dot on top of a symbol

Is there a familial term for apples and pears?

Calculate Levenshtein distance between two strings in Python

How is it possible for user's password to be changed after storage was encrypted? (on OS X, Android)

What does "enim et" mean?

Why is my log file so massive? 22gb. I am running log backups

Are white and non-white police officers equally likely to kill black suspects?

What is it called when one voice type sings a 'solo'?

Is domain driven design an anti-SQL pattern?

Lied on resume at previous job

How to manage monthly salary

Is Social Media Science Fiction?

Is there a way to make member function NOT callable from constructor?

Ideas for 3rd eye abilities

Is it legal to have the "// (c) 2019 John Smith" header in all files when there are hundreds of contributors?

Can I legally use front facing blue light in the UK?

Does the average primeness of natural numbers tend to zero?

How could a lack of term limits lead to a "dictatorship?"



LWC and complex parameters


Apex Prepopulated Email bodyNeed help writing test Apex ClasseHow to pass a variable's value of child visualforce page to a variable in parent visualforce using jsI am getting Exception FATAL_ERROR|System. LimitException: Maximum stack depth reached: 12Not able to escape quote in visualforce page?fault string: No such parameter param defined for the operation, please check the WSDL for the servicewhat is wrong in this codeNeed to add field in apex class email template - not workingWhy is my Approval Process instance not creating NewWorkItems?Is there any help/ hint while attending trailhead challenge?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















I am trying to pass a list of objects to Apex from an LWC controller, and it looks like the Apex controller is getting the right sized list, but nothing is populated. Does anybody have any idea of what could be the problem?



Component JS code



refreshPeople() 
let xxx = [];

xxx.push(name : 'aaa', email : 'bbb');
xxx.push(name : '111', email : '222');

getPeople(peopleInfo: xxx)
.then(result =>
console.log('#### HERE');
this.allPeople2 = result;
)
.catch(error =>
//Error Handling goes here
);



Apex:



@AuraEnabled(cacheable = true)
public static List<EmailPerson> getPeople(List<EmailPerson> peopleInfo)
try

System.debug('####' + peopleInfo);

return null;
catch (Exception e)
throw new AuraHandledException(e.getMessage() + ' ' + e.getStackTraceString());



public class EmailPerson
@AuraEnabled
public Id id;
@AuraEnabled
public String name;
@AuraEnabled
public String email;
@AuraEnabled
public Id recordTypeId;
@AuraEnabled
public String recordTypeName;



Note: I've tried @wire, the behavior is the same. The list sees the two items, but none the values on the properties are assigned




<17:00:38:006 USER_DEBUG [20]|DEBUG|####(EmailPerson:[email=null, name=null], EmailPerson:[email=null, name=null])











share|improve this question




























    3















    I am trying to pass a list of objects to Apex from an LWC controller, and it looks like the Apex controller is getting the right sized list, but nothing is populated. Does anybody have any idea of what could be the problem?



    Component JS code



    refreshPeople() 
    let xxx = [];

    xxx.push(name : 'aaa', email : 'bbb');
    xxx.push(name : '111', email : '222');

    getPeople(peopleInfo: xxx)
    .then(result =>
    console.log('#### HERE');
    this.allPeople2 = result;
    )
    .catch(error =>
    //Error Handling goes here
    );



    Apex:



    @AuraEnabled(cacheable = true)
    public static List<EmailPerson> getPeople(List<EmailPerson> peopleInfo)
    try

    System.debug('####' + peopleInfo);

    return null;
    catch (Exception e)
    throw new AuraHandledException(e.getMessage() + ' ' + e.getStackTraceString());



    public class EmailPerson
    @AuraEnabled
    public Id id;
    @AuraEnabled
    public String name;
    @AuraEnabled
    public String email;
    @AuraEnabled
    public Id recordTypeId;
    @AuraEnabled
    public String recordTypeName;



    Note: I've tried @wire, the behavior is the same. The list sees the two items, but none the values on the properties are assigned




    <17:00:38:006 USER_DEBUG [20]|DEBUG|####(EmailPerson:[email=null, name=null], EmailPerson:[email=null, name=null])











    share|improve this question
























      3












      3








      3








      I am trying to pass a list of objects to Apex from an LWC controller, and it looks like the Apex controller is getting the right sized list, but nothing is populated. Does anybody have any idea of what could be the problem?



      Component JS code



      refreshPeople() 
      let xxx = [];

      xxx.push(name : 'aaa', email : 'bbb');
      xxx.push(name : '111', email : '222');

      getPeople(peopleInfo: xxx)
      .then(result =>
      console.log('#### HERE');
      this.allPeople2 = result;
      )
      .catch(error =>
      //Error Handling goes here
      );



      Apex:



      @AuraEnabled(cacheable = true)
      public static List<EmailPerson> getPeople(List<EmailPerson> peopleInfo)
      try

      System.debug('####' + peopleInfo);

      return null;
      catch (Exception e)
      throw new AuraHandledException(e.getMessage() + ' ' + e.getStackTraceString());



      public class EmailPerson
      @AuraEnabled
      public Id id;
      @AuraEnabled
      public String name;
      @AuraEnabled
      public String email;
      @AuraEnabled
      public Id recordTypeId;
      @AuraEnabled
      public String recordTypeName;



      Note: I've tried @wire, the behavior is the same. The list sees the two items, but none the values on the properties are assigned




      <17:00:38:006 USER_DEBUG [20]|DEBUG|####(EmailPerson:[email=null, name=null], EmailPerson:[email=null, name=null])











      share|improve this question














      I am trying to pass a list of objects to Apex from an LWC controller, and it looks like the Apex controller is getting the right sized list, but nothing is populated. Does anybody have any idea of what could be the problem?



      Component JS code



      refreshPeople() 
      let xxx = [];

      xxx.push(name : 'aaa', email : 'bbb');
      xxx.push(name : '111', email : '222');

      getPeople(peopleInfo: xxx)
      .then(result =>
      console.log('#### HERE');
      this.allPeople2 = result;
      )
      .catch(error =>
      //Error Handling goes here
      );



      Apex:



      @AuraEnabled(cacheable = true)
      public static List<EmailPerson> getPeople(List<EmailPerson> peopleInfo)
      try

      System.debug('####' + peopleInfo);

      return null;
      catch (Exception e)
      throw new AuraHandledException(e.getMessage() + ' ' + e.getStackTraceString());



      public class EmailPerson
      @AuraEnabled
      public Id id;
      @AuraEnabled
      public String name;
      @AuraEnabled
      public String email;
      @AuraEnabled
      public Id recordTypeId;
      @AuraEnabled
      public String recordTypeName;



      Note: I've tried @wire, the behavior is the same. The list sees the two items, but none the values on the properties are assigned




      <17:00:38:006 USER_DEBUG [20]|DEBUG|####(EmailPerson:[email=null, name=null], EmailPerson:[email=null, name=null])








      apex lightning-web-components






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 5 hours ago









      Sebastian KesselSebastian Kessel

      9,08862239




      9,08862239




















          1 Answer
          1






          active

          oldest

          votes


















          3














          After 2 hours of struggling, and only 5 minutes after posting, here is the answer:



          You have to add add get;set; explicitly for this to work. Changing my inner class to the below fixed the problem.



          public class EmailPerson 
          @AuraEnabled
          public Id id get;set;
          @AuraEnabled
          public String name get;set;
          @AuraEnabled
          public String email get;set;
          @AuraEnabled
          public Id recordTypeId get;set;
          @AuraEnabled
          public String recordTypeName get;set;






          share|improve this answer


















          • 2





            Its so weird that they expect this and just @auraEnabled is not sufficient .Will be curious for explanation from SFDC LWC Product team why do we need get and set on properties .

            – Mohith Shrivastava
            5 hours ago






          • 1





            I’d love to hear it as well. That’s 2 hours of the clients time down the drain.

            – Sebastian Kessel
            5 hours ago











          • This is exactly why I avoid wrappers and use the Map<String, Object> datatypes.

            – tsalb
            2 hours ago











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "459"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f257074%2flwc-and-complex-parameters%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3














          After 2 hours of struggling, and only 5 minutes after posting, here is the answer:



          You have to add add get;set; explicitly for this to work. Changing my inner class to the below fixed the problem.



          public class EmailPerson 
          @AuraEnabled
          public Id id get;set;
          @AuraEnabled
          public String name get;set;
          @AuraEnabled
          public String email get;set;
          @AuraEnabled
          public Id recordTypeId get;set;
          @AuraEnabled
          public String recordTypeName get;set;






          share|improve this answer


















          • 2





            Its so weird that they expect this and just @auraEnabled is not sufficient .Will be curious for explanation from SFDC LWC Product team why do we need get and set on properties .

            – Mohith Shrivastava
            5 hours ago






          • 1





            I’d love to hear it as well. That’s 2 hours of the clients time down the drain.

            – Sebastian Kessel
            5 hours ago











          • This is exactly why I avoid wrappers and use the Map<String, Object> datatypes.

            – tsalb
            2 hours ago















          3














          After 2 hours of struggling, and only 5 minutes after posting, here is the answer:



          You have to add add get;set; explicitly for this to work. Changing my inner class to the below fixed the problem.



          public class EmailPerson 
          @AuraEnabled
          public Id id get;set;
          @AuraEnabled
          public String name get;set;
          @AuraEnabled
          public String email get;set;
          @AuraEnabled
          public Id recordTypeId get;set;
          @AuraEnabled
          public String recordTypeName get;set;






          share|improve this answer


















          • 2





            Its so weird that they expect this and just @auraEnabled is not sufficient .Will be curious for explanation from SFDC LWC Product team why do we need get and set on properties .

            – Mohith Shrivastava
            5 hours ago






          • 1





            I’d love to hear it as well. That’s 2 hours of the clients time down the drain.

            – Sebastian Kessel
            5 hours ago











          • This is exactly why I avoid wrappers and use the Map<String, Object> datatypes.

            – tsalb
            2 hours ago













          3












          3








          3







          After 2 hours of struggling, and only 5 minutes after posting, here is the answer:



          You have to add add get;set; explicitly for this to work. Changing my inner class to the below fixed the problem.



          public class EmailPerson 
          @AuraEnabled
          public Id id get;set;
          @AuraEnabled
          public String name get;set;
          @AuraEnabled
          public String email get;set;
          @AuraEnabled
          public Id recordTypeId get;set;
          @AuraEnabled
          public String recordTypeName get;set;






          share|improve this answer













          After 2 hours of struggling, and only 5 minutes after posting, here is the answer:



          You have to add add get;set; explicitly for this to work. Changing my inner class to the below fixed the problem.



          public class EmailPerson 
          @AuraEnabled
          public Id id get;set;
          @AuraEnabled
          public String name get;set;
          @AuraEnabled
          public String email get;set;
          @AuraEnabled
          public Id recordTypeId get;set;
          @AuraEnabled
          public String recordTypeName get;set;







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 5 hours ago









          Sebastian KesselSebastian Kessel

          9,08862239




          9,08862239







          • 2





            Its so weird that they expect this and just @auraEnabled is not sufficient .Will be curious for explanation from SFDC LWC Product team why do we need get and set on properties .

            – Mohith Shrivastava
            5 hours ago






          • 1





            I’d love to hear it as well. That’s 2 hours of the clients time down the drain.

            – Sebastian Kessel
            5 hours ago











          • This is exactly why I avoid wrappers and use the Map<String, Object> datatypes.

            – tsalb
            2 hours ago












          • 2





            Its so weird that they expect this and just @auraEnabled is not sufficient .Will be curious for explanation from SFDC LWC Product team why do we need get and set on properties .

            – Mohith Shrivastava
            5 hours ago






          • 1





            I’d love to hear it as well. That’s 2 hours of the clients time down the drain.

            – Sebastian Kessel
            5 hours ago











          • This is exactly why I avoid wrappers and use the Map<String, Object> datatypes.

            – tsalb
            2 hours ago







          2




          2





          Its so weird that they expect this and just @auraEnabled is not sufficient .Will be curious for explanation from SFDC LWC Product team why do we need get and set on properties .

          – Mohith Shrivastava
          5 hours ago





          Its so weird that they expect this and just @auraEnabled is not sufficient .Will be curious for explanation from SFDC LWC Product team why do we need get and set on properties .

          – Mohith Shrivastava
          5 hours ago




          1




          1





          I’d love to hear it as well. That’s 2 hours of the clients time down the drain.

          – Sebastian Kessel
          5 hours ago





          I’d love to hear it as well. That’s 2 hours of the clients time down the drain.

          – Sebastian Kessel
          5 hours ago













          This is exactly why I avoid wrappers and use the Map<String, Object> datatypes.

          – tsalb
          2 hours ago





          This is exactly why I avoid wrappers and use the Map<String, Object> datatypes.

          – tsalb
          2 hours ago

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Salesforce Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f257074%2flwc-and-complex-parameters%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Disable / Remove link to Product Items in Cart Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How can I limit products that can be bought / added to cart?Remove item from cartHide “Add to Cart” button if specific products are already in cart“Prettifying” the custom options in cart pageCreate link in cart sidebar to view all added items After limit reachedLink products together in checkout/cartHow to Get product from cart and add it againHide action-edit on cart page if simple productRemoving Cart items - ObserverRemove wishlist items when added to cart

          Helsingin valtaus Sisällysluettelo Taustaa | Yleistä sotatoimista | Osapuolet | Taistelut Helsingin ympäristössä | Punaisten antautumissuunnitelma | Taistelujen kulku Helsingissä | Valtauksen jälkeen | Tappiot | Muistaminen | Kirjallisuutta | Lähteet | Aiheesta muualla | NavigointivalikkoTeoksen verkkoversioTeoksen verkkoversioGoogle BooksSisällissota Helsingissä päättyi tasan 95 vuotta sittenSaksalaisten ylivoima jyräsi punaisen HelsinginSuomalaiset kuvaavat sotien jälkiä kaupungeissa – katso kuvat ja tarinat tutuilta kulmiltaHelsingin valtaus 90 vuotta sittenSaksalaiset valtasivat HelsinginHyökkäys HelsinkiinHelsingin valtaus 12.–13.4. 1918Saksalaiset käyttivät ihmiskilpiä Helsingin valtauksessa 1918Teoksen verkkoversioTeoksen verkkoversioSaksalaiset hyökkäävät Etelä-SuomeenTaistelut LeppävaarassaSotilaat ja taistelutLeppävaara 1918 huhtikuussa. KapinatarinaHelsingin taistelut 1918Saksalaisten voitonparaati HelsingissäHelsingin valtausta juhlittiinSaksalaisten Helsinki vuonna 1918Helsingin taistelussa kaatuneet valkokaartilaisetHelsinkiin haudatut taisteluissa kaatuneet punaiset12.4.1918 Helsingin valtauksessa saksalaiset apujoukot vapauttavat kaupunginVapaussodan muistomerkkejä Helsingissä ja pääkaupunkiseudullaCrescendo / Vuoden 1918 Kansalaissodan uhrien muistomerkkim

          Adjektiivitarina Tarinan tekeminen | Esimerkki: ennen | Esimerkki: jälkeen | Navigointivalikko