-
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
Salesforce CPQ: Fixing Percent of Total Calculations for Amended Quotes
Salesforce users looking to enhance their product-quoting processes can take advantage of Salesforce Configure, Price, Quote Software, or CPQ. Salesforce CPQ allows users to create…
How to get a chatter "sharing via link" URL?
How to get a chatter "sharing via link" URL which can be accessed by anyone inside or outside of your company? This can be achieved…
Salesforce Lightning Component Framework - Learn All About it Here
Introduction The Lightning Component Framework is a UI framework for developing single-page applications for mobile and desktop devices. It uses JavaScript on the client side…
Popular Salesforce Videos
Process Builder In Salesforce | Tutorial Video
Do you want to create a record for any object from a workflow? Do you want to call your Apex class from a workflow? Do…
Why are Salesforce Releases Named After Seasons?
If you are wondering “Why are Salesforce releases named after Northern Hemisphere Seasons?” then get an expert answer by Megan Peterson and Salesforce Co-Founder Parker…
What is Lightning Web Components (LWC) in Salesforce?
LWC is a collection of modern framework which has lightweight features and we can create a reusable code. Watch this video and let us know…