-
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

An Introduction to Salesforce Force.com Migration Tool (ANT)
Let’s understand Metadata as: Data which give information about other Data. Metadata sums up essential data about information, making discovering, and working with specific examples…

Top Features of Salesforce Lightning That Will Make Your Business Growth Lightening Fast
Are you looking for a Lightning consultant? This post is for you. Change is evident, and there's no other CRM company than Salesforce that excellently…

Learn Salesforce Einstein – Chapter 9 (Testing – Test the Einstein Model)
On this page, you can test your model. Copy model ID from your model and paste it in Model ID on this page. Your model…
Popular Salesforce Videos
How to Set Up a Journey in Journey Builder
Learn to build a customer journey with guidance from our experts. This video provides an overview of Journey Builder features and best practices. Get expert…
What are Roll-up Summary Fields in Salesforce? | How to create them?
In this video, Shrey is not only teaching but also demonstrating to you "What are Roll-up Summary Fields in Salesforce?". You will be learning: 1.…
Salesforce Chatter Training - Staff
In this video, Kylee Durant provides a Salesforce Chatter Training overview, detailing how to enable and configure chatter groups, as well as create customer groups.