-
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
How TLS impacts Salesforce?
When we are working in a pool of networks i.e INTERNET, we need a protocol. Yes, you might have heard this term in your High…
Importance of Salesforce Performance Testing in 2024
Performance testing is a crucial aspect of software development that should not be overlooked. It assesses the speed, stability, and scalability of an application, providing…
How Salesforce Pardot AI Will Boost Email Engagement?
Email marketing is getting more and more competitive with businesses looking to improve their email marketing by increasing the click-through rate (CTR) and conversions. While…
Popular Salesforce Videos
Salesforce Trailhead 2020 - Queueable Apex - Challenge
Create an Queueable Apex class that inserts Contacts for Accounts. Create a Queueable Apex class that inserts the same Contact for each Account for a…
Running a New Report in Salesforce
After logging into Salesforce, Go to the reporting section by clicking on the Reports tab at the top of the page, Click on the New…
Data Loader Alternative | Export and Import Data Using Salesforce Inspector
Find out how to export and import data using Salesforce Inspector, a very useful alternative to traditional data loader. watch this video and learn all…