@shoaib Mehmood I am getting below error in the postman after setting the Authorization generated from the suitelet.Please help me "error": { "code": "INVALID_REQUEST", "message": "The request could not be understood by the server due to malformed syntax." }
Hi @surendranath, This issue is due to recent update in Netsuite Authentication. The example Shoaib shown us here is with SHA1 but in new release (2021.1) Netsuite is using SHA 256.
As of 2021.1 nesuite Rest service for roles is going to deprecate. Can you suggest a way to get users role info contains dataCenter Url info. Right Now I am calling Rest service Url using Credentials.
@@shobipersonal That will really help. Please let me know if you can help me online in this process for a few minutes to have it working. I currently have an integration with netsuit from our product and I'm badly struck at invoking RESt services using TBA or otherwise with client-credentials approach either...
hello @Shoaib Mehmood, sorry i want to ask basic question, is that consumer key, secret , token id and secret need to generate again every time we want to push data to netsuite with restlet?
@@shobipersonal thank you for your fast respose, so, i just meed to generate it again the way like in suitelet process? And it will be different result? Because when i trying to generate it again, the result is same oauth
@@shobipersonal oh i got it,, so correct me if im wrong, oauth_nonce is random string and oauth_timestamp is the current timestamp, so this 2 parameter will create oauth uniqe every time we generate it again?
Folks getting error ReferenceError: "CryptoJS" is not defined. (enc-base64-min.js#7), to resolve this issue please add the library files in following sequence : 1)- hmac-sha1.js 2)- enc-base64-min.js
Tried The suitelet to generate header every time this is showing invalid attempt. When tried through Postman Authorization header it worked. Even tried suitelet header still doesn't work
Also in 2020.1 I can see New fields in integration record. And in 2020.2 credential based calls have been depreciated. How can we use TBA authentication or OAuth 2.0 . For restlet calls ( from nesuite Context and from out of nesuite Context)
In 2020.2 you can call restlet from netsuite without any authentication if are already in Netsuite context, Oauth2.0 is not available for server to server connectivity yet. Have you watched this video i have explain oauth1.0 connectivity in this video, let me know what else you need. Thanks
Shoaib, you just saved me a LOT of time. I tried to implement TBA about a year ago, but couldn't figure it out. Went with NLAuth instead. Now that Netsuite has deprecated NLAuth, I *had* to figure out TBA today to make sure all our work scripts would start working again. I have a lot of scripts that use Google Sheets and pull data from Netsuite. With your source code, and video, I finally got it all working. THANK YOU! How can I send a bit of money your way?
Any thoughts as to why this would always return the Invalid Login Attempt error? In NetSuite it also shows the InvalidSignature error. I was testing your method from outside of NetSuite, with the same results. So, I tried following along exactly with yours, using the suitelet, and I still get the same error. Maybe something was broken with 2018.2, or maybe it does not work in sandbox? Any thoughts on where to go next? (Note it does work using Node.js, but I'm trying to avoid doing that).
Hi Charles, Thanks for checking this out. Please download the code again and just replace the suitelet file and then try , let me know if problem exists still.
Hey Shoaib, I just tried that. There was no change. I'm honestly wondering if this is an issue using the Sandbox or 2018.2. Since I've found other solutions similar to this, that people say are working for them. But, none of them show 2018.2 or sandbox usage. :/
I would have to install it (I never use it). What timezone are you in, & what times are you usually available? I'm in Central, and might have time this evening.
@@shobipersonal yes, I did, I'm using OAuth 2.0 but the problem is token always reset after 7 days and needs manually to create for the other token. I try many ways to make it automatic but not work
Hi , I have generated new Token Based Authentication Header , still in postman API giving response Your session has timed out. Please log in again.Is this ok?
Thanks for the video i am not able to still connect after watching and following your video from mulesoft do you have sometime to look at it and i like to explore other opp pls let me know
@@shobipersonal not able test There was an error connecting to rest.netsuite.com/app/site/hostine/restlet.nl?script=454&deploy=1&oauth_consumer_key=449ef9050c1a3aaa9893de7318db5e4e3db069788a49a28e885ca8d8ffa78ffa&oauth_token=079b3061b890e1772688c882690959b1d80bf2a47b558662b88033690f87e237&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1587137821&oauth_nonce=qDCmt5Tz500&oauth_version=1.0&oauth_signature=qotSMo4I+xXodTsB7dKRtuItpWs=.
Thank you.. that was wonderful explanation✌️
Great video Shoaib! Thanks for sharing.
So usefull video , thanks
Great, it worked for you.
How does this authentication string build can be done in external applciation, outside netsuite. Because mt REST url will be consumed outside Netsuite
@shoaib Mehmood I am getting below error in the postman after setting the Authorization generated from the suitelet.Please help me "error": {
"code": "INVALID_REQUEST",
"message": "The request could not be understood by the server due to malformed syntax."
}
Hi @surendranath,
This issue is due to recent update in Netsuite Authentication. The example Shoaib shown us here is with SHA1 but in new release (2021.1) Netsuite is using SHA 256.
As of 2021.1 nesuite Rest service for roles is going to deprecate. Can you suggest a way to get users role info contains dataCenter Url info.
Right Now I am calling Rest service Url using Credentials.
Shoaib, I'm using this process to invoke a rest web service .However, I always get invalid login attempt 401 error. Any pointers will be appreciated
That has little difference, I am planning a video on that soon.
@@shobipersonal That will really help. Please let me know if you can help me online in this process for a few minutes to have it working. I currently have an integration with netsuit from our product and I'm badly struck at invoking RESt services using TBA or otherwise with client-credentials approach either...
@@aslamparveez Ping me at linked-in tomorrow, will try to spare some time. www.linkedin.com/in/shoaib-mehmood-56909310/
Hey Shoaib Mehmood am getting Invalid login attemt. {
"error": {
"code": "INVALID_LOGIN_ATTEMPT",
"message": "Invalid login attempt."
}
}
Please help in this.
hello @Shoaib Mehmood, sorry i want to ask basic question, is that consumer key, secret , token id and secret need to generate again every time we want to push data to netsuite with restlet?
No, you just use these first time, you need these to generate signature
@@shobipersonal thank you for your fast respose, so, i just meed to generate it again the way like in suitelet process? And it will be different result? Because when i trying to generate it again, the result is same oauth
@@faridariamaulana2670 it should not same, because timestamp and nonce is different.
@@shobipersonal oh i got it,, so correct me if im wrong, oauth_nonce is random string and oauth_timestamp is the current timestamp, so this 2 parameter will create oauth uniqe every time we generate it again?
@@faridariamaulana2670 exactly : ) You got it.
Folks getting error ReferenceError: "CryptoJS" is not defined. (enc-base64-min.js#7), to resolve this issue please add the library files in following sequence :
1)- hmac-sha1.js
2)- enc-base64-min.js
sorry, im asking again :D, how to call this lib in your suitelet script :D
The filebin link is out of date. Would you mind to post again?
Thank you Man..
Tried The suitelet to generate header every time this is showing invalid attempt. When tried through Postman Authorization header it worked. Even tried suitelet header still doesn't work
Are you using your code OR the code i had shared ?
Hi Shoaib, I am using my code
and it is not working. I put the corresponding values as per videos
Let me know if we connect via skype.
Also in 2020.1 I can see New fields in integration record. And in 2020.2 credential based calls have been depreciated. How can we use TBA authentication or OAuth 2.0 . For restlet calls ( from nesuite Context and from out of nesuite Context)
In 2020.2 you can call restlet from netsuite without any authentication if are already in Netsuite context, Oauth2.0 is not available for server to server connectivity yet. Have you watched this video i have explain oauth1.0 connectivity in this video, let me know what else you need. Thanks
@@shobipersonal thanks for your quick response....👍
You are the best!
hi can you tell me how to upload libraries to netsuite?) please(пожалуйста:))
Hello @Shoaib Mehmood,
Post man giving this error :
{
"error": {
"code": "INVALID_LOGIN_ATTEMPT",
"message": "Invalid login attempt."
}
}
This means your credentials are not correct, OR the token is expired
Shoaib, you just saved me a LOT of time. I tried to implement TBA about a year ago, but couldn't figure it out. Went with NLAuth instead. Now that Netsuite has deprecated NLAuth, I *had* to figure out TBA today to make sure all our work scripts would start working again. I have a lot of scripts that use Google Sheets and pull data from Netsuite. With your source code, and video, I finally got it all working. THANK YOU! How can I send a bit of money your way?
Oh that is great that it worked for you. My youtube videos are totally free :) Enjoy. You made my day :).
Any thoughts as to why this would always return the Invalid Login Attempt error? In NetSuite it also shows the InvalidSignature error. I was testing your method from outside of NetSuite, with the same results. So, I tried following along exactly with yours, using the suitelet, and I still get the same error. Maybe something was broken with 2018.2, or maybe it does not work in sandbox? Any thoughts on where to go next? (Note it does work using Node.js, but I'm trying to avoid doing that).
Hi Charles, Thanks for checking this out. Please download the code again and just replace the suitelet file and then try , let me know if problem exists still.
Hey Shoaib, I just tried that. There was no change. I'm honestly wondering if this is an issue using the Sandbox or 2018.2. Since I've found other solutions similar to this, that people say are working for them. But, none of them show 2018.2 or sandbox usage. :/
Let me know if you could connect on skype, join me at skypeid : smehmoodskype
I would have to install it (I never use it). What timezone are you in, & what times are you usually available? I'm in Central, and might have time this evening.
HI. Did you find a fix to the authentication error? I'm getting the same thing.
Thank you so much.
hello Shoaib, if I use REST API instead of REST, does its work?
Hi Nguyen, in theory , yes. Have you checked Netsuite bundle of Postman calls for rest APIs ?
@@shobipersonal yes, I did, I'm using OAuth 2.0 but the problem is token always reset after 7 days and needs manually to create for the other token. I try many ways to make it automatic but not work
I got this error on the suitlet:
ReferenceError: "CryptoJS" is not defined. (enc-base64-min.js#7)
Add library files in following sequence :
1)- hmac-sha1.js
2)- enc-base64-min.js
Hi , I have generated new Token Based Authentication Header , still in postman API giving response Your session has timed out. Please log in again.Is this ok?
in Postman it happens some time, no need to worry if it is working on second attempt.
@@shobipersonal At second time also it is giving same message. And one another thing is can I do insert operation using restlet api
If you are talking about Suitetalk Restlet API, it is in beta currently but i believe it allows to insert data via post call.
Would love to see a similar example with OpenID Connect
Will try to spare time for that.
@@shobipersonal I got it working today, let me know if I can help.
Great video Shoaib! Please share this link again for me. I need this one
Thanks, Which link ?
Hello,It is saying No Authorization header , can u please resolve.
How could we connect , let me know if you can connect via skype : my skypeid is smehmoodskype
Not able to download the file from Filebin Error: "This bin expired 4 days ago."
Please download from this link : drive.google.com/file/d/1HC6nCJjm8qCOQiwffgHJvJqMB_sNNkkp
Thanks you
Thanks for the video i am not able to still connect after watching and following your video from mulesoft do you have sometime to look at it and i like to explore other opp pls let me know
What error are you getting ?
@@shobipersonal not able test There was an error connecting to rest.netsuite.com/app/site/hostine/restlet.nl?script=454&deploy=1&oauth_consumer_key=449ef9050c1a3aaa9893de7318db5e4e3db069788a49a28e885ca8d8ffa78ffa&oauth_token=079b3061b890e1772688c882690959b1d80bf2a47b558662b88033690f87e237&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1587137821&oauth_nonce=qDCmt5Tz500&oauth_version=1.0&oauth_signature=qotSMo4I+xXodTsB7dKRtuItpWs=.
@@arvindshanker join me at smehmoodskype
Shoaib Mehmood sorry did not see your message
Does this still work? I keep getting a `Your session has timed out.`
Yes it should work, please check your credentials, I will upload a simpler version for Token Based Testing Soon
@@shobipersonal Thanks for the quick response
@@shobipersonal Also, are you familiar with PHP?
@@shobipersonal I double checked the credentials and it's still telling me that the session has timed out
It is working. But, I need a single token for unlimited requests is it possible?
Okay, I got it i was not familiar with OAuth authorization. now it's working perfectly thanks nice video.
Can you please share the script that you deployed on NetSuite?
drive.google.com/file/d/1HC6nCJjm8qCOQiwffgHJvJqMB_sNNkkp/view
Hi thank you for the guide. can you just please tell me how to add libraries to Netsuite? thank you
Please refer Netsuite help , SuiteCloud--> SuiteScript section
@@shobipersonal hi yeap i already solved it. Thanks
can you please make a video on how to post data into the netsuite from external web application. if anyone know please reply me.. thank you
stackoverflow.com/questions/19253201/passing-html-form-data-to-a-netsuite-form
Hello ..could u please give me the content that are using in restlet api
Which contents, are you asking for code ?
@@shobipersonal how u created restlet api?
{
"error": {
"code": "INVALID_LOGIN_ATTEMPT",
"message": "Invalid login attempt."
}
}
It is saying No Authorization header , can u please resolve
can you share your code in zip file, join me at skype : smehmoodskype
@@shobipersonal any other medium other than skype
@@shravankulkarni1970 What channel we could use for screen share , i believe you are using my code and using your credentials , right ?