Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
12 views

How call and get values from rest api in salesforce

hey I am new to salesforce, i need to call a rest api and simply get values to populate a list using apex. i have no idea where to make the actual rest api call and how to pass the returned value to ...
user avatar
0 votes
2 answers
38 views

why my JSON deserializeUntyped giving me Exception

I'm creating a new REST API in salesforce and receiving the below JSON in Restrequest string {"event_source":"","event_time":"2022-05-25 08:12:40.151","...
user avatar
0 votes
0 answers
8 views

Use SwitchServer for dynamic url changes for Chat rest API call

I am using SwitchServer to get the newURL for Chat API endpoint. But the response newUrl is returned for requests to Visitor resources if the Live Agent instance URL is not correct for the ...
user avatar
1 vote
0 answers
29 views

Get Knowledge Articles using Salesforce REST API

I'm working on an integration of Salesforce Knowledge Base consuming the Salesforce REST API (following this guide). I'd like to consume the Knowledge Articles that are loaded in my Salesforce domain. ...
user avatar
  • 11
0 votes
0 answers
15 views

Integration batch job + Data Encryption : Need some suggestion

I have written a batch job to push Open Case record every one hr from Salesforce to External system using REST API. I need to Encrypte the data and push it to the external system. Below is the Class ...
user avatar
  • 659
0 votes
2 answers
32 views

Speed up REST SOQL Query

Other than reducing the complexity of the Query is there any way of speeding up how quickly you can iterate through a SOQL Rest Query? I can't use bulk SOQL as I require Parent-to-child relationships ...
user avatar
2 votes
2 answers
32 views

rest api SOQL Query max records

The documentation states that if it cannot return all records in the query then you can use the next records URL to get more records. Does this still have the same limitation of no more than 50,000 ...
user avatar
3 votes
0 answers
45 views

How can I tell if a field is a non-custom formula field in the REST API?

We have an integration that allows users to specify criteria to listen for on arbitrary object types in Salesforce. The user specifies the object type they want to listen to updates on and then they ...
user avatar
0 votes
3 answers
33 views

Get values from nested JSON dictionaries in Apex

I'm trying to make use of the Jira Rest API from within Salesforce. I am somewhat useless with Java, so hopefully someone can point me in the right direction. I can use the following Apex to get an ...
user avatar
  • 21
0 votes
1 answer
36 views

Apex REST API call throws 401 error, status: token expired or invalid

I am trying to call external REST API from Salesforce. Sometimes I get error 401 with messages token expired or token invalid. Is there a way to prevent calling API when token is not valid. The thing ...
user avatar
0 votes
1 answer
32 views

Getting tasks stored in List Views

I need to get the tasks that are stored in list views that are selected by the user. I've tried a couple things that I'll outline below: HTTP API request I've tried making a REST API call to get the ...
user avatar
0 votes
0 answers
38 views

I am trying to delete account record using Postman tool. I have created apex class and method to delete account. but the account doesnt get deleted

