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

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 เม.ย. 2023
  • 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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 108

  • @codewith_Khan
    @codewith_Khan  ปีที่แล้ว +5

    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)
      th-cam.com/video/IZX9Nlo6pYk/w-d-xo.html
      Thanks

  • @jjdw1993
    @jjdw1993 ปีที่แล้ว +3

    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.

  • @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

  • @B3llyg0d
    @B3llyg0d 24 วันที่ผ่านมา +1

    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.

  • @mubafaw
    @mubafaw 4 หลายเดือนก่อน

    This is high quality presentation tutorial, very clear and detailed. Thank you very much 😊👍

    • @codewith_Khan
      @codewith_Khan  4 หลายเดือนก่อน

      You are welcome. I am glad it was helpful!! Please subscribe the channel if not done already!! Thanks

  • @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.

  • @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

  • @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.

  • @sanjaygohel7150
    @sanjaygohel7150 3 หลายเดือนก่อน

    Thanks for the explaination

    • @codewith_Khan
      @codewith_Khan  2 หลายเดือนก่อน

      Glat it was helpful! Please subscribe the channel if not done already!!

  • @vipulukey828
    @vipulukey828 ปีที่แล้ว +1

    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 26 วันที่ผ่านมา

    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.

  • @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.

  • @raghukhanninaikar1323
    @raghukhanninaikar1323 3 หลายเดือนก่อน

    Best one Good to know

    • @codewith_Khan
      @codewith_Khan  3 หลายเดือนก่อน

      Glad it helped!! Please subscribe the channel if not done already!

  • @yetzeniamendoza8437
    @yetzeniamendoza8437 11 หลายเดือนก่อน

    How find the url connect with Postman from SF and the password not understand?

  • @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.

  • @trippy_angel08
    @trippy_angel08 10 หลายเดือนก่อน +1

    can you please explain how to get Access token from org?

  • @monikaphalle9174
    @monikaphalle9174 27 วันที่ผ่านมา

    How we can integrate netsuite and salesforce using netsuite restlet script?

  • @taranchandyok
    @taranchandyok วันที่ผ่านมา

    I followed the video and getting authentication failed. Can you please help.

  • @maximebai5609
    @maximebai5609 2 หลายเดือนก่อน

    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  2 หลายเดือนก่อน

      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.

  • @mayankmishra03
    @mayankmishra03 11 หลายเดือนก่อน

    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  11 หลายเดือนก่อน +1

      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

  • @rajd1781
    @rajd1781 ปีที่แล้ว

    Hey, I can see Connected App create option in lightning too. Isn't the same?

    • @codewith_Khan
      @codewith_Khan  ปีที่แล้ว +1

      Good catch bro, that is correct however it has been made available in recent upgrade. Both ways are same basically.

  • @sandeshvishwakarma4735
    @sandeshvishwakarma4735 9 หลายเดือนก่อน +1

    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

  • @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  6 หลายเดือนก่อน +1

      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.
      th-cam.com/video/IZX9Nlo6pYk/w-d-xo.html

  • @user-pb3vt6hg2g
    @user-pb3vt6hg2g 5 หลายเดือนก่อน +1

    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  5 หลายเดือนก่อน

      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 4 หลายเดือนก่อน +1

      im also getting this error. my password is "" no spaces. where is it in the salesforce doc to do this?

  • @vipulukey828
    @vipulukey828 ปีที่แล้ว +1

    Please make a video on How to create JSON (eg. {"inboundEvent":"STModel","inboundRequest":"Test"}) to test POST request with complex structure. Thanks!

  • @olgundeveci
    @olgundeveci หลายเดือนก่อน

    @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  หลายเดือนก่อน

      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 18 วันที่ผ่านมา

      @@codewith_Khan yes have same issue

  • @santiagovillamilpaz9903
    @santiagovillamilpaz9903 6 หลายเดือนก่อน

    Hi! I have this error: "The requested resource does not exist" when sending the JSON.

    • @codewith_Khan
      @codewith_Khan  6 หลายเดือนก่อน

      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 6 หลายเดือนก่อน

      @@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 หลายเดือนก่อน +2

    Error: Could not complete OAuth 2.0 token request

    • @rahuljain9106
      @rahuljain9106 หลายเดือนก่อน

      Have you got up the idea to resolve this

  • @user-pn8hh8fv3j
    @user-pn8hh8fv3j 10 หลายเดือนก่อน +2

    Error: unsupported_grant_type, Description: grant type not supported

    • @codewith_Khan
      @codewith_Khan  10 หลายเดือนก่อน

      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

  • @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.

  • @ankitadhingra9463
    @ankitadhingra9463 9 หลายเดือนก่อน +2

    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 หลายเดือนก่อน +1

      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 9 หลายเดือนก่อน

      Did you resolved?
      I am also facing the same issue

    • @VishnuKumar-vn2ej
      @VishnuKumar-vn2ej 9 หลายเดือนก่อน

      ​@@codewith_KhanI double checked it facing the same error again

    • @user-pv3pl3vs1c
      @user-pv3pl3vs1c 8 หลายเดือนก่อน

      @@codewith_Khan after doing same im getting same error

  • @mubeenmohammad3978
    @mubeenmohammad3978 5 หลายเดือนก่อน

    getting error "Error: scope parameter not supported". Could you please help with this

    • @codewith_Khan
      @codewith_Khan  4 หลายเดือนก่อน

      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!!

  • @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 ปีที่แล้ว +1

    Getting below error msg
    "message": "Session expired or invalid",
    "errorCode": "INVALID_SESSION_ID"

    • @codewith_Khan
      @codewith_Khan  ปีที่แล้ว

      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 11 หลายเดือนก่อน +1

      hey have you found the solution? i am also facing same problem?

    • @SirleneBaratela
      @SirleneBaratela 4 หลายเดือนก่อน

      olá eu também estou com o mesmo problema :c , mesmo gerando um novo token@@Shri0900

    • @namanshetty2781
      @namanshetty2781 หลายเดือนก่อน

      Even im getting Same error, even after Generating the access token and using it again and again, also reset my security token as well

  • @deepanshugupta679
    @deepanshugupta679 ปีที่แล้ว +1

    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 11 หลายเดือนก่อน +3

      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 11 หลายเดือนก่อน +3

      @@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 9 หลายเดือนก่อน

      i do that but still get same error
      @@elenasokolova9483

  • @margosdesarian
    @margosdesarian 9 หลายเดือนก่อน +1

    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 หลายเดือนก่อน +3

      @@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

  • @strahinja1107
    @strahinja1107 28 วันที่ผ่านมา

    I am getting "unsupported_grant_type"