Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rest-api]

REpresentational State Transfer (REST), or RESTful, web services provide interoperability between computer systems on the Internet. The Salesforce REST API provides a powerful, convenient, and simple Web services API for interacting with Force.com.

8
votes
0answers
153 views

REST API error middlename,suffix,informalname fields do not exist but they appear in describe results

We develop a AppExchange package and are having an issue with middlename,suffix,informalname fields on the Contact object. The issue is these fields are returned through a describe call also filtering ...
5
votes
0answers
80 views

Issue with receiving HTTP with Content-Type:application/x-www-form-urlencoded

I've faced a strange issue during my development related to the API. My goal was to create a web service that will receive POST requests from different sources. First service: It passes all the ...
5
votes
0answers
644 views

Apex equivalent of REST api's nextRecordsUrl

When you run a query through the REST api and the number of records returned exceeds the default 2000, or the batch size set in the Sforce-Query-Options header, the query will return a nextRecordsUrl ...
5
votes
0answers
163 views

Connected App issue with Rest API

I was trying to connect one Salesforce Org to another via Rest API. From the knowledge I've, I was thinking I've to create 'Connected APP' in the target(receiving org)where I've to update some data ...
4
votes
0answers
93 views

Making concurrent REST API requests to Marketing Cloud

I'm trying to understand how rate limiting works for REST API calls. I was informed that it's based on the number of concurrent requests, which I can live with, but I can't figure out what the ...
4
votes
0answers
84 views

API request/response codes when site is in read-only maintenance mode?

I checked out Read-Only Mode Overview but I'm still unsure of how our API will respond, particularly the response code. Will POST/PUT requests automatically return a 503 service unavailable or will ...
4
votes
0answers
34 views

When does 'If-Unmodified-Since' header prevent DML operations for custom Apex Rest?

I have a custom Apex REST class that accepts a POST request and updates a custom object associated with the request. The inbound POST request contains an 'If-Unmodified-Since' header with the time it ...
4
votes
0answers
1k views

REST API using SessionId throws “not valid for use with the REST API” for Community users

Following are the steps I am doing: Get the Salesforce Session ID through SAML Handshake using SAML attributes Trigger REST API using that session ID curl https://my-communities.force.com/...
4
votes
0answers
353 views

Steelbrick CPQ API validate quote not working as expected

I'm creating a quote via the native CPQ quote line editor and adding a bundle with its corresponding options for the each feature. After creating the quote I want to validate it via the API using ...
4
votes
0answers
615 views

API Calls timezone details

When making an API call to SendEvent or OpenEvent objects in the REST API, the return value is in Central time. How do I know what timezone it is using for the dates that I pass as arguments? If I ...
4
votes
0answers
191 views

User-Agent OAuth Authentication doesn't provide expires_in data

I'm using the User-Agent OAuth Authentication work-flow, and when receiving the authentication code, Salesforce is not sending me the expires_in data. Here's what my Salesforce response looks like. A ...
4
votes
0answers
79 views

Fetch Case's Call logs via REST API

I'm looking for a way to fetch all tasks which represent Call Logs for a given Case via REST API. The tasks are created via 'Log a Call' UI and seem to have no specific distinction from any other kind ...
4
votes
0answers
728 views

Mule SFDC Connector without user interaction using sfdc:config-with-oauth

I am trying to access Salesforce through my Mule flows using "sfdc:config-with-oauth". Is there any way I can achieve this without redirecting the user to a Login page? I know there is a SSO login ...
4
votes
0answers
97 views

Search layout lookup dialog REST access

I am able to look up search result search layouts via REST using the /search/layout/q=Account endpoint. But I would like to also read the lookup dialog search layout, like what you see on the web ...
4
votes
0answers
676 views

Rest API Authorization

We're trying to use the JSforce library (http://jsforce.github.io/) for javascript access to the salesforce api but we keep getting "invalid_grant" errors when trying to authenticate <script ...
4
votes
0answers
319 views

Loading Tasks using REST API returns no result, but second try returns a page of Tasks

Sometimes I experience weird issue when loading Tasks over REST API using simple SELECT Id, ... FROM Task SOQL query take quite some time and then returns with nothing, but on the second try it ...
4
votes
0answers
1k views

