SFDC Stop - Always the latest about Salesforce


Full Tutorial Series with videos, free apps, live sessions, salesforce consulting and much more.


Telegram logo   Join our Telegram Channel

Thursday 2 April 2020

Introduction and Installation of HTTPCalloutFramework

Hello Trailblazers,

About 4 months ago, I created a new framework to simplify HTTP Callouts in Salesforce. I made it free, open sourced it on GitHub and shared the same with my #SalesforceOhana i.e. YOU. I got valuable feedback from some of you for which you can see the comments on the post below:-



Thanks to everyone who gave their suggestions on the above post. I improved the framework and recently had a webinar on this. At that time, I decided to create a small tutorial series on this instead of a webinar because there is so much to tell about this framework which can't be covered in one webinar. ( Thanks Radhika Bansal for your suggestion 😊 )

So, here I present the first tutorial in Simplifying the Callouts Tutorial Series by SFDCStop. In this tutorial we're going to have a brief look at HTTPCalloutFramework which is a free and open source solution to simplify apex HTTP Callouts in Salesforce. This is going to be a Video - Only Tutorial Series and I am going to cover everything up in about 6 or 7 tutorials at max (estimated). I am going to share all the resources (presentation/code/videos) in the blogs that I am going to publish under this tutorial series.

For the first tutorial, we have a presentation featuring Why do we need this framework ? What's the current scenario that we're dealing with ? and how does it help you to simplify the callout implementation.

Also we're going to cover the following stuff:-
  1. Installation of HTTPCalloutFramework
  2. Configuring the framework in your org
  3. We're going to perform a callout using 2 LINES OF CODE to a static SFDC Stop Blogs API:- https://sfdcstop.herokuapp.com/blogs 

    YES..!! You read it right...!! We can perform a callout in only 2 lines of code using this framework

To know more, have a brief look at the presentation below:-



And here is a video featuring HTTPCalloutFramework:-



If you liked this tutorial, make sure to give a try to HTTPCalloutFramework and let me know your feedback in the comments section below. You can also contribute to the framework by sending a pull request on github.

Happy Trailblazing..!!

2 comments:

  1. Hello Rahul,
    I really liked your code, I would add just one more thing:
    I think that would be great add a function to define the callout body or the url params. Because usually these values are not statics.

    Great work!
    Junior Lima

    ReplyDelete
    Replies
    1. Hi Junior,

      You're right and there are functions to define the callout body and URL params as well. Explore the HTTPCalloutService class once and you can see the getter and setter methods there that you can use for this purpose:-

      https://github.com/rahulmalhotra/HTTPCalloutFramework/blob/master/force-app/main/default/classes/HTTPCalloutService.cls

      Delete