-
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

All You Need to Know About SOSL and Related Records in Apex
In this blog, we will discuss what are related records in Salesforce and what we understood by SOSL in apex. What are Related Records in…

Salesforce CPQ Basics Overview
Let's move on to know something about Salesforce CPQ which is a native Salesforce app that helps the sales teams to close their deals faster and…
Popular Salesforce Videos
The Story of Salesforce. How Marc Benioff Built The Best CRM
This video, How It Happened explains the story of how Salesforce went from a small startup in San Francisco to become the leading CRM provider.…
Summer '20 Release - Release Updates Page
Check out the new Release Updates Page. Salesforce Summer '20 is full of amazing features for #AwesomeAdmins! Check out what's new when you follow and…
When to Use Apex? | Flows of Action in Apex | Learn Salesforce Development
In this Video Shrey explained When to use Apex and Flows of Action in APEX. Let's Learn the End User and Developer action (Flows of…