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
20 views

how to write the test class of the following apex class

Here is my apex class, I would like to create the test class of it so that its coverage code must be 100%.Can anyone help me to create its test class. @RestResource(urlMapping='/v2/getUpsell/*') ...
2
votes
1answer
36 views

PDF Generation Salesforce

I'm kinda stuck in the middle of all the limitations Salesforce has for creating a pdf out of a Visualforce page. What I have is a Visualforce page that takes some parameters and I use to rerender as ...
2
votes
1answer
17 views

Unrecognized field “attachment” when POSTing a Chatter FeedItem with a file

I'm attempting to create a new Chatter FeedItem using the Salesforce REST API. I'm constructing a multi-part request with the following parameters: { "feedElementType": "FeedItem", "subjectId": ...
-1
votes
0answers
3 views

Ajax callout from latest salesforce1 version not working

I am making an ajax callout to a google maps api(URL), from a VF page that is built for salesforce1 (iPad). The api I'm using is reverse geocoding. When I debugged, the $j.Ajax function was not ...
0
votes
1answer
17 views

public rest service

I have a requirement to create a publicly accessible web service. This is what I did 1) Set up a Site on my org called publicWebService https://sandbox.cs14.force.com/publicWebService/ 2) ...
0
votes
1answer
15 views

Downloading all lead data through oAuth2 API

Completely new to the Salesforce API. I'd like to simply download all lead and contact information from a connected user's account - that is, anything which has an "Email" field. I've only briefly ...
1
vote
1answer
25 views

Using Address type with Force.com Toolkit for .NET

I am trying to insert a new Person Account using the Force.com Toolkit for .NET (which is working brilliantly for everything but this so far). The insertion works except for the Mailing Address field ...
-2
votes
0answers
10 views

How to display wrapper list (made from http response ) from continue method to vf page [duplicate]

VF page code :-- <apex:page Controller="filenetcontroller" action="{!getiib}"> <apex:form > <table width='100%'> <tr> <td width='25%' ...
1
vote
1answer
40 views

API for Validating OAuth Access Token

Here is my usecase, I have two apps, one written in rails and other is written in R. App written on rails acts as landing page. From there we can go in to app written in R. We are using Salesforce ...
1
vote
1answer
27 views

How to show wrapper list records in vf page if that list we made from http response

VF page part :- <td > <apex:pageBlockTable value="{!doclist}" var="WrappedCustomer" cellspacing="2" columnsWidth="50" rendered="{!showpage}"> <!-- value="{!doclist}" --> ...
1
vote
1answer
23 views

White Labeling oAuth login page

We have a use case that requires our customers to login on our website. Our customer identities are stored in salesforce as part of our communities section. On our website we redirect users to ...
0
votes
2answers
25 views

read url data in rest integration

Through REST API I am capturing url for a particular image now,I want to read the data from that url in blob format and then attach that image in sales force , can any please help to read the data ...
2
votes
1answer
32 views

What is http status code for API_DISABLED_FOR_ORG

I am debugging an issue with calling salesforce API and I need to know what is the http response status code for : "message":"The REST API is not enabled for this ...
0
votes
2answers
30 views

rest API for Querying on Account

I am new to APIs'. I have a requirement as follows. 1) Account has a field called entity ID which is unique. 2) Other system will use my API to query for the Accounts which have entity ID. So how to ...
1
vote
0answers
20 views

Tab limit exceed, how to check the most/less visited tabs and the actual tabs

This is slightly different question to the one asked on How do I see how many custom tabs have been created? and I think it could be handy. I have the same issue as him, I have more custom tabs that ...
3
votes
1answer
51 views

How to get the SFDC Apex (Schema.SObjectType.Case.fieldSets.getMap() ) in java?

I need to get schema.SObjectType values , those values are dynamically used in SFDC Apex class. Do we have any API which i can able to get those fieldset values in java , i tried Enterprise,metadata ...
0
votes
0answers
11 views

