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

learn more… | top users | synonyms

0
votes
1answer
18 views

API Usage Calculation

How is the API Usage/API Request increased? i am updating 8000 records via a batch in which each record need a callout but my API usage shows only 400 API used after completion of batch
0
votes
1answer
7 views

Search for an existing Marketing Cloud contact using REST API

I'm trying to search for a contact by contact key using the SFMC REST API but all I am getting is a HTTP 500. I am using a known contact ID. Endpoint: (POST) https://www.exacttargetapis.com/contacts/...
0
votes
1answer
8 views

How can I set Triggered Send Priority through REST API?

I have some time sensitive emails I am triggering through the REST API messageDefinitionSends resource. however, I have noticed they linger around in the queue for a while before sending. I saw with ...
1
vote
1answer
26 views

Retrieving a Document's body with Python + REST API

I am trying to retrieve a documents body via the REST API with Python, but am unable to actually get a response back. Here is a snippet of my code: header = {'Authorization': 'Bearer ' + self....
1
vote
3answers
36 views

Authentication issue with api request

I have wrote a api for a mobile application. When i try to test this api on my browser by providing the url i am getting an error <Errors> <Error> <errorCode>...
3
votes
0answers
31 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 ...
0
votes
0answers
26 views

{“error”:“invalid_grant”,“error_description”:“user hasn't approved this consumer”}

I am trying to get the access token for sales force based on OAuth 2.0 JWT Bearer Token Flow.I configure all the related things which is needed and also approved my app like following, https://login....
0
votes
1answer
16 views

How can i add activity history to salesforce?

I'm trying to export some call, email activity history to sales force. How can i achieve this? Activity History Doc says that its a non editable fields. Is there any other way to do this? Using ...
1
vote
3answers
30 views

Can protected custom settings be edited by the API?

I'm preparing a managed package however I would like to store some protected custom settings that the user cannot see (access keys, and the like). I'd like These settings to be populated once the user ...
2
votes
1answer
141 views

License Limit Exceeded Error while creating user

I am facing License Limit Exceeded Exception when trying to insert a new user through Apex rest api class and error is given below Insert failed. First exception on row 0; first error: ...
0
votes
0answers
33 views

error invalid_grant error_description invalid assertion

I want to use OAuth 2.0 JWT Bearer Token Flow for getting events logs but when i try to get then it show me following error, { "error":"invalid_grant", "error_description":"invalid assertion" } ...
0
votes
1answer
33 views

How to use IBM java jar files in apex or Visualforce?

I am trying to incorporate IBM JAR files in apex or Visualforce in order to make an API call? Should I be storing the JAR file folder in static resources? If yes, is there a way to utilize the java ...
1
vote
0answers
24 views

salesforce Integration [closed]

I want to learn salesforce Integration with hands on experience with other system using REST and SOAP API. I have gone through the trailhead module but it was of just basic level. From where should I ...
1
vote
0answers
14 views

Connected app Consumer Key and Consumer Secret are not working after sandbox refresh :(

I got problem with salesforce connected app Consumer Key and Consumer Secret in Full sandbox after every refresh. When I create a new connected app and use it's key and secret, it is working. What ...
1
vote
0answers
28 views

Upserting Duplicates despite three part primary keys

Context: Someone in charge of customer journeys discovered duplicates in a resulting dataset based on one of our data extensions; we are now tasked with routing out the source of said duplicates. ...
1
vote
1answer
34 views

Passing Sobject to apex rest method using JSON

I am exploring a way to pass a sobject to an apex class. Below is my apex class: @RestResource(urlMapping = '/resturl/*') global with sharing class check { public boolean Hide { get; ...
0
votes
0answers
18 views

Is it possible to get data in Rest API in without sharing mode

As apex class can run in system mode (without sharing mode) in Salesforce platform . Is there a way, where chatter file rendition rest api will run as like apex without sharing mode (access other ...
1
vote
1answer
33 views

Salesforce REST API and Javascript Integration

I am following this guide to invoke a REST API on salesforce server side and get a JSON response. I created a salesforce site, and added the VF page Ensured that the page and classes have access. ...
0
votes
2answers
28 views

How to get knowledge article publish via REST?

Reading https://resources.docs.salesforce.com/sfdc/pdf/salesforce_knowledge_dev_guide.pdf It looks to me like it should be possible to publish a master article and settranslation of articleversion ...
1
vote
1answer
21 views

URL_NOT_RESET error when creating account using POSTMAN

I have used Postman and authenticated with Salesforce Sandbox using Oauth2. Requested token and added the bearer token to the header without issue. However when I attempted to submit the below ...
0
votes
0answers
23 views

marketingCloud-rest api, MobileConnect error creating a contact and subscribing to keyword

I'm new to MobileConnect and I'm trying to create and subscribe a contact via Rest API, I am able to create the contact but not to subscribe to a specific keyword. I have created the keyword '...
0
votes
0answers
13 views

Image in normal form from base64

I am trying to convert my image in normal form from base64. how can i do it? i am sending you my code and my response also tell me that what should i do. Response {email=ashjain1601@gmail....
0
votes
1answer
36 views

convert an image from base64 to normal image fromat in salesforce integration

i am working on integration on Rest API. i want to convert an image from base 64 to normal format in salesforce How can i do it. i am giving my code here. if there is any isues, suggest to me. code:...
1
vote
1answer
47 views

REST API - Check if Lead or Contact given ID

I have been looking for an answer but cant find one so thought I would ask here. I am currently using the Salesforce REST API. I am able to: 1. Get Authentication Token 2. Create Lead 3. Update Lead ...
0
votes
1answer
22 views

Marketing Cloud - duplicate primary key on event data update

I have set up a Data Extension that contains my custom data for Accounts, with a field 'ContactID' that is set as a primary key and mapped to SubscriberKey. I have then created a Journey Builder Event ...
0
votes
0answers
16 views

Using the Marketing Cloud Webhooks Subscription API to track email sends

I note that there's a new Webhooks subscription API available to track email sends, clicks, opens, bounces and unsubscribes. The feature is pretty well documented and so are the accompanying REST API ...
1
vote
1answer
37 views

How to use AND in workbench REST explorer

Say I have a query that looks like /services/data/vXX.0/query/?q=SELECT+Name+From+Account+WHERE+ShippingCity='San+Francisco' how would I add a condition like zip=XXXXXto this query? I tried using &...
0
votes
1answer
17 views

Does my org CS version limit which Streaming and REST APIs I can use?

If I'm using Salesforce "Spring 16" (CS10), does that org impose limitations to which Streaming API version I may use? (currently, our Java apps use v33 push topics) Is there any benefit to using more ...
3
votes
1answer
14 views

Deploy/Download Profile ListView

I need to deploy & download a Profile ListView, it seems typically a ListView would be included in the object's XML, but when I try to download this it gives me this error: package.xml - Can't ...
1
vote
1answer
53 views

OAuth callback url

I have 2 different users in force.com i.e user1 and user2. I have developed a rest resource in user1. IF user2 logs in by using a connected app after OAuth authentication, I want to access the rest ...
0
votes
0answers
34 views

Example connect or authenticate to salesforce from pure Javascript

I want to authenticate using only JavaScript in a HTML page. The objective is to do something similar to web to lead: an html file that could be used to create records in a custom object without using ...
0
votes
1answer
45 views

Consuming External Rest API in apex

I have a requirement where I have to consume external REST API. I have the URL for the same and the values for the parameters to be passed to get a response XML from the service. I am not getting how ...
0
votes
1answer
17 views

Unable to insert ListView via the REST API

When I try to insert the ListView object using the REST API I get the following error: [{"message":"entity type cannot be inserted: List View","errorCode":"CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY","...
1
vote
1answer
32 views

(400) - Bad Request when requesting auth token using Wordpress

We're using some house-built wordpress plugins to create emails in SFMC from wordpress content. The original plugin used the Fuel SDK, which from what I can tell, does not support remote sending, only ...
2
votes
1answer
55 views

400 Request is not a valid ChasitorInit - live agent rest api

Hi i'm trying to reach this endpoint with live agent rest api https://d.la1-c1-frf.salesforceliveagent.com/chat/rest/Chasitor/ChasitorInit Then got 400 Request is not a valid ChasitorInit Here is my ...
3
votes
1answer
39 views

Rest API Save multiple contacts to Task

I'm creating a new Task with multiple contacts and I know the WhoId works for one contact, but what about when you want to attach multiple contacts? Is there anything like TaskRelations available in ...
3
votes
1answer
39 views

Get Asset via REST API with only a Account Id

Given a list of Account ID's, I want to get all assets associated with them. So far, I worked out I can get the account by calling : /services/data/v32.0/sobjects/Account/{accountId} Seems simply ...
1
vote
2answers
85 views

What Python library is recommended for pulling large amounts of data?

Our company has Gigabytes of email send data (Sends, Sent, Emails, Opens, Subscribers, etc). We would like to maintain a local relational database of all this Send data. Our current attempt uses the ...
1
vote
0answers
20 views

Displaying what leads did in a product in the CRM

I have built a product that tracks leads as they move around the product, similar to a website where visitors can view different pieces information. I want to be able to add what information they look ...
1
vote
1answer
55 views

Call a flow in apex REST

I need to call a flow, to create or update an sObject, in my REST class : @RestResource(urlMapping='/object') global with sharing class RESTObject{ RestRequest req = RestContext.request; ...
4
votes
1answer
89 views

Postman in Salesforce

If we are using json in post Method by clicking Raw i have given the Request body as like { "name" : "Wingo Ducks", "phone" : "707-555-1234", "website" : "www.wingo.ca.us" } For this body i ...
1
vote
0answers
22 views

Pull ContentDocuments through the API

We are trying to pull all of the ContentDocuments out through the API as an admin user, but we are having issues. Unlike the UI, the APIs do not allow listing all the records in Content, even for ...
1
vote
1answer
29 views

GET dataevents using REST API

Is it not possible to GET dataevents by the REST API? I want to GET a dataevent and see what it's value is.
1
vote
1answer
30 views

Converting Cookie String to List<Cookie>

I have cookie String value returned by code below: HttpResponse response = http.send(request); String cookieString = response.getHeader('Set-Cookie'); Now I am trying to construct a Pagereference ...
2
votes
2answers
36 views

How do I create a post to my Opportunity feed via REST API

How can I create post to an Opportunity's feed via the REST API?
0
votes
0answers
15 views

Is it possible to use Rest URI with “lightning.force.com” and consume using java/.net

Is is possible to use a URI with "lightning.force.com" instead of "instance.salesforce.com" and consume it from an external service.
1
vote
1answer
48 views

Trigger to use HTTP callout and update record with the results

I have been trying to integrate Google Shortener API into my salesforce org. I wrote a class to make the call out, but am having difficulty bringing the value back into the record. I have a custom ...
1
vote
1answer
28 views

Unable to do insert/update (upsert) operations using PUT method with out using rest resource class in REST API

i am trying to do insert and update operations using PUT method in REST API with out using rest resource class in workbench/postman. But i am getting following error as shown in image. Can anybody ...
2
votes
3answers
73 views

Status=Bad Request, StatusCode=400 on rest api call

I am hoping someone can tell me why I am getting a bad request when this executes Here is my rest api code @RestResource(urlMapping='/emailservices/*') global class EmailInsert { @HttpPost ...
0
votes
2answers
94 views

How to make a callout to a REST API service in Visualforce

I have a VF,which shows org wide limits, Salesforce Limits {!Response} and the controller is: public with sharing class SFLimitController{ public String Response { get; set;} public ...