Menu
  • Home
  • Services
    • Consulting Services
    • Support Services
    • Implementation Services
    • Customization Services
    • Integration Services
    • Product Development with Salesforce
  • Focus Areas
    • Buyer Journey Management
    • OptiSales for Field Force
    • Salesforce Integration Orchestration
    • Employee Management
    • Supporting Nonprofits
  • Case Studies
  • Blog
  • Internship
  • Contact
  • COVID 19 & beyond

Real-Time Product Catalog via Salesforce REST API Introduction

CategoriesCase Study / General

Admin

September 14, 2023

Real-Time Product Catalog via Salesforce REST API Introduction

Salesforce, known for its comprehensive Customer Relationship Management (CRM) solution, offers capabilities for developers to expose logic as RESTful services. In our example, a Bank called wanted to expose its POS product catalog for Merchants to external client applications in real-time using Salesforce’s platform. Let’s see how we achieved this using Salesforce’s REST API.

Problem Statement:

The Bank operates both POS offerings for Merchants with current account. The company’s product catalog, including details like product name, price, description, and availability, is maintained in Salesforce. The Bank aims to:

  1. Provide real-time access to its product catalog to external client applications.
  2. Trigger additional logic (like inventory checks) before sending out the product details.

Solution:

Flow Creation:

A flow was created in Salesforce which contains the logic for:

  • Querying the product catalog.
  • Running inventory checks.
  • Preparing the response containing product details.

REST API Endpoint Creation:

  • Using Salesforce’s developer capabilities, a custom Apex class was developed to expose an inbound REST API.
  • This Apex class was defined with a URL mapping (like /getProductCatalog) to handle HTTP GET requests.
  • Within this class, the previously created flow was invoked to fetch and process the product details.

API Security:

  • To ensure secure access, Salesforce’s in-built OAuth 2.0 capabilities were leveraged.
  • Client applications were required to authenticate using OAuth before accessing the API.

Client Application Integration:

  • External client applications were provided with appropriate API documentation.

  Client apps were required to:

  • Obtain an access token using OAuth.
  • Make an HTTP GET request to the Salesforce endpoint (e.g., https://bank.my.salesforce.com/services/apexrest/getProductCatalog).
  • Parse the JSON response to access the product catalog in real-time.

Results:

  • Real-time Access: External applications could now access Banks POS product catalog in real-time.
  • Scalability: By utilizing Salesforce’s robust platform, the Bank ensured the system could handle a large number of concurrent API requests.
  • Flexibility: Changes to the product catalog logic could be easily handled within Salesforce flows, ensuring minimum changes to the API or the client applications.

Conclusion:

Salesforce’s capabilities, including flows and Apex classes, offer a powerful way to expose business logic as REST APIs. The Bank successfully leveraged these features to provide a seamless experience for its external client applications, ensuring they always had access to the most up-to-date product information.

Recent Posts

  • Implementing Audit Trail for a Bank Using Salesforce and AWS
  • Bulk Export of Opportunity Data from Salesforce to AWS Introduction
  • Real-Time Product Catalog via Salesforce REST API Introduction
  • Salesforce Integration with Outbound REST APIs Background
  • Real-time Order Fulfillment Reporting Using ERP, AWS S3, AWS AppFlow, and Salesforce

Categories

  • Blog
  • Communities
  • Finance
  • General
  • Nonprofit
  • Sales
  • Salesforce Technology
  • Services

Archives

  • September 2023
  • July 2023
  • June 2023
  • May 2023
  • November 2022
  • October 2022
  • February 2022
  • January 2021
  • October 2020
  • September 2020
  • August 2020
  • March 2020
  • February 2020
  • September 2019
  • April 2019
  • February 2019
  • November 2018
  • September 2018
  • August 2018
  • June 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • July 2017
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
Thinqloud was founded with the vision of helping business grow using Salesforce®.

We do this by driving automation and process management using Salesforce® Technology thereby improving and implementing integrated CRM ,Sales and Marketing processes. Our mature team comprises of IT professionals (Technology and DevOps), Business process consultants and Salesforce® enthusiasts.

Email : sales@thinqloud.com

Phone: (+91) 99754 98229

Services

  • Solution Development Services
  • Salesforce Implementation Services
  • Salesforce Support Services
  • Salesforce Customization Services
  • Salesforce Integration Services
  • Classic to Lightning Migration
  • Marketing and Sales Consulting Agency

Site Links

  • Home
  • Blog
  • Case Studies
  • Contact
  • Internship

© 2022 Thinqloud, All Rights Reserved.

  • Privacy