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.

632 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
159 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 ...
6
votes
1answer
665 views

Copy journeys between business units?

does anyone know a way to quickly copy journeys from Journey Builder from one business unit to another one? It would be a huge time saver when we're setting up new journeys on separate business units ...
5
votes
0answers
123 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
667 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
164 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
96 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
88 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
3k 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 ...
4
votes
0answers
35 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
1answer
451 views

Marketing Cloud REST API - Contact Delete operation is not currently enabled

Tried to delete a contact in Marketing Cloud through the API /contacts/v1/contacts/actions/delete?type=ids { "values": [ "1131976968" ], "DeleteOperationType": "ContactAndAttributes" } ...
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
366 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
2answers
148 views

Does IOT Cloud have REST APIs? Or does it uses third party platforms to connect devices to cloud?

I am working on integration services for salesforce. Salesforce has APIs e.g. for creating Account, Contact, Lead etc., making it easy to develop integration services. Now I have been asked to ...
4
votes
1answer
275 views

What's the maximum amount of data extension I can bulk-upsert via REST Api?

I am using the REST Api (POST /dataevents/key:{key}/rowset) https://code.exacttarget.com/apis-sdks/rest-api/v1/hub/data-events/postDataExtensionRowsetByKey.html in order to update/insert(upsert) a ...
4
votes
0answers
624 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
1answer
1k views

Live agent chat in bottom corner of page, not popup

We're implementing a Salesforce LiveAgent chat for a customer, and they want the chat to appear in the bottom right corner of the page, in a layer, not a popup. My question is: is this even possible ...
4
votes
1answer
764 views

Returning Oauth token with REST API via PHP arrays when trying to send new contacts

In the salesforce REST API documentation, it tells how the system can give Oauth Tokens (https://code.exacttarget.com/apis-sdks/rest-api/v1/auth/requestToken.html ) But I don't seen any documentation ...
4
votes
1answer
589 views

API calls to backend from Salesforce flow

I'm trying to figure out how to create RESTful API calls to my backend from inside the Salesforce flow - for example i want to retrieve a field from my backend and then make a decision upon that field....
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
1answer
295 views

Site.com Data Repeater filter Criteria Query String URL not working for two different scenarios

I have one filter for Alphabetic sort and other for search facility on the website. The Alphabetic sort is working at all times but the search filter (having contains operator) works only when I ...
4
votes
0answers
734 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
681 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
2answers
818 views

Storing 'date' attribute for ExactTarget subscribers

I've been trying to store 'Date' via API, but somehow it doesnt work I have created new field in profile management, called 'prospect_date' If I create new subscriber, pass all attributes via API ...
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
1answer
378 views

possible to access REST API of another SF instance with portal user from scheduled class?

I have a scenario where I'd like a user of another SF instance to register in our portal, then have a scheduled class on their end reach out to a REST endpoint on our end. Upon reviewing the oAuth ...
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, ...
4
votes
1answer
87 views

I try to backup of records to another org

I have a question. When i integrate salesforce to salesforce I got 160000 record from the response. How can I save record in my org.? I try to backup of records to another org. IS it possible or not....
3
votes
0answers
31 views

Marketing Cloud API - Contact Delete Request's status enum

I'm trying to use the delete request API (https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/ContactsDeleteStatus.htm) However I could not found any documents regarding the status ...
3
votes
0answers
89 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
2answers
92 views

Is there a way to identify all the places a Content Block is used?

I'm trying to identify all the places a Content Block is used. The goal is to be able to reference what will be affected if a Content Block is modified. I've looked a the Asset in the REST API, but I ...
3
votes
0answers
141 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
131 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
115 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
118 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
314 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
1answer
109 views

Is Connected Apps the way to integrate a 3rd Party application?

I want to integrate my application with Salesforce. Some of my users have Salesforce accounts, and I want them to be able to sync their data in Salesforce with my system. I decided to use the REST API ...
3
votes
0answers
96 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
1answer
383 views

Error 500 when using Live Agent REST API with prechatDetails

Hello I am developing an iOS app allowing to chat with a service agent using live agent. The app is using Live Agent REST API. Everything was working fine till I added prechatDetails to the ...
3
votes
0answers
402 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
341 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
737 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
67 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
557 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
1answer
888 views

How create a Live Agent Session by REST API

I read documentation: https://resources.docs.salesforce.com/196/latest/en-us/sfdc/pdf/live_agent_rest.pdf https://piotrczechumski.wordpress.com/2014/06/22/live-agent-rest-api-documentation/ and ...
3
votes
0answers
369 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 ...