-
Using SOQL queries in REST API request - Salesforce
Hi everybody,
I am trying to fetch Accounts from another salesforce org by using a httprequest instance. I have obtained the security token from the other org , my code extract for the query is as follows:
{httprequest req = new httprequest();
http testHttp = new http();req.setMethod('GET');
req.setEndPoint('https://ap2.salesforce.com/services/data/v38.0/query/?q=SELECT id,Name FROM Account');
req.setHeader('Authorization','OAuth *Here is the token*');
HttpResponse res = testHttp.send(req); }But it is giving me Error Code: 400
Any suggestions?? Thanks
Log In to reply.
Popular Salesforce Blogs
How Cloud CRM Helps Automate Business Processes?
CRM software is the backbone of customer experience operations for most businesses today. In fact, the global market for CRM solutions is growing at a…
Pass Salesforce AppExchange Security with Ease
Kizzy Consulting has worked on creating solutions by integrating several applications with Salesforce in the past year. This article will definitely help you prioritize steps…
Retail Business Solutions with Salesforce in 2023
When it comes to a nation’s economic growth, the retail sector is mainly responsible. Consumer spending on retail goods fuels a nation’s ability to generate…
Popular Salesforce Videos
How to Prepare for Salesforce Admin Certification | Salesforce Training
This "How to prepare for Salesforce Admin Certification" video by Edureka will firstly help you understand who is a salesforce admin. Then, it will talk…
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.
Learning Path and Pay Scale for Salesforce Profiles
Now it's high time to know about the Learning Path for the different Salesforce profiles. In this video, you also got to know about the…