Upsert using REST API creates duplicate records?

I am integrating with the Salesforce REST API and am upserting Lead records against an External ID using a Patch method. For some crazy reason I am seeing duplicate records on the Salesforce side, ...
3
votes
0answers
61 views

AuraError: Error at new Aura.externalLibraries

Background I am using this approach Call REST API from Lightning Components without Named Credentials to call the Salesforce REST API from a Lightning component. It works when I call this URL: /...
3
votes
0answers
124 views

Creating child relationship with reference fails via Composite Tree REST API

In my setup, Leads can have multiple Affiliates (custom object Affiliate__c), which is implemented through a child relationship and where each Affiliate consists of a name and the two related objects: ...
3
votes
0answers
58 views

Privacy Batch Api - Understanding and Implementation

I am stuck on a relatively new addition of salesforce. The privacy attributes DoNotTrack, DoNotProfile and DoNotProcess. Here is the link to the topic: Privacy in Personalization Builder The first ...
3
votes
0answers
2k views

Best approach for uploading to Salesforce files via a Salesforce API

I need to load files into Salesforce via an API as part of some integration work. I want to be loading files as Salesforce Files (not attachments) so we can version files if need be and I also need to ...
3
votes
0answers
118 views

How to return all users that have access to a specific record

Is it in any way possible to return a list of users that have access to a specific record together with their permissions? What I want to do is the equivalent of the SOQL query SELECT RecordId, ...
3
votes
0answers
113 views

Accessing ExactTarget A/B test data via REST API?

I'm hoping to access the A/B testing groups from ExactTarget via the REST API, but can't see any way to do this in the API docs. Are the A/B test groups just not exposed via the API? Or are they ...
3
votes
0answers
74 views

How to query for Tabsets related to a Lightning App in REST or SOAP API

I am trying to find a way to query the TabSet for a given Lightning App so I know which Tabs a user can access when that App is selected. This is useful when building a navigation menu in a custom UI/...
3
votes
0answers
116 views

Ajax REST Tooling Queries Return Null SymbolTable?

Background I'm trying to build upon Daniel Peter's approach in his HyperBatch library to build a HyperQuery tool that will allow me to get better insight into some large tables we have without ...
3
votes
0answers
312 views

Force.com REST API - Web Server OAuth Authentication Flow

Im building a multi tenant application where each client has their own subdomain. For example: clientA.myapp.com and clientB.myapp.com I want to allow clients to integrate our app with their ...
3
votes
0answers
94 views

Connected app becomes not working for no reason

We have serious problem with our connected app. We have integrated our system with Salesforce and many of our customers use this integration to sync data in Salesforce and our system. For no reason ...
3
votes
0answers
395 views

How to retain sessionId within Live Agent

We're implementing a Salesforce LiveAgent chat for our website, and we want the chat to appear in the bottom right corner of the page, not a popup. My question is: is this even possible while ...
3
votes
0answers
329 views

Callout loop not allowed error while calling external service from an apex rest resource - SKUID

I want to fetch VIN details from an external webservice by callouts, this should be fired from SKUID page once user given input on the required field. From Skuid i am calling apex class which is ...
3
votes
0answers
720 views

Invalid Query Locator in REST API

When making a REST API query call from a Java client I'm getting an INVALID_QUERY_LOCATOR error. I'm familiar with the limitation around 10 query locators in the same time and in my code I'm avoiding ...
3
votes
0answers
66 views

Custom REST API - parsing mime mulitpart message

