Tagged Questions

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

learn more… | top users | synonyms

4
votes
1answer
52 views

How can I “close” a Task from the REST API/Apex

Since all picklist values for the Status field on Tasks are configurable I don't think I can simply set the Status to "Completed" as that picklist value could have been deleted/renamed. I tried ...
-1
votes
2answers
21 views

How to find all Salesforce records with a specific WhoId?

I have a Lead or Contact. I want to find all of the Accounts and Opportunities for that specific Lead or Contact. Is that possible? What would the query look like?
1
vote
1answer
16 views

Is it a good Idea to add an Event to *everything* related to a given record?

I'm building an app where I'll log an event that an email was opened to Leads and Contacts that match that email address. I'm wondering how many times this Event should be duplicated. Does it make ...
0
votes
0answers
14 views

Rest api integration between salesforce and sharepoint

I want to integrate between salesforce and sharepoint . I have also done the http callout and was able to get the response in salesforce. Now I want the files/data from Sharepoint to be displayed in ...
2
votes
0answers
11 views

Using the REST API, how can I tell that a user has blocked OAuth access vs revoked OAuth access?

It seems that I get the same authentication error message the token is invalid. Is there a way I can tell the difference as the vendor? Note that I am not referring to an Apex app. My app is purely ...
1
vote
1answer
22 views

How to get all Contacts and related Opportunities for a given email?

For a non-Apex app (web REST API only), how can I consolidate these requests: find all contacts that match an email address find all opportunities associated with those contacts from 1 Right now, ...
2
votes
0answers
16 views

Upload an Attachment via the Rest API

