Skip to main content

I’m trying to build a custom OAuth2 Integration with Netsuite using the developer console.

Netsuite’s documentation requires a “state” parameter in the OAuth urls that is between 24 and 1024 characters long.

Zapier’s state parameter is… 23 characters long 🤦

Is there anyone who has successfully integrated with Netsuite who may have encountered this? I was hoping there’d be a way to override Zapier’s state param but I’m not seeing a way. Otherwise, is there perhaps another known way to do the integration (please don’t tell me I have to build a custom OAuth1 app).

Oh here is the Netsuite documentation. I’ve checked my audit logs in NS to confirm that I’m getting an “InvalidState” error which is what sent me down this rabbit hole. 

Per the Netsuite documentation on OAuth2, the state must be 24-1024 characters https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/subsect_158711892221.html

For reference, here’s where I am in the developer platform. To try and hack a workaround around this error I created a “randomNumber” formula to generate my own “state” param for the Step 1 Auth URL (see image at bottom). However, Zapier tells me that I’m not allowed to do that when I attempt to run the auth flow at the bottom of the zapier platform page.


 


Forget it. I went and built a private custom OAuth1 integration for Netsuite.  If there’s any interest from the community in obtaining such an integration, feel free to let me know in this thread. I’d consider petitioning my org to open-source the code if I were getting some outside interest.


Hi @AJM, great that you made it work.

 

We are building a Netsuite connector too. 

 

It will include most of the triggers and actions the endpoints available on the API.


@AJM I am interested if it’s something you can share. it’d be much appreciated.


@ben_waa I’ll see if I can petition my org to open source the code. I’ll have to do some work on my end to remove the proprietary/sensitive stuff 😄


@AJM We are also looking to build an integration for Netsuite and Zapier. We just moved to Netsuite a few weeks ago and are really wishing Zapier already had something! If your company is open to making it open source, we would 100% be interested in checking it out.


Hi @AJM , I would be interested in the open-source connector you are building as well. Any updates from your team on this? I really appreicate the support. 


Hi,

I’m currently working on integrating with NetSuite and could use some assistance. Specifically, I’m interested in understanding the configuration you used for NetSuite and how you set up the connection.

  1. Configuration Details: Could you please provide details on the NetSuite setup you used? This includes any settings, roles, permissions, or integration configurations. If possible, please share a general overview of your setup without including any personal or sensitive information about your organization.

  2. Connection Setup: How did you establish the connection between your application and NetSuite? Any specifics on the process or tools you used would be very helpful.

  3. JavaScript Usage: Did you use JavaScript for this integration? If so, could you share any relevant code or techniques you used for making the connection and sending data to NetSuite?

Any guidance or examples you can provide would be greatly appreciated!

Thank you!


Reply