@RestResource(urlmapping='/v1/Account/*') global class AccountManager { @httpDelete global static String deleteAccount(){ RestRequest request = RestContext.request; String requestURI = ...
user avatar
1 vote
1 answer
21 views

Rest API - Which has higher priority in a SOQL query, LIMIT clause OR Sforce-Query-Options: batchSize?

When a SOQL query has both a LIMIT clause and a Sforce-Query-Options: batchSize with different but valid values, which one of these gets a higher precedence? A query with only LIMIT clause SELECT ID ...
user avatar
-1 votes
1 answer
28 views

is it possible to add uri parameters on a http callout using named credentials?

Context: I have to call, from a source org, a HttpGet method from a target org. This method will return a list of records that match a certain value on a field, which I have to send from my source org....
user avatar
-1 votes
1 answer
16 views

Web service to get related opportunity Ids based on converted lead records

I am trying to setup a web service where I call to get a list of opportunity records based on converted leads from a specific source. I am trying to create a list of opportunity ids based on a SOQL ...
user avatar
  • 5
0 votes
1 answer
39 views

How to get Send Classification ID, Delivery Profile ID and Sender profile ID in SFMC?

I am trying to make an API call from Postman to make a test send. I am trying to implement the solution given here - https://gortonington.com/email-send-preview-and-test-sends-via-rest-api/. I am ...
user avatar
  • 3
-4 votes
0 answers
34 views

Unable to get response for fetch method

Unable to get response any response for below post request triggerd, can any one please help on this import { LightningElement, wire,track,api } from 'lwc'; import getClientId from '@salesforce/apex/...
user avatar
  • 9
0 votes
1 answer
23 views

SOQL Queries using the Rest API results are close to half that of the Salesforce reports

I have a query in SOQL SELECT+Event.Id,Event.CreatedDate,Event.StartDateTime,Event.EndDateTime,Event.Subject,Event.DurationInMinutes,Event.OwnerId,Event.Status__c,Event.Intro_meeting_summary__c,Event....
user avatar
  • 21
2 votes
1 answer
30 views

Updated API method to detect merged records

Following the answer on this question, I had been using SELECT Id, isDeleted, masterRecordId FROM Contact WHERE masterRecordId != '' and adding AND SystemModStamp > [the last time we checked] with ...
user avatar
0 votes
0 answers
22 views

Search Journey based on salesforce object as entry source or entry data field?

Is there a way to find out which journeys using a specific salesforce object as entry source or search them based on entry data field? I tried to search journey through this API GET /interaction/v1/...
user avatar
  • 136
5 votes
0 answers
28 views

Unable to re-parent a folder of reports using REST API

Is it intentional that I get such an error Folder parent cannot be part of a patch request body. when I try to re-parent a folder using REST API? According to the documentation PATCH allows to change ...
user avatar
1 vote
1 answer
32 views

Rest API - Returning Newly Created Fields on Create (POST)

I have an application that is creating a Salesforce Case via the API (POST on /services/data/v48.0/sobjects/Case/). This application is expected to return the case number to the user. Therefore, the ...
user avatar
-3 votes
1 answer
37 views

Consuming salesforce Rest API with out security token [closed]

I am exposing a API in salesforce which will be hit by an external c# application. I am enabled oAuth mechanism. Things are looking good but when the external end point needs to pass user id and ...
user avatar
  • 59
2 votes
1 answer
47 views

How to generate and send a PDF via REST API Request

This is a follow-up new question to This SE Is it possible to create a custom REST API Class to allow an oAuth connected app client to download a dynamically generated PDF visualforce page via REST ...
user avatar
0 votes
1 answer
22 views

Clear a Lookup Field in an upsert call through Rest API

We're building an interface to upsert records into a Custom Object through Rest API. We're building the relationship to other records through external Ids, so we're using the following json structure: ...
user avatar
1 vote
0 answers
21 views

REST resource Unicode characters not working (form data)

I'm currently developing a Rest Resource that will be able to handle post method into Salesforce. The request that I get is in form-data(!!!). It contains Hebrew characters translated into Unicode (i....
user avatar
  • 100
0 votes
1 answer
58 views

How will we get notified when agent sends the message on Salesforce chat console using rest api

We have successfully integrated salesforce live agent using rest api and couple of things are done need help on below points. Get Session Id (Working As expected). Chat Request Initiation (Working As ...
user avatar
  • 433
-1 votes
1 answer
48 views

API limits and how many concurrent API requests Salesforce can process

Just wondering if there is any limit to concurrent API requests into Salesforce. We are beginning to expose Apex REST endpoints for external systems to call. We know we have a 24 hour API limit, where ...
user avatar
3 votes
1 answer
77 views

Change Field-Level Security for custom field via REST API [duplicate]

I created a custom field through this tooling REST API /services/data/v54.0/tooling/sobjects/CustomField The API call succeed and I could see the custom fields under Setup > Object Manager > ...
user avatar
  • 35
0 votes
0 answers
33 views

When does mc api rest for journey respond with "The contact status should be Active"

We are getting the error HTTP/1.1 400 { "message": "The contact status should be Active.", "errorcode": 30000, "documentation": "" } when ...
user avatar
  • 831
1 vote
1 answer
50 views

Exposing an Apex REST API service - running into limit issues

We are trying to expose a service in Salesforce using Apex that external systems can call. This service is pretty simple. We will run a query against an object and create a response that returns an ...
user avatar
0 votes
1 answer
34 views

User Session ID Limitations?

I know we can grab the user's session ID in apex by using UserInfo.getSessionID() but what limitations are there as to what rest endpoints it can use and also is there any way for me externally to ...
user avatar
0 votes
0 answers
9 views

User Session ID Limitations? [duplicate]

I know we can grab the user's session ID in apex by using UserInfo.getSessionID() but what limitations are there as to what rest endpoints it can use and also is there any way for me externally to ...
user avatar
1 vote
2 answers
35 views

Marketing Cloud API error: "Empty or Incorrect Authorization Token" thrown when correct access token is supplied

While this appears to be a straightforward, descriptive error message, I think there may be more to it... The context: I am attempting to fire an entry event for a journey using the interaction/v1/...
user avatar
0 votes
0 answers
55 views

Error too many rows 50001 in a custom Rest API

I have a custom rest API that when is called from a third party system (this third party system calls me providing a country code like UK, DE, US... and some other parameters) I filter account object ...
user avatar
  • 1
0 votes
1 answer
62 views

Some queries under a sustained load of `N` QPS fail due to an INVALID_QUERY_LOCATOR error

I have a query with limit specified as 500 (user can request a max of 2000 records). Unfortunately Salesforce, doesn't return the results in one go, but divides the results into multiple pages and ...
user avatar
0 votes
0 answers
75 views

REST API - File Upload using HTTP Request with multiple parameter in apex (salesforce)

I'm trying to post form data using HTTP request with multipart/form-data with multiple parameters but It's always showing error "invalid file contents". {"http_code":400,"...
user avatar
0 votes
0 answers
33 views

Salesforce update summer 22 rest API v30+

I am using Force.com toolkit for PHP for our integrations and I believe the summer 2022 version is about to remove support for it and our plugin may stop working. I am thinking to use the new the PHP ...
user avatar
1 vote
1 answer
33 views

Single Sign on and API token grant

I am new to Single Sign on configuration on Salesforce and have a use case which I was hoping the community can advise upon. We have a web app outside of Salesforce. We are currently in the process of ...
user avatar
0 votes
1 answer
33 views

POST Interactions REST API - Marketing Cloud

In the following code, I pass in the REST url, the access token and the journeys I want it act on - in the from of an array of objects. The issue is that the request always fails with a 404 - Object ...
user avatar
0 votes
1 answer
75 views

Custom field created via REST API for Lead object not visible in add lead form

I created a custom field through this tooling REST API /services/data/v54.0/tooling/sobjects/CustomField The API call succeed and I could see the custom fields under Setup > Object Manager > ...
user avatar
  • 35
0 votes
0 answers
13 views

CSRF token for external system callout

I am new to salesforce development. I have a API consume apex class where I call an external system using GET method (Rest API) The external system doesn’t have any anti CSRF implementation Will ...
user avatar
0 votes
0 answers
17 views

How do I show all the cases belonging to a specific contact and also a view on all cases for the account it belongs to

In an external portal I want to be able to show all the cases belonging to a specific contact and also a view on all cases for the account it belongs to. I did find some api functionality to gather ...
user avatar
  • 63
1 vote
0 answers
140 views

Access Rest API from Google Apps Script

I am using Google Scripts to connect to Salesforce REST API. I am using the library 1B7FSrk5Zi6L1rSxxTDgDEUsPzlukDsi4KGuTMorsTQHhGBzBkMun4iDF function getService() { // Create a new service with the ...
user avatar
  • 21
0 votes
0 answers
9 views

why my patch call on lead retriggeres Assignment rules

I thought assignment rules will be triggered only once on record creation . But in case of Lead I have a marketo integration which makes a PATCH call to update existing record which is already ...
user avatar
  • 187
0 votes
0 answers
17 views

Manually uploading .HTML to SFMC content builder disrupts cyrillic-, french- and other characters

As mentioned by title, when I try to upload content to SFMC Content Builder either by; Manually uploading by drag&drop, or Upload with the API The content is created, but when I try to create ...
user avatar
  • 1
0 votes
0 answers
42 views

Display standard dashboard in different Org

I want to display dashboards used inside several other salesforce orgs (org2,3,4,...) and display them on another org (org1). I have tried several approaches involving Visualforce pages and iframes, ...
user avatar
  • 63
0 votes
1 answer
38 views

Salesforce Chat Availablity API not working

I am new to Salesforce chat API. I had a requirement to check the chat button availability status. upon research I found below API: https://developer.salesforce.com/docs/atlas.en-us.live_agent_rest....
user avatar
-2 votes
2 answers
63 views

How to create endpoint url in salesforce org to use in rest resource [closed]

Rest Api. I wanna to create a link to be able to get api calls @RestResource(urlMapping = '/GetByDate/*') global class RetutnLeadsByDateRestResource { @HttpPost global static void ...
user avatar
0 votes
0 answers
11 views

Social Studio - information about API Call for connector with internal system

Are there any API calls for integration from internal system to Social Studio that use the username instead of the internal Social Studio id? If yes, could you please provide an example? Thank you
user avatar
  • 71

1
2 3 4 5
64