Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
OAuth PowerShell RESTlet Working Script Example
I have worked long and hard on this, enjoy.
################################################## #################
#
# Sample_Netsuite_OAuth Script Using PowerShell.
# Created by Bob Caputo and Joshua Tellander.
# Use and revise as needed.
# No warranty or license is included.
# We will attempt to answer questions,
# we do not guarantee answers in a timely
# manner if at all.
#
# NetSuite declined to help because it is a
# PowerShell script and therefore
# "out of our scope", per service case.
#
# Have fun!!!!!!!
#
################################################## #################
[Reflection.Assembly]::LoadWithPartialName("System.Security")
[Reflection.Assembly]::LoadWithPartialName("System.Net")
[Reflection.Assembly]::LoadWithPartialName("System.Web")
[Reflection.Assembly]::LoadWithPartialName("System.IO")
$oauth_consumer_secret = "xxx";
$oauth_token_secret = "xxx";