Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Access to model objects

    Posted 06-05-2025 18:01

    Herlander_Pires | 2017-08-09 09:19:24 UTC | #1

    Hello,

    When i try to instantiate a body like var body = new platformClient.UserPresence(); I got the error Uncaught TypeError: platformClient.UserPresence is not a constructor

    In the source code it says in the params @param {module:purecloud-platform-client-v2/model/UserPresence} body User presence

    But i can't find that in the JS SDK.

    Thank you Best Regards.

    Herlander Pires


    tim.smith | 2017-08-09 13:41:40 UTC | #2

    Sorry about that. I'll clean up that reference. Models don't exist in the JavaScript SDK because they add several megabytes to the package size and provide virtually no value. To determine the body's schema, look at the API Resources documentation.


    Herlander_Pires | 2017-08-10 11:21:33 UTC | #3

    Ok

    Thanks. Best regards.

    Herlander Pires


    system | 2017-09-10 11:21:37 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 1660