This topic contains 3 replies, has 0 voices, and was last updated by jalarson1 8 years, 4 months ago.

  • Author
    Posts
  • #6352

    jalarson1

    I have a restlet that is being executed by a client script. I can’t figure out how to get the credentials of the currently logged in user. I tried using nlapiGetLogin(), but I get an error that this is not defined.
    This is a cached copy. Click here to see the original post.

  • #6353

    david.smith

    For a RESTlet called from a client hosted by NetSuite, you do not need to pass authentication information in the HTTP request. A check for a valid NetSuite session (JSESSIONID) occurs, and this existing session is reused.

  • #6354

    jalarson1

    I had read that but I couldn’t find an example of how to do that and I read some confusing information in the documentation so I thought I had to go through the authorization process once. Do you have an example of how to check for a valid JSESSIONID?

  • #6355

    jalarson1

    Nevermind! I figured it out. I wasn’t using a relative URL.

You must be logged in to reply to this topic.