Integrate Salesforce with Postman using connected app with OAuth 2.0 to perform API calls.

  Рет қаралды 46,677

Khan’s Tech Videos - SFDC

Khan’s Tech Videos - SFDC

Жыл бұрын

Learn to integrate Salesforce with Postman from scratch using connected app with OAuth 2.0 and perform API calls. Learn to create connected app with OAuth2.0 as authentication.
API endpoints reference doc
developer.salesforce.com/docs...
#salesforce #postman #integration #oauth2 #connectedapp

Пікірлер: 107
@codewith_Khan
@codewith_Khan Жыл бұрын
For more clarification and queries connect with me on Topmate topmate.io/shahbaz_khan16
@jeromemarfleet9524
@jeromemarfleet9524 2 ай бұрын
What the hell?!? This fixed it for me. OMG. I was scratching my head for so long
@codewith_Khan
@codewith_Khan 2 ай бұрын
Hi friend, I am glad that it was helpful. Please subscribe the channel if not done already. And here is another video on Postman Integration with Salesforce(automate session Id generation) kzfaq.info/get/bejne/f8CIbLGd1JzUiZ8.html Thanks
@jjdw1993
@jjdw1993 Жыл бұрын
This is the simplest and best video I've seen on how to set up and start using Postman with Salesforce. Thanks so much!
@codewith_Khan
@codewith_Khan Жыл бұрын
Always happy to help!!!
@codewith_Khan
@codewith_Khan 6 ай бұрын
Please subscribe the channel if not done already.
@B3llyg0d
@B3llyg0d 11 күн бұрын
This is a really useful video to understand setting up a Connected App and using Post to perform API calls into Salesforce. I had the issue where I was getting the error "Session_Id is expired". To resolve this I went to the Post settings and enabled 'Follow Authorization header', which then allowed me to insert an Account record.
@alic
@alic Ай бұрын
You have a great way of explaining complex things in simple terms my friend!
@codewith_Khan
@codewith_Khan Ай бұрын
Thank you friend!! Glad it was helpful
@mubafaw
@mubafaw 3 ай бұрын
This is high quality presentation tutorial, very clear and detailed. Thank you very much 😊👍
@codewith_Khan
@codewith_Khan 3 ай бұрын
You are welcome. I am glad it was helpful!! Please subscribe the channel if not done already!! Thanks
@navyashreer2443
@navyashreer2443 Жыл бұрын
How can we authenticate community portal user from rest resorce/api I m able to do admin rest service but any sugettions on portal side
@yetzeniamendoza8437
@yetzeniamendoza8437 10 ай бұрын
How find the url connect with Postman from SF and the password not understand?
@trippy_angel08
@trippy_angel08 10 ай бұрын
can you please explain how to get Access token from org?
@vipulukey828
@vipulukey828 Жыл бұрын
short, simple and on point!! out of many youtube vids on the topic, this one really helped me. Thanks! can you please make a video on How to login in postman again after session has expired? using the same existing token??
@codewith_Khan
@codewith_Khan Жыл бұрын
Hey buddy! sure I was thinking to make a video on the same topic that is to login again if the session has expired basically we generate a new access token every time the session gets expired for which there is an endpoint we need to hit. Thanks
@AllInOneStuff-Sriram
@AllInOneStuff-Sriram 13 күн бұрын
Hi, I was Generated Access token. I'm trying to post the request to create Sales Order but I'm getting Error, Session expired. I want to create Sales Order using RestApi With JSON. Can explain more about this.
@kartheekreddyadla472
@kartheekreddyadla472 11 ай бұрын
Hi, superb explanation. thanks for your video and please keep going like this.
@codewith_Khan
@codewith_Khan 11 ай бұрын
Always happy to help!!!
@codewith_Khan
@codewith_Khan 6 ай бұрын
Please subscribe the channel if not done already.
@monikaphalle9174
@monikaphalle9174 14 күн бұрын
How we can integrate netsuite and salesforce using netsuite restlet script?
@mayankmishra03
@mayankmishra03 10 ай бұрын
Actually creation of connected app option under App manager in lightning view as well so not sure if this just got added to lightening view after you posted this video or was always there.
@codewith_Khan
@codewith_Khan 10 ай бұрын
Hi, you are right when I created the video it was not available in lightning at that time however now you can access/create connected apps in lightning experience as well. Thank you
@caiocordeiro9014
@caiocordeiro9014 5 ай бұрын
Are you a god? Bro, thanks it was very helpful
@codewith_Khan
@codewith_Khan 5 ай бұрын
Hey bro glad it helped!! Please subscribe the channel if not done already.
@maximebai5609
@maximebai5609 Ай бұрын
cannot find "reset my security token" in SF, with "my settings", is that the same thing as "Initial Access Token for Dynamic Client Registration" in app manager?
@codewith_Khan
@codewith_Khan Ай бұрын
Hi, if your Profile/Permission set has Login IP Ranges defined then you wont be able to view Reset Security Token option. However if you have IP ranges defined then you dont need to append security token along with password for authentication only password will suffice! For your reference: help.salesforce.com/s/articleView?id=000386179&language=en_US&type=1#:~:text=Profile%20is%20Corrupted-,IP%20Restrictions%20in%20the%20Login%20IP%20Ranges,option%20will%20not%20be%20available.&text=In%20order%20for%20the%20Reset,have%20Login%20IP%20Ranges%20listed.
@rajd1781
@rajd1781 Жыл бұрын
Hey, I can see Connected App create option in lightning too. Isn't the same?
@codewith_Khan
@codewith_Khan Жыл бұрын
Good catch bro, that is correct however it has been made available in recent upgrade. Both ways are same basically.
@sanjaygohel7150
@sanjaygohel7150 2 ай бұрын
Thanks for the explaination
@codewith_Khan
@codewith_Khan 2 ай бұрын
Glat it was helpful! Please subscribe the channel if not done already!!
@sandeshvishwakarma4735
@sandeshvishwakarma4735 8 ай бұрын
Thanks , That's a good way , but i want to ask one thing here based on real life project scenario that is , security token get reset whenever the password expires or its changed. then the external application which is consuming security token will also have to make changes. Please share what is the solution for such scenario.
@codewith_Khan
@codewith_Khan 8 ай бұрын
Hi, Security Tokens are not required from Trusted IP addresses. You can make a single range of IP address 'trusted' in Setup > Security Controls > Network Access, also you can whitelist multiple ranges like 0.0.0.0 to 255.255.255.255 on a Profile too.
@prudvi1234
@prudvi1234 Жыл бұрын
End point successfully authenticated but when trying to "GET" , error is session expired or Invalid.
@codewith_Khan
@codewith_Khan Жыл бұрын
Hi, please make sure that after filling all the details kindly use the access token which is generated after successful authentication. Please watch this part of the video 10:30
@movzx0fh
@movzx0fh 7 ай бұрын
Very helpful! Thank you very much!!!
@codewith_Khan
@codewith_Khan 6 ай бұрын
Glad that it was helpful. Please subscribe the channel if not done already.
@julyanfigueredo8111
@julyanfigueredo8111 8 ай бұрын
Great video, helped a lot.
@codewith_Khan
@codewith_Khan 8 ай бұрын
Glad it helped
@codewith_Khan
@codewith_Khan 6 ай бұрын
Please subscribe the channel if not done already.
@vipulukey828
@vipulukey828 Жыл бұрын
Please make a video on How to create JSON (eg. {"inboundEvent":"STModel","inboundRequest":"Test"}) to test POST request with complex structure. Thanks!
@codewith_Khan
@codewith_Khan Жыл бұрын
Great suggestion!
@dannydiaz4782
@dannydiaz4782 6 ай бұрын
Hi Khan! Thank you for this! I have one question I keep getting the "Session_Id is expired" message and having to reset the token. What do I do so the token doesn't expire? Thanks again!
@codewith_Khan
@codewith_Khan 5 ай бұрын
Hi friend! Unfortunately we have to generate session Id after every interval of time just like we have to login to our Salesforce org every time with username and password if we have been logged off due to inactivity. However there is a process of automating this session Id generation for which I might have to prepare another video. Thanks for bringing this out. Please subscribe the channel if not done already.
@dannydiaz4782
@dannydiaz4782 5 ай бұрын
@@codewith_Khan do you happen to have any resource that assist me with this? I can't seem to get a refreshed token to the 3rd party. Thanks!
@codewith_Khan
@codewith_Khan 5 ай бұрын
@@dannydiaz4782 thanks for the follow up, recently I uploaded a new video on refreshing the access token automatically with a single click. Please find the link to the video below however there is still no way to auto refresh the access token. kzfaq.info/get/bejne/f8CIbLGd1JzUiZ8.html
@raghukhanninaikar1323
@raghukhanninaikar1323 3 ай бұрын
Best one Good to know
@codewith_Khan
@codewith_Khan 3 ай бұрын
Glad it helped!! Please subscribe the channel if not done already!
@user-pb3vt6hg2g
@user-pb3vt6hg2g 4 ай бұрын
I'm encountering an error: "Error: invalid_grant. Description: authentication failure." As a result, I'm unable to obtain an access token.
@codewith_Khan
@codewith_Khan 4 ай бұрын
Please make sure you have appended security token with password without separated by any special characters. Please subscribe the channel if not done already.
@Jliuify
@Jliuify 3 ай бұрын
im also getting this error. my password is "" no spaces. where is it in the salesforce doc to do this?
@SalesforceWithSweety
@SalesforceWithSweety 5 ай бұрын
I followed the same steps which you mentioned but i am getting this error: [{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}] Can you please help to solve this
@codewith_Khan
@codewith_Khan 5 ай бұрын
Hi! you will have to save your collection first and make sure you run the collection atleast once before making any api requests to salesforce.
@santiagovillamilpaz9903
@santiagovillamilpaz9903 6 ай бұрын
Hi! I have this error: "The requested resource does not exist" when sending the JSON.
@codewith_Khan
@codewith_Khan 5 ай бұрын
Hi make sure you are entering the correct end point Salesforce URL with proper formatting as these are standard API urls. If still you are facing the issue kindly share the URL you are trying to hit. Also, please subscribe the channel if not done already.
@santiagovillamilpaz9903
@santiagovillamilpaz9903 5 ай бұрын
@@codewith_Khan Hi , yes, im using the correct URL, just like in your video but with my org. I made a request with workbench and work fine, but not with postman.
@mechanized_wheels
@mechanized_wheels 7 ай бұрын
Error: Could not complete OAuth 2.0 token request
@rahuljain9106
@rahuljain9106 Ай бұрын
Have you got up the idea to resolve this
@olgundeveci
@olgundeveci 29 күн бұрын
@codewith_Khan I tried many times but unfortunately I have always same error "Error: invalid_client_id, Description: client identifier invalid". Any suggestion?
@codewith_Khan
@codewith_Khan 21 күн бұрын
Hi! Apology for the delay as I have been busy for a while. Let me know if you are still facing the issue and we will arrange a time to connect!!
@amarnathmahato6221
@amarnathmahato6221 5 күн бұрын
@@codewith_Khan yes have same issue
@user-pn8hh8fv3j
@user-pn8hh8fv3j 9 ай бұрын
Error: unsupported_grant_type, Description: grant type not supported
@codewith_Khan
@codewith_Khan 9 ай бұрын
Please make sure you have appended security token with password without separated by any special characters
@kennethsmithjr3
@kennethsmithjr3 3 ай бұрын
@@codewith_Khan I have but it still doesn't work
@mubeenmohammad3978
@mubeenmohammad3978 5 ай бұрын
getting error "Error: scope parameter not supported". Could you please help with this
@codewith_Khan
@codewith_Khan 3 ай бұрын
Hi, please make sure you are framing the endpoint URL correctly. In order to discuss over a screen share session kindly reach out to me in case you are still facing the issue. shahbaz.3331khan@gmail.com Please subscribe the channel if not done already!!
@ankitadhingra9463
@ankitadhingra9463 9 ай бұрын
After adding all these details in postman and trying to generate new access token but getting this error : Error: invalid_grant, Description: authentication failure What could be the reason behind this?
@soorajskumar5666
@soorajskumar5666 9 ай бұрын
facing same issue and stuck:|, were you able to resolve it
@codewith_Khan
@codewith_Khan 9 ай бұрын
Hi, make sure you suffix the security token with the password without any special characters in between them. In the password section its the combination of actual password and security token that we have to enter for authentication.
@VishnuKumar-vn2ej
@VishnuKumar-vn2ej 8 ай бұрын
Did you resolved? I am also facing the same issue
@VishnuKumar-vn2ej
@VishnuKumar-vn2ej 8 ай бұрын
​@@codewith_KhanI double checked it facing the same error again
@user-pv3pl3vs1c
@user-pv3pl3vs1c 7 ай бұрын
@@codewith_Khan after doing same im getting same error
@user-zv5jm3rc8n
@user-zv5jm3rc8n Жыл бұрын
hii, I'm facing with the error 404 not found. Could anyone please suggest
@codewith_Khan
@codewith_Khan Жыл бұрын
Hi, make sure you using the correct endpoint since 404 error usually comes when we are making callout to the endpoint which does not exist. Please frame your endpoint appropriately. It should be in the below format: {{domain}}/action
@nachiketgadre5443
@nachiketgadre5443 11 ай бұрын
Getting below error msg "message": "Session expired or invalid", "errorCode": "INVALID_SESSION_ID"
@codewith_Khan
@codewith_Khan 11 ай бұрын
Hi, please make sure you Generate the access token and use it every time session is expired. Please watch this part of the video 10:30
@Shri0900
@Shri0900 10 ай бұрын
hey have you found the solution? i am also facing same problem?
@SirleneBaratela
@SirleneBaratela 3 ай бұрын
olá eu também estou com o mesmo problema :c , mesmo gerando um novo token@@Shri0900
@namanshetty2781
@namanshetty2781 20 күн бұрын
Even im getting Same error, even after Generating the access token and using it again and again, also reset my security token as well
@margosdesarian
@margosdesarian 9 ай бұрын
But i get "Error: invalid_grant, Description: authentication failure" when i try to Get the token ...
@codewith_Khan
@codewith_Khan 9 ай бұрын
Hi, I hope you are entering password and security token altogether without any space or character in the password section. Suppose password is "abc" and token is "xyz" then password should be "abcxyz". The error comes only due to this reason and also make sure you have provided correct Client Id and Client secret.
@margosdesarian
@margosdesarian 9 ай бұрын
@@codewith_Khan Yes indeed i am. I have been a developer for 23 years. This is my first time with Salesforce though. What about IP restrictions - can this make a difference?
@margosdesarian
@margosdesarian 9 ай бұрын
@@codewith_Khan Also i am using developer account
@margosdesarian
@margosdesarian 9 ай бұрын
@@codewith_Khan On another Salesforce account i have successfully setup OpenID login for an Umbraco Website
@margosdesarian
@margosdesarian 9 ай бұрын
@@codewith_Khan The problem was that in "oAuth and OpenID Connect Settings" the default setting for "Allow OAuth Username-Password Flows" was set to off
@deepanshugupta679
@deepanshugupta679 Жыл бұрын
Thanks for the video. I followed the video thoroughly. But I am getting the below error: "Error: invalid_grant, Description: authentication failure" My password is correct I am sure of that and so is the security token.
@codewith_Khan
@codewith_Khan Жыл бұрын
Hi, I hope you are entering password and security token altogether without any space or character. Suppose password is "abc" and token is "xyz" then password should be "abcxyz". The error comes only due to this reason and also make sure you have provided correct Client Id and Client secret.
@AashishBhatt-hp6ml
@AashishBhatt-hp6ml 11 ай бұрын
Getting same error did you find the solution
@elenasokolova9483
@elenasokolova9483 10 ай бұрын
Try to enable the username-password flow, in OAuth and OpenID Connect Settings, select Allow OAuth Username-Password Flows. It's disabled by default
@elenasokolova9483
@elenasokolova9483 10 ай бұрын
@@AashishBhatt-hp6ml Try to enable the username-password flow, in OAuth and OpenID Connect Settings, select Allow OAuth Username-Password Flows. It's disabled by default
@ayush.onfinance
@ayush.onfinance 8 ай бұрын
i do that but still get same error @@elenasokolova9483
@strahinja1107
@strahinja1107 15 күн бұрын
I am getting "unsupported_grant_type"
Best father #shorts by Secret Vlog
00:18
Secret Vlog
Рет қаралды 22 МЛН
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 18 МЛН
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 31 МЛН
How to Implement Salesforce REST API Integration using Java
13:19
BISPTrainings
Рет қаралды 7 М.
Playwright Beginner Tutorial 4 | How to write 1st Test
24:54
Automation Step by Step
Рет қаралды 86 М.
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 7 МЛН
Лазер против камеры смартфона
1:01
NEWTONLABS
Рет қаралды 291 М.
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 382 М.