OpenID Oauth API Authentication

I have a connected Application that is setup with the Oauth using an Open ID authentication provider server. The use case is a user logs into my website that uses the same authentication open ID ...
1
vote
1answer
51 views

To call an external URL from salesforce

I have a requirement where I need to send the Opportunity Information along with the Account fields to an External HTTP URL as JSON whenever the Opp stage is updated to Closed-won. As a response I ...
1
vote
0answers
74 views

RETS API for salesforce integration [closed]

I have to display CRMLS RETS(Real Estate Transaction Standard) Data feed in my visualforce page is there any WSDL/API for CRMLS RETS Data feed ? Can any one help me how to achieve this requirement. ...
2
votes
1answer
30 views

Confused about Managed package combined with Connected App

So I don't understand a few things, so I'll restate some things I know or believe and will move from there. You don't need a package for a Connected App to be used with OAUTH flow/REST API access. I ...
3
votes
1answer
40 views

Error while uploading content document through visualforce page with javascript to invoke Force.com REST API

I'm working on a visualforce page to give our portal users ability to upload Content Documents to Library. I'm using the solution in this article: http://www.allsalesforce.com/articles/share/756339/. ...
3
votes
1answer
67 views

How to overcome 120 sec timeout in REST webservice calls?

I have a requirement where a user can request some data as an email attachment from one of our visualforce pages. I am fetching the data over a REST web service call from an external system. Using ...
1
vote
0answers
9 views

How connect the community user with User-Password Flow via REST API? [duplicate]

I'm newbie in SalesForce development and need to get access to community pages using the User-password login. I already got access with this flow using a common user to authenticate. In this case, I'm ...
0
votes
0answers
22 views

Displaying the images in php throught rest api from salesforce

how to display images in sales force at php site through rest class .in below class where i am querying the images based upon the id send from site and then decoding the obtained image and passing it ...
2
votes
1answer
41 views

How to post a file in binary format to a RESTful web service?

How to post a file in binary format to a RESTful web service? Any suggestions will be appreciated. Thanks in advance
0
votes
0answers
32 views

invalid_grant error code when trying to get the access token

I am able to get the "code" in my redirect Url but unable to get access token. I tried sending POST request using POSTMAN and also from java code but "invalid_grant" error i got. Response ...
0
votes
0answers
29 views

How create a Live Agent Session by REST API

I read documentation: https://resources.docs.salesforce.com/196/latest/en-us/sfdc/pdf/live_agent_rest.pdf https://piotrczechumski.wordpress.com/2014/06/22/live-agent-rest-api-documentation/ and ...
0
votes
0answers
22 views

Writing a rest api callout in a salesforce trigger [duplicate]

I've a Rails Rest API hosted on an amazon instance. I've created a couple of custom objects and now every time, a record for the custom objects are created, updated or deleted, the same callout should ...
0
votes
0answers
17 views

Identify Line Charts and Grouped Line Charts using analytics API

I'm recreating salesforce dashboards in a separate web application. To do that I use Salesforce Analytics REST API. By using Analytics API, I want to distinguish Non-Grouped Line Charts from Grouped ...
2
votes
2answers
63 views

how to call rest API from Html or javascript

i have one rest class for insert account , it's working with workbench.developerforce.com but now i want to call same using HTML or JavaScript , how can i do ? My Code : ...
0
votes
0answers
33 views

Upload profile picture from Active Directory

I'm attempting to create a powershell script that will automatically sync a user's profile picture with the one set for the user in Active Directory. We are not using Identity Connect at the moment, ...
0
votes
1answer
27 views

Implementing Web Server OAuth Authentication Flow

I am trying to implement Web Server Authentication Flow.I have two orgs , source and destination.In destination org I have created connected app and rest resource where I am using post method of rest ...
1
vote
0answers
28 views

REST API List View Results - 25 record limit?

