The REST API provides a powerful, convenient, and simple Web services API for interacting with Force.com.

learn more… | top users | synonyms

-1
votes
0answers
5 views

Filter Data for REST API based objects like Campaings and Assets for Fuel SDK

My requirement is to retrieve all the data for Exact Target objects. The fuel sdk and soap api support controlling the number of rows/columns returned using Properties and Filter. Is there a way to ...
1
vote
1answer
8 views

Pagination or Chunking support for Fuel SDK

My requirement is to retrieve all the data for Exact Target objects. The Fuel SDK supports retrieval of data using both REST as well as SOAP apis. The REST api has pagination support so for objects ...
0
votes
0answers
9 views

What API/SDK to use for querying Exact Target data?

I have a requirement to query and extract the Exact Target data in bulk. I want to be able to get this data in chunks for large volumes of data. There is also a requirement to limit the number of rows ...
-1
votes
4answers
40 views

Rest API - SOQL Query : Want to get Only Current user's Record

Rest API - SOQL Query : When I Query i am able to get all user's record instead of mine only. Is there any way to filter for get records of current user only.
0
votes
0answers
14 views

How can I show three levels of children in a custom REST API?

We're building an data inventory system in salesforce and we want to expose the records via a public REST API. I've created an anonymous REST API (no authentication required) and I can expose one ...
0
votes
1answer
46 views

PHP API (SOAP nor REST) Triggered Send Not Working

I've tried this: $url = "https://www.exacttargetapis.com/messaging/v1/messageDefinitionSends/key:ac_alerts/send"; $content = json_encode('"To": {"Address": "example@example.com", "SubscriberKey": ...
2
votes
1answer
31 views

Query the Describe metadata for the Account object

I'm accessing the Salesforce REST API from a Java-based web service and would like to get a list of all fields in the Account table that are marked nillable: false. I know I can make a request like ...
-1
votes
0answers
28 views

How to parse the Text Response? [closed]

I am connecting Salesforce to some third party systems by using the REST API, in these cases I am getting the response as a text format. Can anyone tell me how I can parse that text format into ...
2
votes
1answer
25 views

Bulk data update in Salesforce from External System

I have got a requirement to update 6k records in Salesforce from external system in every 4 hours. Can you please suggest what would be best way for this . 1) Should I use the standard Bulk API ? ...
1
vote
1answer
36 views

how to send multiple parameters to restful webservice [duplicate]

i want to send multiple parameters to restful webservice in salesforce HttpRequest req = new HttpRequest(); req.setHeader('Content-Length', '0'); ...
4
votes
1answer
56 views

gzip Compression not working on custom REST API

We have a custom REST API that doesn't seem to support gzip compression. curl https://mobileteamdeploycommunity.force.com/taroworks/services/data/v33.0/ -H 'Authorization: Bearer xxxxxxxxxxxxxxxxxx' ...
4
votes
1answer
36 views

How do I fetch all the folders in Salesforce using REST API

I need to fetch list of all the folders in Documents section in Salesforce using REST API. Current API gets the information for a particular folder using folderId but I need to fetch all the folders ...
2
votes
1answer
29 views

How can I post a new lead with a fully back end solution?

I'm completely new to Salesforce, but this seems like a normal usage case but I can't seem to understand how this might work by reading their docs. I have a website that has a form that people can ...
4
votes
5answers
260 views

Connecting public website with Salesforce

I have a public website in PHP where users can login, create accounts, update profiles... I need the site to create, read, update and delete data in Salesforce. Leads, contacts and other custom ...
1
vote
1answer
22 views

Is it possible to use messageDefinitionSends for multiple business units with one app?

I have previously created and have been using one app to perform triggered sends with messageDefinitionSends. I now have the additional requirement of creating more sends that are defined under ...
0
votes
0answers
21 views

Issues on integrating with Salesforce Site

Our implementation includes integration from an external server which tries to make a HTTPs request to a Visualforce page hosted on a site in salesforce.This requests includes certain header ...
3
votes
1answer
54 views

