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.

687 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
184 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
0answers
4k 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 ...
5
votes
0answers
72 views

Calling Marketing Cloud REST API via webhook

I'm trying to work out a means of calling Salesforce Marketing Cloud's REST API via a third party webhook to write to a data extension. The issue I'm having involves refreshing the oauth token. We've ...
5
votes
1answer
68 views

UI API within LWC as an ISV. What should be the approach when wire adapters are not feasible?

I have a lightning web component that needs to call UI API. I can't use the LWC wired adapters because the 'getRecordUi' does not take the "childRelationships" parameters like the 'record-ui' endpoint ...
5
votes
0answers
148 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 ...
5
votes
0answers
295 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
1answer
576 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" } ...
5
votes
0answers
788 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
1answer
347 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 ...
5
votes
0answers
166 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 ...
5
votes
1answer
698 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
1answer
190 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: ...
4
votes
0answers
120 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
40 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
2k 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
448 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
155 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
0answers
699 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
796 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
0answers
710 views

Opt-Out using queueMO API

I am trying to opt-out of SMS using QueueMO API but getting error. Below is the request and response. Any idea what could be going wrong? Is there any other way to opt-out using REST API? Thanks in ...
4
votes
0answers
192 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
80 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
297 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
747 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
102 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
693 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
893 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
328 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
387 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
94 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
26 views

How to merge two records via REST?

Both Apex and SOAP APIs provide a method to merge two records of a mergeable type (e.g., Account, Contact). Is there any way to access this functionality from a REST API? I've checked the docs and ...
3
votes
0answers
31 views

Live Chat API: Any guarantee of initial /Messages entry?

When long-polling the Live Chat API /Messages endpoint, the docs indicate that all messages sent between agent/chat visitor are returned in order, from a list of possible Message types. After looking ...
3
votes
0answers
47 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
198 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
151 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
112 views

ExactTarget REST API - Cloud Pages & Collections

I've successfully used the available REST API in order to create various assets in Marketing Cloud / ExactTarget, like HTML Emails, Templates and Landing Pages. The email assets are visible under the ...
3
votes
0answers
744 views

Is there a way to create an OpenAPI / Swagger spec for my Salesforce Account?

I've been using the Saleforce REST API for a while and I'm interested in using an OpenAPI / Swagger spec to auto-generate a SDK using OpenAPI Generator and Swagger Codegen. Is there a way to get an ...
3
votes
0answers
68 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
2answers
492 views

BULK API cURL commands to GET 100k records from Account

curl "https://xxx.salesforce.com/services/data/v35.0/query/?q=SELECT+Id,+Name,+Phone+FROM+Account" -H "Authorization: Bearer <access token> " But this only fetching 2000 records. I need all ...
3
votes
1answer
487 views

Solution to Tokenized Sending limitations in Salesforce Marketing Cloud(SFMC)

So our Prospect want to implement Tokenized Sending Features because they don't want to store data in SFMC before sending Email/SMS and want to use REST API to push data into SFMC but again they want ...
3
votes
0answers
202 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
120 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
78 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
130 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
344 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
126 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
102 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
413 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
426 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 ...