I can't seem to find this information anywhere, but it seems that Salesforce imposes a limit of 25 records to be returned from a list view results call to the REST API. Does anyone know if this is at ...
1
vote
1answer
19 views

CreatedBy field inaccessible by partner portal user

I have an app that accesses the API. Both regular users and partner portal users can login to the app. I am doing a query through the API on a custom object but the CreatedBy field returns null when ...
1
vote
1answer
16 views

Trying to dev a Web2Activity - Need direction

I am a web dev with novice experience implementing API integrations. I have a php based website that currently has multiple web2lead forms spread across the site. There are few instances where I ...
1
vote
1answer
23 views

Rest API report type object relation

I tried to retrieve report type object relation from rest api. I have checked almost all documentations about this but could find anything about it. Could you please help me if you know a way to get ...
0
votes
0answers
26 views

REST API get CurrencyIsoCode of single Currency org

So with a multi currency, my understanding is I could check the CurrencyIsoCode of the record. For single currency, it's all a corporate default, right? But the identity, user, and organization ...
0
votes
1answer
44 views

How to assign a valid RecordType on Lead creation

I have a service that's creating Leads on a user's behalf using the Salesforce REST API calls. I have a new user whose account is having trouble because I guess I need to set a RecordType on Lead ...
0
votes
0answers
23 views

REST API for sending triggered email to a subscriber list, or get subscribers in a list?

Is there a way using the Exact Target REST API's to send a triggered email to a list of subscribers (i.e. a distribution list)? We need to regularly send emails to a distribution (i.e. for monthly ...
2
votes
0answers
23 views

ExecuteRestApi doubling up SalesForce.com in called address

Afternoon everyone, I'm having an issue when using the ForceClient ExecuteRestApi method. When using it, instead of going to this address: ...
1
vote
0answers
31 views

Rest API - Duplicate products and partners are added to opportunities

I'm trying to add 2 products and 2 partners to an existing opportunity through REST API. Even though both products and partners are different, they have the same name and product code in SFDC. ...
3
votes
0answers
47 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 ...
8
votes
1answer
54 views

UserType - REST vs SOAP

I am noticing a difference in the "User Type" field returned from the REST UserInfo Endpoint (link) vs the SOAP getUserInfo() method (link) as follows: SOAP Standard PowerPartner REST STANDARD ...
2
votes
1answer
63 views

Difference between ApexTrigger and ApexTriggerMember

I am trying to understand how to manipulate triggers via the Rest API (turn them on and off). What is the difference between the "ApexTrigger" and "ApexTriggerMember" object? Does any one have any ...
1
vote
1answer
52 views

Cross reference works for ID but not for External Id

I am facing INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY while creating CaseComment object with external id CaseNumber for Case parent object. I am using the profile with "Partner Community" user ...
0
votes
1answer
66 views

How to get session id dynamically in salesforce rest api

I am trying to connect one sf org to anaother. I am using the below class to initiate the call from command button. I copied session id of target org and hard coded here in the class which then ...
2
votes
1answer
62 views

Securing a REST API

Once the Connected App is created, how is access granted to various endpoints exposed as REST Services via Apex REST? For example, if we have a Class called CreateCustomer, and it is decorated like ...
0
votes
0answers
32 views

REST API - Get All Categories for articles

I am trying to display all the categories to access all the articles in a FE. Scenario Category Group: Categories ParentCateg Son 1 Son 2 My idea is to get first all the categories and then, ...
0
votes
1answer
41 views

Help required ..Invalid session id in salesforce rest api

I am getting Invalid session id when i am executing the below code. Please let me know where i am doing wrong. public class ResttestController { public String response{get;set;} public ...
1
vote
1answer
24 views

How do I create a listener within my org to let others POST to it and save data?

What should I look into to create a service within my org to let others POST to my org and save data? For example, I have a list within my org and want to POST to it from outside salesforce (let's say ...