System.JSONException: Apex Type unsupported in JSON: Object

I was trying to parse json to apex but i was getting System.JSONException: Apex Type unsupported in JSON: Object My apex code was public class patdetils77 { //public String strBody{ get; ...
1
vote
1answer
24 views

Deserialize JSON to Map - EchoSign REST API response help

I am making a call to the EchoSign REST API and I need to get the signing URL of the most recently signed document using an EchoSign query. I am using the following: HttpRequest req = new ...
3
votes
0answers
35 views

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

When I try to query ValidationRule via REST (Tooling) API it's returning weird error: Query used: ...
0
votes
1answer
53 views

ExactTarget (Marketing Cloud) Get Message Rest API call returning 500

I am attempting to retrieve all messages from our ExactTarget instance for an ETL. I am following the documentation from ExactTarget's code@ site. However the calls are returning a 500 Internal Server ...
2
votes
1answer
55 views

Update Opportunity Using rest API; Error : 400 bad request in response

Example for creating Opportunity : curl https://na1.salesforce.com/services/data/v20.0/sobjects/Opportunity/0AASSFGSEID -H "Authorization: Bearer token" -H "Content-Type: application/json" -d ...
1
vote
0answers
13 views

Remove Test Sends from Send Summary API response

Using FuelSDK-Python to return a 'Send' api object type, doesn't provide me with any attribute to distinguish 'Test Sends' from others. In looking through the wsdl, I don't see any attribute which ...
0
votes
0answers
20 views

Restforce using wrong OAuth base URL during reauthentication?

I'm using Restforce to authorize via OAuth2 in a Rails app. After the oauth_token expires, when creating a new Restforce client, during the attempt to re-authorize via Restforce's authenticate!, it ...
3
votes
1answer
20 views

Issue while firing an event using ContactEvents method in Journey builder

I am trying a simple example of firing an event using Rest API in journey builder.Followed exactly the same steps as were mentioned in the link below. ...
0
votes
0answers
14 views

Rest API working from Developer Console but not from a Customer Portal site

I have a Force.com site where user logs in and can access service from a third party database. The data is retrieved using a REST API using OAuth. When I execute the REST call from Developer Console I ...
1
vote
1answer
21 views

How do I display an image that is an attachment on an sObject?

I know how to query the image with SOQL, but how can I get the actual file to display on a page? Not sure it makes a difference, but I would be retrieving the image via the REST API.
3
votes
1answer
46 views

Developing a Realtime Integration pipeline between Salesforce to Salesforce

I plan to develop an integration pipeline between two salesforce dev orgs for the following use case. Use Case : Send a custom object record (having two string fields only) from Salesforce ...
2
votes
2answers
52 views

SOQL to get all Leads that were created on particular date or range

I am trying to a REST call from java and trying to query LEAD entity to get all Leads that were created on a particular date/date range. I am unable to get working query for the same. I am doing ...
0
votes
1answer
36 views

How do I pull a report summary to a Visualforce page as simple plain text results?

How do I pull a report summary to a Visualforce page as simple plain text results? I've been searching all over and haven't found a simple solution. All examples are confusing and all code has to be ...
2
votes
1answer
42 views

Can't create Apex Class, need to convert lead via REST

I'm trying to integrate Salesforce with another service using the REST API, but it doesn't have a way to convert leads. I found this other answer: How do you convert a Lead via the REST API? but I ...
1
vote
0answers
16 views

Salesforce - Commcare integration

i am trying to integrate Commcare to Salesforce. Commcare provides its own rest api. From Salesforce, I need to call this api and upsert data into salesforce. Current approach is a scheduled apex ...
0
votes
0answers
27 views

Apex callout with .NET Rest service that returns outlook file as binary

I am trying to call a third party Rest service with Post method which return a outlook file as binary. I want to download this file at browser where browser gives option "open" and "save". Any help ...
1
vote
2answers
77 views

Why is CORS (localhost) whitelist not working for authentication?

So there are now settings to add domains to the CORS whitelist so they can access the REST API via javascript. I tried to get this to work using my localhost with an a local ssl so its ...
0
votes
0answers
25 views

User authentication in building an integration

We have an integration requirement in which we are creating a new record in an external system and then passing the id of that record to salesforce and finally updating the parent record in ...
3
votes
2answers
75 views

Possible Username-Password OAuth Authentication Flow security issues?

We have chosen to use "Username-Password OAuth Authentication Flow" over the "Web Server OAuth Authentication Flow" and "User-Agent OAuth Authentication Flow" because we need to login silently, ...
2
votes
0answers
38 views

How to check whether a user has write access to a field

I recently got this error: Faraday::ClientError: INVALID_FIELD_FOR_INSERT_UPDATE: Unable to create/update fields: LeadSource. Please check the security settings of this field and verify that it is ...
1
vote
1answer
43 views

ExactTarget REST API - Error Code 10006, no details

I'm trying to post data into an DX using the Fuel API, specifically as described here. This worked for a prior DX, but I was asked to change to a different one, where I'm receiving a rather unhelpful ...
1
vote
1answer
46 views

Sample 3rd Party APIs to practice Salesforce Apex callouts

Are there any sample 3rd party APIs that I could make use for practicing Salesforce Apex callouts.
1
vote
1answer
33 views

Calling Apex REST class from post install script

I need to call an exposed Apex class in my dev org from the post install script. This post install script will run on the installation of the managed package on a clients org and will send the package ...
2
votes
1answer
35 views

Does a 304 response count toward api-usage count?

When making an API call with If-Modified-Since header - if the response returns with a 304-Not Modified will that use one of my call allocation? Also can the If-Modified-Since if supplied in a list ...
1
vote
0answers
33 views

Retrieve “Authorization” header using apex

I have an apex class which has access rights to a salesforce site @RestResource(urlMapping='/testsite/*') global with sharing class MyClass { @HttpPost global static void doPost() { ...
1
vote
2answers
77 views

Cannot use the contactEvents method to serialize Event data

I'm not sure if this is related, but since the March 6 Release, I haven't been able to serialize Event data into an Event Data Extension using the Fuel REST API contactEvents method. I've tried using ...
2
votes
1answer
42 views

Cannot associate Asset to Campaign - REST API

I am seeing a general error when trying to posting an Asset to a Campaign (Create a CampaignAsset). The post ability was working about 1 week ago. Even the SDK examples from FuelSDK-CSharp no longer ...
8
votes
1answer
68 views

Name field of Group sObject is Not Nillable but returns null

I request the metadata for the sObject Group via: GET /services/data/v32.0/sobjects/Group/describe/ HTTP/1.1 In the resulting JSON i see the following metadata at the fields property: { ... ...
0
votes
0answers
30 views

Get Instance Url with valid OAuth Access Token

How do I get the Instance URL with just a valid OAuth Access Token? I don't have any other information, for example, I don't have the client_id or client_secret. If I make an assumption that the ...
0
votes
2answers
68 views

Rest API request timeout

We use Salesforce integration with WCF service. Currently, we are facing an issue of operation has timed out. We add chatter feed with mention using REST API and other operations doing using SOAP API. ...
1
vote
0answers
24 views

Inbound REST integration web service

I want to get leads which is getting cerated on a another server, when every time it get created. Eg : In broadbean when the new person register i wan to save the information of the register person to ...
3
votes
1answer
140 views

Best design for an external-system-to-salesforce integration

We have to integrate our Salesforce Org with an external system (ES1). The integration requirement is as below: ES1 has a custom object CO1 and ES1 is the MASTER for this object’ records. This object ...
0
votes
0answers
19 views

EndPoint error; extract target, post

Could you anyone check the endpoints of extract target? It seems that I cannot get the right endpoints of extract target rest API. https://webservice.s6.exacttarget.com/Service.asmx cannot open. ...
1
vote
0answers
21 views

Creating Knowledge Articles with Rich Text Field

I have been asked to create a knowledge article with a Rich Text field in my org via NodeJS. So far i am able to fetch the records for the articles that i create manually. What i want to achieve is to ...