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

learn more… | top users | synonyms

0
votes
0answers
24 views

salesforce and Godaddy integration [on hold]

I want to store the images in Godaddy using visualforce page. Can any body help me how to achieve these and what are the process i have to follow to integrate salesforce and Godaddy. Thanks, Chandra.
0
votes
2answers
19 views

Read timed out/Unexpected end of file from server Error

I have a third-party application running on Heroku. I am sending a GET request to this application, expecting a 200 OK from it. Here's my code for this: HttpRequest req = new HttpRequest(); ...
0
votes
0answers
7 views

Automate A/B Test via REST API

Does Exact Target provide an API where we can manage A/B tests? Is there way to send emails with A/B test configuration. I checked the documentation and the Fuel SDK php library and did not find ...
0
votes
0answers
21 views

JSON or Mutli Dimensional Array (Map<String, Object>) To URL Parameters

What's the simplest way to take an object of variable structure and convert it into a URL? I'm looking for the Apex equivalent of jQuery.param(array) in JavaScript or http_build_query() in PHP. Here'...
3
votes
2answers
35 views

Are ISV apps allowed to create unmanaged metadata dynamically?

I'm trying to create a developer tool for the AppExchange that is able to create unmanaged Apex classes dynamically (for example, after clicking a button in the app.) Does salesforce allow ISV apps ...
0
votes
1answer
19 views

Rest Api service apex class

I have created an rest api in salesforce and can be accessed using site.com with the class url, while accessing the rest api in browser I am getting response as <response> [{"attributes":{"...
0
votes
0answers
16 views

How we can call httppost from other sandbox

I have written one post method to insert record in salesforce. I want to do testing that code. Now, I have plan to build some visualforce or javascript page in other sandbox to call that post method. ...
0
votes
1answer
34 views

What is the difference between apex REST and SOAP API and global REST and SOAP API? [closed]

Apex REST and Apex SOAP are not strictly speaking APIs, but they’re ways that you can expose your Apex objects so what is the difference?
0
votes
0answers
13 views

Returning data from Heroku app to Salesforce? [closed]

anyone have an example code snippet for returning json from a java heroku app back to salesforce?
1
vote
0answers
11 views

How to size database columns for storing Salesforce fields; length or bytelength?

All fields in Salesforce have two lengths; a unicode character length and bytes length; our org uses UTF-8. We're sizing tables/columns in Oracle to accomodate our data from the cloud, my question is ...
1
vote
0answers
37 views

Why am I getting INVALID_SESSION_ID with this rest api call?

So I am able to get an oauth access token using a curl call such as the following: curl https://ap1.salesforce.com/services/oauth2/token -H "application/x-www-form-urlencoded" -d "grant_type=password"...
-1
votes
1answer
28 views

How to logout an user from connected app? [duplicate]

Note: 1) I dont want to use /secur/logout.jsp as it will log me out from all the active salesforce sessions. 2) I also dont want to use prompt=login, because if an user has a parallel active session, ...
0
votes
1answer
35 views

How to logout an user from the connected app?

NOTE: I am not interested in calling /secur/logout.jsp since it ends all the active salesforce sessions. I am developing a web application that is registered on salesforce as a connected app, so I am ...
1
vote
0answers
21 views

Create new classes by Tooling API

I have a problem with creation new APEX classes by using #Tooling API. In first scenario, I want to create one class: Steps: Create MetadataContainer By using MetadataContainer Id, create ...
4
votes
1answer
55 views

Create Report via REST/SOAP API

I need to create simple Report with Lead/Contact data. How can I do it via REST/SOAP API? REST is preferred.
2
votes
0answers
33 views

Patch Method http callout from apex

I must use this patch http callout. Is any one has idea? http://developers.goformz.com/docs/update-an-existing-data-source-1 I get error "Invalid HTTP method: PATCH" Exception. In our ...
0
votes
2answers
29 views

Make a web listener class publicly available [duplicate]

I am implementing a web listener class and want to listen to POST requests. @RestResource(urlMapping='/MyListener/*') global with sharing class ListnerClassTest { @HttpPost global static ...
0
votes
1answer
27 views

Getting all emails sent to a user via REST Api

I'd like to build a page outside of marketing cloud that shows all the emails a specific customer has recieved. Is this something I could get over the API. Campaign name, date send and (if applicable) ...
0
votes
0answers
13 views

Rest api Access-Control-Allow-Origin [duplicate]

I have a rest api, to access this api i have created a site and from this site. Using this site end user is trying to access the api in salesforce written in apex. I am able to view the return from ...
0
votes
0answers
15 views

Upsert through Bulk API without rewrite some fields if are completed

We have a problem when fields are fill with upsert through salesforce standar API rest using a csv because the upsert rewrite this fields, what can I do to avoid it?
2
votes
1answer
36 views

Salesforce Connecting two orgs through API

I want to be able to access an org's metadata from a visualforce page in another org. My needs are: Connecting my org (acme) to another org (acme2) From a visualforce page in acme, I want to be ...
1
vote
1answer
26 views

How do certain apps Authorize without connected apps? Heroku connect, Force CLI etc

I am pretty new to OAuth for public products, i am confused on how Public products do an OAuth to salesforce which do not have a connected App. I understand for any successful authorization we need to ...
1
vote
1answer
30 views

Cannot deserialize instance of base64 from VALUE_STRING value

I have a class below where I am inserting a new merchandise object and also creating an attachment to be attached with this merchandise object(in notes and attachment object) using a http POST . I am ...
3
votes
1answer
53 views

Attaching document by Calling Apex REST resource

I am trying to create an attachment in Salesforce using a Apex method which is exposed as Rest resource. I am trying to create a merchandise record where the attachment should be attached to the notes ...
1
vote
2answers
39 views

Attachment Uploaded, but not viewable by Parent Object - PHP REST API

So far I'm successfully uploading a test document to Salesforce. An ID is being returned with no errors. However, I can't see the uploaded files through Salesforce itself when I view the object ...
2
votes
1answer
48 views

Cannot find module 'forcejs'. while using angular 2 in ionic 2

I am working as a noob on my ionic 2 / ang 2 application. I am trying to set it up to use forcejs auth implementation. Now I create a basic app following the ionic 2 tutorial here - http://...
6
votes
2answers
139 views

Are service URLs in apex rest service case sensitive?

Rest API parameter are case-sensitive, Like User_Id and user_id are not interchangeable. But are services URLs also case-sensitive?
0
votes
1answer
32 views

Unable to authenticate with salesforce standard REST API from a different web page using ajax

I want to connect with standard REST API from a different domain using ajax call. Below is the ajax function I am using. function call_API() { $.ajax({ url : URL, ...
0
votes
1answer
26 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
14 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
15 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
38 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
39 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
37 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
31 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
33 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
161 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
40 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
40 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
26 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
15 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
30 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
41 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
21 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
40 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
36 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
36 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
28 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
14 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....