That role comes from the Head in the Cloud Uploader bundle, as shown here in this video: th-cam.com/video/V_SUL2bm55Y/w-d-xo.htmlsi=xT7-6WwhXSJ7Q_mV&t=515
Robin thank you so much for your videos! I'm learning a lot thanks to you and I hope it makes me better in my role as a solutions architect (not as a coder directly). If you had a Udemy course I would definitely buy it. I'm trying to see how I can intercept a po coming in from an external system and check if any items within are inventory items. If you ever want to make a video on how to extend such integrations with NetSuite, maybe that can be a usecase :) Cheers from Vancouver.
Thanks Robin. I have followed your steps and have been able to set up OAuth 2.0 successfully. Is there a way to automate this process(all the actions till getting the final token) using javascript? I'm looking forward to hearing back from you.
For coded solutions, you can check the expiration time of the token and automatically renew it when it expires. In a scenario where we just have a tool like Postman, we have to re-send the refresh token (step 3 of the authorization code grant flow) every so often to get a new access token. If/when the refresh token finally expires, you have to re-do step 1 (authorization from the browser) to get a new code, and then use that code in step 2 to get a new refresh token.
@@hitc-netsuite So would this needed to be coded on the the system that is trying to access the external url of the Restlet or is it something I could build into the Restlet itself? I saw you had a video about accessing the OAuth2.0 endpoint, but that was for user events and wasn't sure if it would behave differently. Thank you for any advice.
Hey Robin, In the tutorial, you are doing a demo using postman. I actually tried using the browser to do this but it seems like it is blowing me a CORS error. I just want to ask if the only way to fix this is to contact netsuite and ask them to allow our domain to make the request or is there any work around when you try to use the browser?
Hey Jobeth! I haven't ever run into that myself. But from a quick search, it seems like the way to get around it is to include certain headers. Basically, if you can get it to work in Postman, then you can replicate the headers that work in Postman in your browser, and then it should work the same.
Hi Robin, Thank you for your assistance. I'm facing an issue where the refresh token expires after 7 days, requiring the user to re-authenticate in NetSuite. Is there a way to configure it so that the user only needs to authenticate once?
That's a great question. I would probably use TBA (like we do in our NetSuite uploader, see my other videos) because it is a lot simpler. But to demonstrate OAuth 2.0 for a script, I will see if I can make a new video this month for that! Unless you find that a good video for that already exists - let me know.
I need to do the web service with Android Studio. what is needed. How would it be with tokens, how does OAuth work or how do I load the library into my project? HELP ME ROBIN
Hello sir, I am trying to follow the same steps but on the first step itself I am getting the following error: 'Invalid login attempt.' What could be the reason? Thanks!
Me too had the same issue, I had fixed with the below steps. List>Employees>Employees select your name. On the tabs navigate to Access select Global Permission subtab in permission column select "Integration Application" and give full Level of access.
Hi Robin, this video is simply amazing and i followed every step you mentioned in the video. Tho i am getting some error for invalid login attempt and i am confused that why it is happening. Also i am using sandbox for now. Can you please help me out ? Thanks In Advance
If you have the error "invalid login attempt" when following step one, make sure your redirect URI is exactly the same on the integration record as to the one you use in the URL. Mine had a / at the end (thanks google chrome), which made it error.
necesito hacer el web service con Android Studio. que se necesita. como seria con los token como funciona OAuth o como cargo la libreria a mi proyecto?AYUDAME ROBIN
Oftentimes you can do this by calculating the exact time when the token will expire, and then code your integration to only get a new token when it actually needs to.
I'm actually working on a new video now that will demonstrate how to do this from a script. I should be able to post the video in by the end of the month!
I am getting "The request could not be understood due to malformed syntax" attempting my step 1 token. I triple checked my URL is correct.. ever seen this before?
Thanks Robin, very useful tutorial... even right down to the Delete text/plain glitch... nice work
Thank You Sir! Very informative video👍
Thank You Robin..it was very helpful
Where can I find more information on how to set up the role "HITC Uploader" mentioned in the video ? Thanks !
That role comes from the Head in the Cloud Uploader bundle, as shown here in this video: th-cam.com/video/V_SUL2bm55Y/w-d-xo.htmlsi=xT7-6WwhXSJ7Q_mV&t=515
Robin thank you so much for your videos! I'm learning a lot thanks to you and I hope it makes me better in my role as a solutions architect (not as a coder directly). If you had a Udemy course I would definitely buy it. I'm trying to see how I can intercept a po coming in from an external system and check if any items within are inventory items. If you ever want to make a video on how to extend such integrations with NetSuite, maybe that can be a usecase :) Cheers from Vancouver.
Hi Robin, I followed exact what you said but in step-2 after providing the code , I'm getting error like : 400 ( error : "invalid_grant" )
Thanks Robin. I have followed your steps and have been able to set up OAuth 2.0 successfully. Is there a way to automate this process(all the actions till getting the final token) using javascript?
I'm looking forward to hearing back from you.
I'm afraid I don't know!
I keep getting invalid login attempt with the detail in NetSuite being "ConsumerKeyUnknown"
This was a big help for me to test my restlet, but I was wondering how do you deal with OAuth2.0 tokens expiring?
For coded solutions, you can check the expiration time of the token and automatically renew it when it expires. In a scenario where we just have a tool like Postman, we have to re-send the refresh token (step 3 of the authorization code grant flow) every so often to get a new access token. If/when the refresh token finally expires, you have to re-do step 1 (authorization from the browser) to get a new code, and then use that code in step 2 to get a new refresh token.
@@hitc-netsuite So would this needed to be coded on the the system that is trying to access the external url of the Restlet or is it something I could build into the Restlet itself? I saw you had a video about accessing the OAuth2.0 endpoint, but that was for user events and wasn't sure if it would behave differently.
Thank you for any advice.
@@bookoo9755 It would definitely need to be coded into the system that is trying to access the RESTlet.
Hey Robin, In the tutorial, you are doing a demo using postman. I actually tried using the browser to do this but it seems like it is blowing me a CORS error. I just want to ask if the only way to fix this is to contact netsuite and ask them to allow our domain to make the request or is there any work around when you try to use the browser?
Hey Jobeth! I haven't ever run into that myself. But from a quick search, it seems like the way to get around it is to include certain headers. Basically, if you can get it to work in Postman, then you can replicate the headers that work in Postman in your browser, and then it should work the same.
Hi Robin,
Thank you for your assistance. I'm facing an issue where the refresh token expires after 7 days, requiring the user to re-authenticate in NetSuite. Is there a way to configure it so that the user only needs to authenticate once?
This seems to be a new security requirement within the last couple of months and no - I haven't found any way around it yet!
@Robin - How would you setup OAuth 2.0 for an automated script, as opposed to doing it manually in Postman? Would you, or would you use TBA?
That's a great question. I would probably use TBA (like we do in our NetSuite uploader, see my other videos) because it is a lot simpler. But to demonstrate OAuth 2.0 for a script, I will see if I can make a new video this month for that! Unless you find that a good video for that already exists - let me know.
It could be better if you could showed the hitc configuration part as well
I need to do the web service with Android Studio. what is needed. How would it be with tokens, how does OAuth work or how do I load the library into my project? HELP ME ROBIN
Hello sir, I am trying to follow the same steps but on the first step itself I am getting the following error: 'Invalid login attempt.' What could be the reason? Thanks!
Me too had the same issue, I had fixed with the below steps.
List>Employees>Employees select your name.
On the tabs navigate to Access select Global Permission subtab in permission column select "Integration Application" and give full Level of access.
Hi Robin, this video is simply amazing and i followed every step you mentioned in the video. Tho i am getting some error for invalid login attempt and i am confused that why it is happening. Also i am using sandbox for now. Can you please help me out ? Thanks In Advance
If you have the error "invalid login attempt" when following step one, make sure your redirect URI is exactly the same on the integration record as to the one you use in the URL. Mine had a / at the end (thanks google chrome), which made it error.
Omg mate, thank you sooo much. That's fixed my issue. That was so frustrating. thank you thank you :)
OMG, Thank you for pointing it out
I've been going through hair-pulling searches cause of this
necesito hacer el web service con Android Studio. que se necesita. como seria con los token como funciona OAuth o como cargo la libreria a mi proyecto?AYUDAME ROBIN
how will the external application check if the token is not expired, or do I need to refresh with every request ?
Oftentimes you can do this by calculating the exact time when the token will expire, and then code your integration to only get a new token when it actually needs to.
shows 'invalid_grant'. can you share your postman collection?
Are you able to resolve it?
@@hriteshharichandan2872 i couldnt
how to Develop Scripts to call Restlet using 2.0 Auth ?
I'm actually working on a new video now that will demonstrate how to do this from a script. I should be able to post the video in by the end of the month!
I am getting "The request could not be understood due to malformed syntax" attempting my step 1 token. I triple checked my URL is correct.. ever seen this before?
nevermind - I had "restlet" instead of "restlests" in the url.. doh!
Download the project code here: www.headintheclouddev.com/code/restlet-demo-code.zip
daora