Settings in scripts causing "TypeError: Cannot read property 'mysetting' of undefined"

Comments

12 comments

  • Official comment
    Lucian Hymer Senior Solutions Consultant

    Hey Todd,

    Yes there's currently an issue where those settings aren't always loaded properly when doing previews. We will address this in a future release. To avoid this in the interim, you can add a couple lines to define default settings at the top of your script's main function, e.g.

    if(!options.settings.integration)
    options.settings.integration = {mysetting: false};
  • Todd Pierce
    Engaged
    Celigo University Level 2: Seasoned

    Thank you Lucian for the quick response!  I will keep that in mind

    0
  • Megan Callaghan
    Engaged
    Awesome Follow-up

    Lucian Hymer what about if you are getting this error on the v2 application. I don't have an option to add script changes. (TypeError: Cannot read property "2" from null). Thanks!

    0
  • Courtney Jordan Experience Strategy & Design Director Community moderator
    Celigo University Level 4: Legendary
    Awesome Follow-up
    Top Contributor

    Hi Megan Callaghan,

    I apologize for the delayed response - I'm checking with the SFNS v2 PM on this.

    0
  • Muneswara Thotakura NetSuite Integration Whiz Salesforce Integration Whiz Software Engineer
    Answer Pro
    Celigo University Level 4: Legendary

    Hey Hi, Megan Callaghan,
        If still not resolved reg: type error, Can you please explain in detail where exactly you were facing the issue for type error?  If possible can you share the screenshot of it?

    0
  • Josh Saterdalen

    Is there any update on when this might be resolved? My custom settings are not working either. I submitted a ticket (97390) to report this. 

    0
  • Megan Callaghan
    Engaged
    Awesome Follow-up

    Josh Saterdalen and Muneswara Thotakura and Courtney Jordan. We ended up upgrading to IO so not having this anymore. BUT... It was super painful migration from v2 to IO; we even lost some functionality (what?!). Happy to chat about that but not longer experiencing this problem. Wish you the best of luck!

    0
  • Courtney Jordan Experience Strategy & Design Director Community moderator
    Celigo University Level 4: Legendary
    Awesome Follow-up
    Top Contributor

    Hi Megan Callaghan,

    Thanks for letting us know how difficult is was to migrate. I'll ask the SFNSIO PM to follow up with you. Do you still feel that you are missing functionality that was important to you? If so, could you let us know what it was and how you used it? Thank you so much for your insights and for taking the time to help us understand how we can improve your experience!

    0
  • Megan Callaghan
    Engaged
    Awesome Follow-up

    Courtney Jordan Thanks. I've got the intentions to compile and send a summary to the product manager feedback email address once we've worked through our issues. 

    0
  • Courtney Jordan Experience Strategy & Design Director Community moderator
    Celigo University Level 4: Legendary
    Awesome Follow-up
    Top Contributor

    Hi Josh Saterdalen,

    Thanks for bringing this to our attention. We're looking into this and will respond with more information as soon as possible. 

    0
  • Courtney Jordan Experience Strategy & Design Director Community moderator
    Celigo University Level 4: Legendary
    Awesome Follow-up
    Top Contributor

    Hi Megan Callaghan,

    That would be wonderful. Thank you so much!

    0
  • Ricko Borja Technical Support Representative
    Great Answer
    Celigo University Level 4: Legendary

    Hi All,

    This is to confirm that the issue has been escalated to the Product Team for further troubleshooting. Will provide additional details to this thread when received.

    0

Please sign in to leave a comment.