-
how to handle access_token in Rest API Call with JSON in Salesforce?
HI,
i have get access_token, "token_type", "expires_in", "scope", "no_of_active_sessions" ,"redirect_uri", "status" ,"errorMessage" in response after call login API with post method (Rest API Call with JSON).
Now i need to store the access_token & token_type in string variables and create the consignment(case) API with post method and pass Authorization: token_type+" "+ access_token in header and request with some fields like Consignment numbers, pincode, weight and etc.
and get response with error(Boolean), errorMessage(String) & cnote(String)
how to handle this code?
Log In to reply.
Popular Salesforce Blogs

AI-Powered Salesforce Integrations: Reevaluating Traditional Tools
In the ever-evolving world of technology, I recently discovered the power of AI bots for generating Apex and middleware code for Salesforce integrations. The results?…

A Beginner’s Guide to Salesforce CRM Managed Services: What You Need to Know
Businesses across the world are using Salesforce CRM as a strategic tool for their growth. The operations of the CRM are maintained by an IT…

How Can Hiring A Salesforce Consultant Increase Your Business ROI?
What does Return on Investment mean? Return on Investment (ROI) is a measurement of performance that helps in calculating the efficiency of an investment. With…
Popular Salesforce Videos
How to import data from Sage ERP to Salesforce - Part 1
Greytrix offers GUMU™ integration for Salesforce with Sage ERP systems - a best-of-breed solution for organizations to enhance their customer interaction. With Salesforce and Sage…
Introduction to Lightning Web Components (LWC)
Why Lightning Web Component (LWC) Part 1 - Vanilla HTML5 Web Components Benefits of Web Component Pillars of Web Component Demo of Custom Element and…
Marketing Cloud | Salesforce Send Email
There are two ways to send an email in Marketing Cloud; Guided Send Wizard & Salesforce Send Email. The benefit of the Salesforce Send Email…