Forum Discussion

ukenstor's avatar
ukenstor
New Member
2 years ago

Can not connect to NetSuite from Power Query but can connect with Postman

I am hoping someone can help me connect Power Query to NetSuite.  I am able to connect and run a query using Postman but when I try to duplicate the headers and body in Web.Contents, I get an error of Access to the resource is forbidden.  Any help is very much appreciated.  Here is my power query steps:

 

response = Web.Contents("https://12345.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=customscript_suiteapi&deploy=1", [Headers=[#"Content-Type"="application/json", Authorization="OAuth realm=""12345"",oauth_consumer_key=""CONSUMERKEY"",oauth_token=""OAUTHTOKEN"",oauth_signature_method=""HMAC-SHA256"",oauth_timestamp=""1705976764"",oauth_nonce=""dVnFfCDMbPW"",oauth_version=""1.0"",oauth_signature=""9hmTQRKY3cgVLLnsrdEcKhg1fDI8w81Wo367rR9f7HA%3D"""]]),

1 Reply