Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rest-api]

REpresentational State Transfer (REST), or RESTful, web services provide interoperability between computer systems on the Internet. The Salesforce REST API provides a powerful, convenient, and simple Web services API for interacting with Force.com.

3
votes
1answer
390 views

Salesforce opportunity stages

Is that possible to get the stage name, probability and forecast category using SOQL/Apex/APIs ? and I could not find that you can pull that data.
4
votes
0answers
21 views

Calling the UI Api from a community with a custom domain name - getting sun.validator exception [duplicate]

Context: we're using the UI api to get some Record Type dependent picklist values back. This is happening in a community context. In the lower environments (dev, QA) this works without issue. The ...
0
votes
0answers
101 views

Getting 400 bad request with Salesforce API at User creation

I used this payload to create a user on Salesforce. But the response contains a 400 Bad Request message. I'm using salesforce version 45.0 and use WSO2 Identity server as the provisioning client. This ...
0
votes
2answers
189 views

How to call a third party api from salesforce

I am into a integration project and its new to me, till now I have share the standard Salesfroce REST API, apex class to get and post data from third party website. Now the third party webite as a api ...
0
votes
0answers
16 views

Create Salesforce Community User using Rest API [duplicate]

I am trying to figure out if it is possible to create a Salesforce Community User using the REST API. I would use a kind of Site.createPortalUser() method to create the Account, Contact and User in ...
0
votes
2answers
118 views

Lookup field in restApi

I try to make a restApi call for create. One field in this Object is a lookup field. How is the syntax to make an api call with a lookup field in the iOS Salesforce MobileSDK? I tried: request = ...
1
vote
0answers
28 views

Current currency mode of an salesforce org

Ran into a scenario where an org enabled advanced multi currency and populated records and decided to switch back to basic currency. They didn't delete records in the DatedCurrencyRate table after ...
0
votes
0answers
19 views

ISO 8601 date/time parsing incorrectly from API input

I have a REST API pushing data into a Marketing Cloud data extension and SFMC appears to be transforming it to the system date/time vs the original input from the API. eg. I have a record with an ...
0
votes
4answers
30 views

How to find the schema for a sobject

I am trying to build an API which under the hood will perform CRUD operations against the Salesforce API. I'm using the node-salesforce library for communication with Salesforce. An example of ...
0
votes
2answers
477 views

Data Extension API: How to add record in data extension with no primary key via API call

I have a data extension which do not have any primary key. I need to add new records via API to that data extension. How can I achieve that?
0
votes
1answer
31 views

First error: You have uncommitted work pending. Please commit or rollback before calling out [duplicate]

