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
141 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
555 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 ...
6
votes
0answers
624 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
40 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
158 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
73 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
29 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
328 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
91 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 ...
4
votes
0answers
600 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
190 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
77 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
719 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
95 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
673 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
317 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
55 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 ...
3
votes
0answers
59 views

Generating email in Marketing cloud but sending it out to another system, not the recipient

We are using Salesforce and Marketing cloud to process data, create a campaign, populate a template and send emails. Pretty much as you'd expect. Separately, we have an internal system that is ...
3
votes
0answers
103 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
55 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
124 views

Access contact PhotoURL images when not logged into Salesforce

I've connected to Salesforce via REST and am querying the photoURL field of the contact record. I get back something like this for the photoURL /services/images/photo/0030N000024o75dQAA On the ...
3
votes
0answers
104 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
345 views

Get a list of all Attribute Sets in Contact Builder

I need to get a list of all available Attribute Sets in Contact Builder. Currently I use the following REST API resource: Host: https://www.exacttargetapis.com GET /contacts/v1/...
3
votes
0answers
106 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
71 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
113 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
308 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
252 views

Checking Object Lock status using REST API

We are running into the object lock contention UNABLE_TO_LOCK_ROW error when attempting to create a record in the CampaignMember object using AMPscript in Marketing Cloud due to the high lock ...
3
votes
0answers
246 views

REST API calls suddenly only return empty values

I have a number of stable webforms which communicate with my Salesforce instance using the REST API using php CURL. About 24 hours ago these calls - which have worked perfectly and unchanged for ...
3
votes
0answers
181 views

How to delete a record from a non-queryable object

I'm trying to delete a record from MobilePushServiceDevice object. This object is not queryable, however, it is deletable. How can I delete a specific record from this object if I can't query it in ...
3
votes
0answers
375 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
315 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
691 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
126 views

Performance issue when offset used in SAQL

I am using the endpoint data/v35.0/wave/query to execute a SAQL query. When I execute the below SAQL which does not contain offset, I am getting the response approzimately in 1 secs load \"xxxx/xxxx\...
3
votes
0answers
186 views

Using OAuth 1.0 encoded requests for external web service calls Error: signature_invalid

Please help me. I have a salesforce requirement that necessitates a callout from Apex to an external web service that receives signed OAuth responses. I am getting oAuth_token successfully. But ...
3
votes
0answers
61 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
116 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
531 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
362 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
618 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
537 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
439 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
148 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
879 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
62 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
124 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 ...