Connect to custom NetSuite RESTlets

Comments

11 comments

  • Steve Klett Strategic Partner
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Top Contributor
    Awesome Follow-up
    Engaged

    I've been unable to figure out how to pass parameters to the RESTlet. I've tried adding them to the HTTP headers, to the request body and to the URL as params. My RESTlet isn't seeing any of the parameters.

    Is it possible?

    0
  • Stephen Brandt Documentation Manager Community moderator
    Celigo University Level 4: Legendary
    Engaged
    Great Answer
    Top Contributor

    Hi, Steve Klett. Thanks for sharing your results here. 

    If you haven't tried this yet, as a start, can you turn on connection debugging and verify that the parameters are getting sent correctly from the integrator․io side? 

    ===================
    Steve Klett, updated 3/15/2022 from a developer lead asked a similar question:

    At present, query parameters are supported only for GET calls.
     
    You can pass them as an object in body.query.
    0
  • Aleks Frolovs Referral Partner
    Celigo University Level 4: Legendary
    Engaged

    I'm not sure why this over complication is required? The standard HTTPS request should handle call to RESTlet. 

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Aleks Frolovs for now this is the only way to connect to restlets. However, our April release should include an update to our generic HTTP connector that allows OAuth 1 with realm. Currently, we have OAuth 1 for generic HTTP connections, but don't have the realm field available. Stayed tuned!

    cc Bhavik Shah

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Aleks Frolovs, I have this working in my environment. Can you screenshot your setup? Additionally, we have office hours today. If you can join, then we can check it out together. https://zoom.us/meeting/register/338c30f6ce7573eacde7dc3c8da9331e
    https://docs.celigo.com/hc/en-us/articles/360045798291

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Aleks Frolovs what's the error you are getting? Also, I assume the connection id you are using is a valid NetSuite connection id in Celigo? Does authenticated user's role for the NetSuite connection in Celigo have access to the script deployment?

    0
  • Aleks Frolovs Referral Partner
    Celigo University Level 4: Legendary
    Engaged

    Thank you for helping me to sort out the issue. I should have contacted you earlier. 

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Aleks Frolovs no problem. In case others come here in the future, the connection id in the relative url needs to be the NetSuite connection id.

    Relative URI: Enter the proxy URI for your NetSuite connection, referencing your NetSuite connection ID that you copied above, in the format, /v1/connections/<id>/proxy.

    0
  • Steve Klett Strategic Partner
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Top Contributor
    Awesome Follow-up
    Engaged

    ... our April release should include an update to our generic HTTP connector that allows OAuth 1 with realm. Currently, we have OAuth 1 for generic HTTP connections, but don't have the realm field available. Stayed tuned!

    Tyler Lamparter I've been eagerly awaiting the April release so we can call RESTlets without the complexity of what's described in this document. I was just reviewing the release notes from Yesterday and I don't see anything about the realm added to the HTTP connector.

    Is it simply not mentioned because it's minor or is it not making it in the April release?

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Steve Klett yes it is making into April release. The only change is to add realm parameter into OAuth 1 authentication so it may just not be added to the release notes. I am working with the doc team to get a new article for connecting to SuiteTalk apis (in order to run SuiteQL queries) and we can also update this doc to reflect the new option for RESTlets. In case you're curious, here is the setup I have in QA.

    0
  • Steve Klett Strategic Partner
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Top Contributor
    Awesome Follow-up
    Engaged

    Hi Tyler Lamparter Nice! I am curious so thank you for sharing the QA shots. I'm looking forward to using it when released. I've got a project that will make immediate use of it.

    0

Please sign in to leave a comment.