I am getting this error while running the batch. Any way to fix this. thanks global class FileImpoLog implements Database.Batchable<sobject> { global Database.QueryLocator start(...
0
votes
3answers
83 views

How to write SOSL IN query

I've following SOQL query - SELECT Id, Name, Email, Account.Id, Account.Name FROM Contact WHERE Email in :emails Here emails is a comma separated list of email ids. Can I write the same query in ...
0
votes
0answers
38 views

Export report to excel template

I am trying to export/download a salesforce to an excel template. The template should be formatted with design and columns similar to the columns in the report. The template is stored as an attachment ...
0
votes
1answer
20 views

Connect SFDC with Other App, and this App with SFDC

I need send information to other aplication, and this application will send me the result. In my case, we have a community with opportunitys. When the Opp is closed, user can click on a button that it ...
2
votes
1answer
110 views

Bulk API 2.0 Upload for files bigger than 150Mb

I'm trying to use the Bulk API 2.0 to upload big files. I need to know how I have to upload the data in case the file converted to base64 exceeds the 150Mb allowed. After reading the documentation I'...
2
votes
1answer
356 views

Error calling a custom Rest API in Salesforce

I am facing a weird issue and was wondering if anyone had faced this error. Here are the details: I have written a Custom Rest Service in my Salesforce Sandbox org named CustomAccountService which ...
0
votes
2answers
423 views

Callout to SAP from Salesforce using REST API

I am trying to pass a json data to an external URL. With a basic knowledge, I have added them to remote site settings. The sample URL is http://xyz-xyz.sap.xx.com:50000/xyz/xyz. I have created an apex ...
1
vote
0answers
10 views

REST API: Last email sent/received

Using the REST API I'm trying to pull, for a certain contact, when was the last date of email communication with them - last email sent to them. My logic was to query a contact's activity history, ...
1
vote
0answers
58 views

How to use ampscript from Marketing Cloud to make a callout to salesforce rest api?

Anyone know how to use ampscript from Marketing Cloud to make a callout to salesforce rest api? The REST API I need to call from ampscript is listed below: /services/data/v45.0/query?q=SELECT ID , (...
2
votes
1answer
378 views

Create Asset hierarchy in single REST API call - Parent and child assets

I would like to create Asset hierachy with a single REST API call, providing root Asset and his child Assets (Documentation). I can't do this because it seems that Asset.ParentId field doesn't have ...
1
vote
3answers
355 views

How to automate finding and deleting a person's data in Marketing Cloud?

I would to know what ways are available to find all instances of a person's data and delete it in Marketing Cloud (ExactTarget). I have a list of People that we need to delete out of Marketing Cloud. ...
6
votes
2answers
706 views

API Access to Trailhead Data

Trailhead seems to have an API to access trailhead data about badges, project, modules, roles, users etc. but it requires an API key to use. Does anybody know how to get any API key to use this API? ...
1
vote
1answer
48 views

Issue while creating Apex class using API

I'm using REST API to create Apex Class in Salesforce org. It worked in my testing for multiple orgs, but for a customer I'm getting this error - Can not create Apex Class on an active organization. ...
0
votes
0answers
15 views

Salesforce REST API Update Order

I am trying to update an order, using the REST API. What is wrong with my request? POST https://na82.salesforce.com/services/data/v30.0/commerce/sale/order/8011R00000AHdHkQAL?_HttpMethod=PATCH HTTP/1....
4
votes
1answer
370 views

Can't create new contact via API

I am using the ExactTarget REST API. I am able to get my access token successfully via OAuth and can make some GET requests (i.e. https://www.exacttargetapis.com/contacts/v1/schema) that return the ...
0
votes
1answer
23 views

Generate JWToken from salesforce using Consumer Secret

I am trying to connect to an API and based on their requirement, JWToken is required to make a call and the JWToken must be signed using the provided consumer secret. Now, they have a sample code in ...
2
votes
1answer
394 views

How to return full report (>2000 rows) using rest api?

I am unable to fetch a full report using the Salesforce REST analytics API. As was posted on another question, I am using the following solution(python): reportFilter = { "reportMetadata": {"...
-1
votes
1answer
67 views

Retrieve subscriber status changes via API

I need to get the information about subscriber status change using SFMC API. Is there an API call that can get current status of subscriber along with the date on which the status was last modified? ...
0
votes
0answers
40 views

Create dynamic rest api url in apex

I have a requirement where I have 4 fields in which a user will fill phone numbers. On clicking save it will make a Rest API call. The 4 phone numbers have to go in an array in the URL as shown below. ...
2
votes
1answer
414 views

Retrieve Security Token via APEX or a better way?

We have developed a portal accessed by users who use our product - a desktop application. In addition to what our desktop app does, it needs to make API calls directly to Salesforce, authenticated as ...
2
votes
1answer
401 views

Expose Site context via REST with Community Guest User Access

Having a community site and planning to build mobile apps. Is it possible to have the guest user authentication from a mobile client? Below are the concern. Community user registration need to be ...
2
votes
1answer
393 views

REST API: create dependent picklist values

I am aware that it is possible to create dependent picklist values using the Metadata API but I want to use the REST API. I know how to create triggers, classes, and pages but I can't wrap my head ...
1
vote
1answer
385 views

Live Agent Chat Rest API Issue

I have enabled the live agent in sandbox1 and I'm trying to invoke the same from sandbox2 using the Live Agent Chat REST API using the jquery in visual force page.But I'm receiving some errors. <...
0
votes
1answer
38 views

Rendering Visual Force page as PDF via the REST api

The documentation suggests that a Visual Force page can easily be rendered with apex: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_output_pdf_render_in_apex.htm // ...
0
votes
1answer
367 views

Salesforce to Salesforce integration using XML ,soap and HTTP request?

I am new for integration.Here i want to create one visual force page with username and password fields in one developer edition.So that if i give login id and password of another developer edition,we ...
0
votes
1answer
30 views

Access values from Object retrieve by REST callout

I'm retrieving this response from a REST callout for Layouts and I want to access a current key of this Object: This is how I managed response: Map<String,Object> tokenResponse = (Map<...
3
votes
1answer
368 views

Error 500 when using Live Agent REST API with prechatDetails

Hello I am developing an iOS app allowing to chat with a service agent using live agent. The app is using Live Agent REST API. Everything was working fine till I added prechatDetails to the ...
0
votes
2answers
31 views

Catch block code coverage for @HttpPost and @HttpGet REST API

I have some code in my catch block for both @Post and @Get methods. I need to cover catch block to get to 75% for GET, got catch block covered for POST Here is an example : // POST my JSON : [ ...
2
votes
1answer
138 views

Execute Apex on Record Load Trigger?

I am working with a custom rest api that connects to our billing service, We are wanting to, when we load a salesforce record, for it to execute an apex script. We want to use that script to query ...
4
votes
1answer
411 views

Marketing Cloud REST API - Contact Delete operation is not currently enabled

Tried to delete a contact in Marketing Cloud through the API /contacts/v1/contacts/actions/delete?type=ids { "values": [ "1131976968" ], "DeleteOperationType": "ContactAndAttributes" } ...
0
votes
1answer
113 views

Named credential for gotoWebinar app (oauth v2.0)

Is it possible? I'm trying to do it but had some errors My steps where: 1) Create the app in the Developer Center. On the Application URL I left the suggestion https://api.getgo.com (I guess this ...
0
votes
2answers
43 views

What sourceApplicationExtensionId should I pick when I create event definition

We are building an application that should be distributed in the Salesforce AppExchange. Part of it is allowing the marketer to trigger journeys based on a custom event that we provide, something we ...
0
votes
1answer
399 views

API Calls Made Within Last 7 Days Report Missing

I am trying to track down a set of API calls to our SF instance that pushed us over the limit, but I can't hunt down the elusive "API Calls Made Within Last 7 Days" that I've read so much about. I ...
4
votes
1answer
373 views

possible to access REST API of another SF instance with portal user from scheduled class?

I have a scenario where I'd like a user of another SF instance to register in our portal, then have a scheduled class on their end reach out to a REST endpoint on our end. Upon reviewing the oAuth ...
0
votes
0answers
119 views

Could not get any response using Postman

I have been making a post call to Account from postman but I am unable to create a Account. But I am successfully create a push Topic.
0
votes
1answer
91 views

Marketing Cloud Rest API and Business Units

We have our main BU (business unit) at the top of the tree, and one of the other BUs is TEST. In TEST we have created an Installed Package and in that installed package we have added a Server-to-...
1
vote
1answer
53 views

SMS Concatenation and MobileConnect API

I'm working with MobileConnect to create notification text messages that will be triggered through the API. Further, there can be multiple notifications per contact/mobile number for an individual ...
0
votes
1answer
454 views

Triggered Send Data Extension - Updating without Primary Key

I have the following Use Case. On a third party Website a User can subscribe for a Newsletter with the email address only. The subscription triggers a Triggered Email in Marketing Cloud an writes the ...
0
votes
2answers
366 views

Create Subscriber in Exact Target from External Salesforce Org

We have a simple requirement of creating a subscriber in an Exact Target Org from an external Salesforce Org. The requirement is on webpage on click of a sign-up button the user email id will be used ...
2
votes
1answer
47 views

Unable to fetch complete records from bulk query batch result

I am using simple-salesforce python library using REST to call bulk services which is working fine till calling but for large dataset library continuously poll the batch status and spit all result (in ...