I have found this example of how to write a custom REST API to accept binary data. @HttpPut global static String updateCase(RestRequest req) { String companyName = req.params.get('companyName'); ...
3
votes
0answers
117 views

I can't patch a salesforce object using angular and REST api

I'm trying to patch a salesforce object using angular, but am getting no where. Every time I get a nondescript error. salesforce.patch = function(resource, contentType, data) { var http = angular....
3
votes
0answers
547 views

How can decompress gzip file in salesforce

I am doing SF integration With Power Bill. In the response i am getting a gzip file with encoding-format: application/x-gzip. I want to decompress this file into Sf but not able to find any solution. ...
3
votes
0answers
367 views

ValidationRule queried via REST API returns Deleted objects VR too and that results in error with GACK?

UPDATE [15 Jul'15] : Salesforce support confirmed that this is indeed a bug and their Research & Development team is working on this case and the matter is under our observation. Here is the ...
3
votes
0answers
70 views

Binding REST API to a new language

Does Salesforce support binding the API to a new language? What I have learned I need to use the REST API. How much work would it be? And, what is the attitude of Salesforce towards such community ...
3
votes
0answers
634 views

Send PDF from Salesforce to EchoSign through Apex REST and EchoSign REST API?

How to send PDF generated from VF page to EchoSign through Apex Code and REST API of EchoSign? I'm getting error as "Content Type not Supported/ UNSUPPORTED_MEDIA_TYPE". Any idea? String ...
3
votes
0answers
548 views

Converted lead results in 'ConvertedAccountId' being NULL?

I am responsible for an integration with our customer's Salesforce systems using the REST API. I have been operating under the assumption that whenever a Lead is converted, then it will have the ...
3
votes
0answers
444 views

Login Service Cloud user through the REST API

I am building a web portal for the SalesForce Service Cloud using the REST API (PHP/WordPress Project). I need Service Cloud users to be able to login to the site through the API without being ...
3
votes
0answers
149 views

Cross site scripting -REST API

I got a vulnerability test result on a REST API connecting with FAcebook Front end. This is my result,and i dont have a clue where i should look into to fix this.Can anyone help please Content-Type:...
3
votes
0answers
917 views

REST API: INVALID_TYPE error while querying a custom object

I tried to query a set of objects using REST API. But when I query a custom object I am getting the following error. [{"message":"\nselect id from test_object3__c\n ^\nERROR at Row:1:...
2
votes
0answers
32 views

Is it possible to download archived contentversion or contentDocument

I am having a hard time downloading a contentversion/contentdocument where contentdocument is already archived. I am trying to download the file by hitting rest endpoint services/data/v44.0/...
2
votes
0answers
120 views

What does 'scope' mean in the context of a Salesforce report? Where/how is it specified? What are the possible (API) values?

There is a method called getScope() in ReportMetadata Class. Can someone please shed some light on what 'Scope' actually means? Where/how is it specified? What are the possible (API/system-digestible) ...
2
votes
0answers
176 views

How to send SFMC SMS via external API?

I'm trying to trigger SFMC REST API to send SMS from Postman. Below is the steps: Created a Outbound SMS content in Mobile Connect (with the following properties) Template type: Outbound - API ...
2
votes
0answers
24 views

Can you set a quota of API calls for a User/Site?

We are using a public Site to receive webhooks from a number of different system. Some of which are payments systems, one of which is for mass email. On the email system, it's useful to receive ...
2
votes
0answers
75 views

Getting FullName from Tooling API gives FIELD_INTEGRITY_EXCEPTION

I need to get the API names of all layouts in my salesforce org.I have used composite metadata api to perform queries in batch of 5 and then get the FullName.It works fine but i get a field integrity ...
2
votes
0answers
26 views

Automatic field reversal on API actions

I've got a Python app that's using the simple-salesforce Salesforce API client. One operation that it performs is automatic re-assignment of contact owners based on the owner of the respective account,...
2
votes
0answers
32 views

Bug: blank locationsNotCovered returned from REST: /tooling/runTestsSynchronous/

Starting a few days ago SFDC sandboxes upgraded to Winter 19 started to return blank locationsNotCovered node in /tooling/runTestsSynchronous/ result For example - a basic call with 1 test class like ...
2
votes
0answers
136 views

Getting Error while try to trigger API event in Journey From Landing pages using ssjs?

I'm working on to trigger API event in journey/Journey builder from landing pages. For now, I can able to get accessToken using clientId & clientSecret and then I tried to pass subscriberkey & ...
2
votes
0answers
124 views

Silent authentication using Oauth2 for client app

I am developing a client app which will be authorized by SF accounts using USER AGENT FLOW. I want to achieve silent authentication wherein SF users of the account will automatically authorize ...
2
votes
0answers
35 views

Cannot insert Contact with REST API if a Lead with the same e-mail address exists

I noticed in the UI that when I try to insert a contact with an e-mail address that a lead already has, I get a warning (before I click save and insert the contact) saying that this is a possible ...