-
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

Benefits of Salesforce for FinTech: Boosting Efficiency and Scaling Growth
In recent years, the FinTech industry has boomed and transformed how people manage money, invest, and access financial products. However, with this growth, FinTech organizations…

Top 4 Reasons Why Community-Salesforce Integration is Instrumental to Your Business
Waiting for a customer support agent to resolve your query? We guess, not! Customers today value their time and expect instant support. So, brands today…

Mail a Table of Opportunity Records With a Link of Detail Page | Salesforce Tutorial
In this blog, we have checked the closedDate of the whole Opportunity records and sent a mail of all opportunities whose closedDate is less than…
Popular Salesforce Videos
How to Test Your Process Builder | Salesforce
In this video, Appopedia provides helpful tips on how to test your process builder in Salesforce. She explains how to create a test user, what…
What is CPQ (in Salesforce)?
This videdo explains Configure Price Quote (CPQ) in Salesforce by dividing this topic into 4 basic points, which are: 1. What is the basic sales…
What is Validation Rule in Salesforce? Explain in details
Validation Rule will check the data entered by user during insert or update the operation and as per that it will actually take the action.…