I'm having an issue uploading attachments via the REST API. When trying to upload attachment data (i.e. data about the attachment and the associated base64 binary data) I'm getting a 400 result (Bad ...
1
vote
1answer
17 views

What happens to Salesforce OAuth tokens when a user blocks your app or revokes access

I have a non-Apex app that relies on OAuth only. I'm trying to test out what happens if the user revokes access or blocks the app and/or then unblocks the app. In my limited testing, it seems that I ...
1
vote
1answer
16 views

How to write a query to find Events of a specific Lead or Contact?

Using the REST API (no Apex code), I want to get all the Events of a specific Lead or Contact (I have the Lead Id or the Contact Id) that has a specific string in the Description. What would that ...
2
votes
3answers
33 views

How long does it take a create/update/delete to complete with the REST API?

The logic for my code is: look for a Lead with a specific email; if none exists, create a Lead with that email address. The problem is that this code is running pretty frequently for the same email ...
8
votes
3answers
143 views

How do I send SMSes from Salesforce?

What would be the approach to create an SMS application (either in Salesforce or other language) to send SMS from Salesforce? Is it feasbile if the client-side process is done through a streaming API ...
2
votes
1answer
20 views

How to find all Events with a specific URL in the description?

I keep getting a MALFORMED_SEARCH error for this find using the REST API: FIND {"http://www.google.com"} IN ALL FIELDS RETURNING Event After removing one character type at a time, it seems that the ...
1
vote
1answer
23 views

How to implement business rules before calling Sales Force REST APIs

I am new to SalesForce and would like to know if we can have wrapper around SF REST APIs to add business rules? Before passing SF REST API parameters we would like to apply some business rules and ...
1
vote
1answer
14 views

How to search for email addresses using Salesforce REST API?

I'm using Restforce and their example for looking for a string is this: client.search('FIND {bar}') I'd like to extend to look for a specific email address like this: client.search('FIND ...
3
votes
1answer
41 views

Which Salesforce web APIs are available to Group Edition?

I've been writing a REST API-based service and testing on a Developer Edition org user and it's been working fine, but it stops working for a Salesforce user with a Group Edition org. I get this ...
3
votes
1answer
16 views

apexrest: controlling HTTP error codes on exceptions

Is it possible to control what HTTP error code apexrest returns when an exception occurs in the code? By default it returns a 500 error and a developer who's working on the system that's consuming ...
0
votes
2answers
19 views

How to extract all Chatter messages of a user in Apex

I want to do some language analysis based on Chatter messages and never manipulated Chatter with Apex code before. How would I get all the Chatter message text of a certain user? Would I need to ...
0
votes
1answer
25 views

emailSimple REST action

I'm trying to invoke an action through the Force.com REST API but I haven't been able to figure out the correct syntax of the request body. I looked for an example of this command but didn't see any. ...
2
votes
0answers
17 views

How to make the WhoId on an Event take me to the member and not the lead/contact object

I have an application that dynamically handles CRUD operations for Salesforce data. For foreign key values on an object, I read the first three letters of the ID to determine the object type being ...
1
vote
1answer
53 views

REST API calls to 3rd Party (Pardot), multiple @future callouts

Setup: Pardot (3rd Party services I'm using) requires you to request an API_Key by submitting your email, password, and user_key so that you can then use the api_key with the user_key to do any API ...
6
votes
1answer
30 views

REST API - Sforce-Limit-Info header not returned

I'm using SFDC's REST API to access org data. According to the docs (https://www.salesforce.com/us/developer/docs/api_rest/Content/headers_api_usage.htm), each request to the REST API should return a ...
3
votes
1answer
67 views

API calls and user context

Overview: Mobile device (call service on ESB) —> ESB (calls salesforce API to get data) —> Salesforce.Mobile devices and Salesforce supported by the same IdM system. Description: A custom API ...
1
vote
1answer
54 views

OAuth JWT Token Bearer Flow returns Invalid Client Credentials

I am trying to use OAuth JWT Token Bearer Flow to connect to the Salesforce REST API from C#. I have configured a Connected App within Salesforce and uploaded the certificate used to sign the token ...
0
votes
1answer
21 views

How to get case information?

I am beginner to SFDC programming and wanted to get some information about whether that case exists or not. something like that. I am connecting my .NET application to SFDC and trying to get case ...
1
vote
1answer
18 views

Issue for Create trigger send for cloud portals

Failed to start the selected triggered send(s): A problem occurred Starting the following Triggered Sends. Please contact Customer Service for additional information.Name : NewTestDemo\ External Key : ...
0
votes
1answer
32 views

How can I get a metadata from APEX RESTful service?

I'm a front-end developer and my knowledge is little bit in Salesforce. I'm developing single-page application in AngularJS to Visual Salesforce and faced a problem with an error: ...
1
vote
0answers
20 views

Possibility of mass update using Salesforce Rest api

Is there any way by which we can update and insert records using rest api of salesforce in apex , if not how to do it with bulk api in apex . As object DatedConversionRate do not supports DML for ACM
0
votes
0answers
27 views

How to set the Authorization Header

Can anyone tell me how to set the Authorization Header in Apex callout? I get the Error message "Unknown authorization header" when connect to Linked in.. My authorization header as follows ...
0
votes
0answers
24 views

Can you please advise on REST API best practices in terms of batching the amount of rows per call, when adding to a data extension?

Can you please advise on REST API best practices in terms of batching the amount of rows per call, when adding to a data extension? One of our clients tried inserting data in batches of 50 records as ...
1
vote
0answers
33 views

How to Create Attribute Groups in Salesforce Marketing Cloud Contact Builder using the API

Is it possible to create an Attribute Group in Contact Builder, simliar how you can create Journey Builder Interaction Workflows? I can't find a RESTful method to do this. It would be great if this is ...
1
vote
0answers
38 views

Can I get a Lead View to show converted Leads?

I am using apex code to give me all of the leads in a lead view like this: Database.QueryLocator ql = Database.getQueryLocator('select Id from Lead limit 1'); ApexPages.StandardSetController ...
0
votes
1answer
45 views

How to make API calls

I want make an API call with an external website to login to external web site using salesforce custom object data on click of a button on a custom button. Can I know how to start with when an a API ...
2
votes
1answer
41 views

salesforce mobile sdk access to UserInfo class

I have created a mobile app in Android and iOS using the Salesforce SDK. I want to add functionality of multi currency by using isMultiCurrencyOrganization() method from the UserInfo class. Now I am ...
0
votes
0answers
58 views

salesforce integration with java using REST API

help me out to go forward in salesforce integration with java using REST API. These are the steps i came across and unable to find the way. Post a request to login.salesforce.com through REST ...
0
votes
0answers
24 views

Library to convert SF Fields into HTML input fields

Does anyone know of a library that converts SF fields into HTML elements? I want to build an HTML form for Contacts but I'd like to do it more dynamically. I'm iterating over all of the fields ...
2
votes
1answer
40 views

Tackle Callout Limit Salesforce

I am creating an managed application for salesforce appexchange listing. App Functionality: On certain update events a trigger will send a few non-critical information to a external server ...
8
votes
2answers
46 views

Query Remote Site Setting?

Can we get all remote site settings in apex ? I would like to check if a remote site setting exists or not.
1
vote
2answers
53 views

JSforce authentication popup dialog issue

So I am working with JSforce lib and I am loging into SFDC by using this code which works perfectly but the problem is when the popup opens and get the access token in the URL nothing happens next the ...
3
votes
1answer
67 views

Is it possible to get record data and SObject metadata in a single API call?

We're trying to handle custom fields for things like Tasks. Is there any best practice for doing things dynamically? We've made a webapp that lets users from various organizations connect. So it's not ...
1
vote
1answer
69 views

Rest Request to insert/update record in external system

I have to integrate SFDC with an external system where I have to insert/update a custom object record. External system team is asking to send a REST request to update/insert the record. I don't know ...
2
votes
1answer
52 views

Session ID invalid when Schedulable class runs

I have written the code below to call a future method from a scheduled class. The problem is that the session Id is expiring by the time the scheduled class runs and hence the future method is never ...
3
votes
1answer
84 views

Using the REST api to retrieve multiple objects with a single request

I'm trying to figure out how to best retrieve all of the ids returned by calling getUpdated. I'm using the REST API and I don't see anyway of retrieving a list of ids with a single request. ...
0
votes
0answers
24 views

Certificate Error with Rest API : PKIX path building failed

I am getting this error "PKIX path building failed " when i make Rest call to web-service. Earlier it was working fine, but recently some certificate expired from web-service side and this ...
2
votes
1answer
37 views

How do I get the actual image data from servlet.FileDownload?

I'm using the rest api to query the data from an account: Account/001234abcde and images attached to the account are stored like this: ...
0
votes
2answers
22 views

Shows Custom tab in salesforce account that data sent from custom portal in Salesforce

We have an application, where user can login with Salesforce Account. and logging user can send the messages/greetings to his contacts. I want to display those sent messages/greetings in his ...
1
vote
0answers
29 views

fields required to create a task through Rest API in native android app

I am getting error 405 when trying to create a new task through the rest api in a native android app see 405 Error when Trying to Create Task through Rest API Now I am guessing it might depends on ...
1
vote
0answers
59 views

405 Error when Trying to Create Task through Rest API

I am trying to create a Task object through a RestRequest in a Native Android App (RestRequest.getRequestForCreate). The Problem is that I am getting 405 error Method Not Allowed What am I doing ...
1
vote
2answers
73 views

ExactTarget: Common data loading strategies?

Dear ExactTarget specialists, I am trying to get a hang of how the ExactTarget Marketing Cloud works, and I am struggling in finding information on a seemingly basic task: Loading data into the ...
2
votes
2answers
45 views

Getting an object's fieldsets returns lowercased API names

Map<String, Schema.fieldset> fieldMap = Schema.SObjectType.Object_Name.fieldSets.getMap(); this properly returns a map of the fieldsets paired with their API names but the names come in all ...
0
votes
1answer
31 views

Access other website API

How to access other website api from salesforce? I wanna access the career builder api(http://developer.careerbuilder.com/endpoints/index#collapse4) For that What I've to do?