As of May 31, 2023, we have updated our Code of Conduct.

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
0 votes
0 answers
12 views

Uploading files with chatter REST API

I'm building a headless solution on top of Salesforce and using Community Users to log in. I want those users to be able to upload files to a case. In experience builder it is calling this endpoint to ...
Peter van den Broek's user avatar
0 votes
0 answers
12 views

Loyalty Management API's "Get Ledger History" returns Resource Not Found

This is the documentation of API call: https://developer.salesforce.com/docs/atlas.en-us.loyalty.meta/loyalty/connect_resources_transaction_ledger.htm I am doing everything certainly by the book, yet ...
TS41's user avatar
  • 1
0 votes
1 answer
16 views

Salesforce CMS Search Rest API Cannot Work

We got an error about CMS search by Rest API We run this url in workbench, always report errorCode: MISSING_ARGUMENT message: Specify a Library. /services/data/v57.0/connect/cms/items/search?...
Robert Guo's user avatar
0 votes
0 answers
40 views

Composite API to delete multiple records by an external id

I have been looking for an example of what @sfdcfox suggested for this thread https://salesforce.stackexchange.com/a/332678/133263 "The first subsequent would be a get, the second the delete call&...
Lena Razov's user avatar
-1 votes
1 answer
46 views

Using REST API to fetch data from SFMC Data View

I have seen various answers by Lukas Lunow (Is there any way of retrieving all records from a data extension via REST API for Marketing Cloud?) and Gortonington on the usage of undocumented REST API ...
Sam's user avatar
  • 11
1 vote
0 answers
24 views

Omnichannel Inventory & B2B Commerce. How to update the reservation count in Omnichannel Inventory once the reservation made from experience site

Can somebody help to have more idea on how the values for the terms Available to fulfill (ATF), Available to order (ATO), Future inventory, Quantity on hand, Quantity reserved, Reservation, Safety ...
AJMAL KUNHI PARAMBATH's user avatar
0 votes
1 answer
44 views

Delete ContentDocument through REST API permission

I'm trying to delete a ContentDocument, added as attachment in an Account, throught REST API. I'm able to retrieve the ContentDocument, Get the Document Data (requesting ContentVersion as described ...
Leto's user avatar
  • 486
-1 votes
1 answer
21 views

How to Use Dropbox Access Token of Visualforce Page in Different Apex Class To Make an HTTP Callout

I have created a visualforce page to get the code initially and after the code with redirect url I'm getting the Access Token of Dropbox. After that now I'm confused that How I can use this in the ...
VINOD's user avatar
  • 3
0 votes
1 answer
27 views

Best strategy to display API retrieved details on Salesforce record in real-time

I'm looking to utilize a rest api to retrieve details that I'd like to show on a salesforce record. Is it possible to show this info in real-time, for example when a page loads the API call is made. I'...
codeMusic's user avatar
0 votes
0 answers
16 views

Is it possible to capture all 'Not Sent' reasons from email sends on an hourly basis using REST API?

I would like to find an automated solution that runs on an hourly basis that captures all responses from email sends from the account, including all not sent records, this will need to be captured ...
nhumphries's user avatar
0 votes
0 answers
27 views

Can a Flow check if a field was attempted to be updated, even if value is the same?

I am using the REST API to upsert records by external ID, and I have a Flow that triggers on update. I have a field Refresh_Date__c that I want to default to today's date on update using the flow, ...
Erik J's user avatar
  • 101
0 votes
0 answers
30 views

Post file to SharePoint from Salesforce

I am trying to upload a file from SFDC Apex code to SharePoint HttpRequest httpRequestToSend = new HttpRequest(); httpRequestToSend.setEndpoint('https://mysharepointsite.sharepoint.com/...
user3272686's user avatar
0 votes
1 answer
31 views

How to use Web Server 2.0 OAuth flow with new "Salesforce API Only System Integrations" profile user

I am using recently announced Salesforce Integration license user for an integration using Web Server 2.0. As per the Web Server 2.0 flow, I need to first obtain the Authorization Code. To get the ...
user36778's user avatar
  • 602
0 votes
1 answer
28 views

Cannot find field level permissions on standard field

I am having some SOQL queries fail when I include the field "Street" when querying for a Lead. This is the kind of query I'm running and the error message back: SELECT Id, Name, firstName, ...
jerfp's user avatar
  • 111
-1 votes
1 answer
40 views

RestResource HttpGet close new tab

I'm currently trying to work with an integration with an external API (Lansweeper). When trying to authenticate the API, I'm running into an issue where they authenticate through an external url (...
Kevin Yao's user avatar
0 votes
0 answers
77 views

API Triggered SMS to a Data Extension

I'm trying to find a way to trigger SMS using SSJS Script Activity in the Automation Studio. The records are in the Sendable DE - is it technically possible to trigger SMS within SFMC, using API call ...
Lana K.'s user avatar
0 votes
0 answers
30 views

REST API/Community endpoint - allowChatter​AccessWithoutLogin

I tried to use Community endpoint, I'm interested in using the key allowChatter​AccessWithoutLogin = Specifies if guest users can access public groups without logging in This key changes when I ...
Yuavl_Dayan's user avatar
0 votes
1 answer
60 views

How to determine fields for which a given profile does not have read permission

Full disclosure, my expertise is not on the Salesforce side, but in .NET and SQL; however, I've been tasked with assisting my company with a data migration from our original org to a new one. The in-...
JTennessen's user avatar
-1 votes
0 answers
31 views

JSON Response CPQ API double serializing

Using Postman, I am calling the CPQ API for Read Quote. The JSON response from the standard Read Quote CPQ API appears to be double serialized see example JSON response below is this normal or is ...
Crazyfrog's user avatar
-1 votes
1 answer
45 views

How to empty the recycle bin via REST API

I'm looking for a way to empty either all object or specific objects in the recycle bin. I found a way with APEX (How do I delete records in the recycle bin?) and the SOAP API (https://developer....
Karin's user avatar
  • 1
-1 votes
1 answer
97 views

How to use tooling api to query data in Apex [duplicate]

I want to retrieve the test-coverage with tooling-soql query SELECT ApexClassOrTrigger.Name, NumLinesCovered, NumLinesUncovered FROM ApexCodeCoverageAggregate ORDER BY ApexClassOrTrigger.Name ASC It ...
Shubham Jangid's user avatar
0 votes
0 answers
34 views

Reply to Trustpilot Review Service Reviews API returning 400 Bad Request

This is my code in Salesforce HttpRequest req = new HttpRequest(); req.setEndpoint('callout:TrustPilot/private/reviews/'+reviewId+'/reply?token='+token); req....
Bestina Rajasingh's user avatar
0 votes
0 answers
32 views

How to get AgentId requested from ChasitorInit API in Apex?

I am trying to get agentId which is a property of ChasitorInit it was initiated from LiveAgent session. I have to use Omnichannel flow and apex for other custom route logic. So I have to get agentId ...
charnum's user avatar
  • 49
0 votes
1 answer
273 views

How to test uploading multipart form data via postman (File not getting opened-corrupt)

URL I am using: https://mydomain--stg1.my.salesforce.com/services/data/v57.0/sobjects/ContentVersion I am passing headers like: Then I have created a json file as mentioned in : https://developer....
user59812's user avatar
0 votes
1 answer
58 views

Composite API issue

I am trying to insert record into Member Plan object using composite API. Note : For simplicity in the below request I removed all other post in coposite API and adding only one with hard coded values ...
SFDC buddy's user avatar
0 votes
0 answers
41 views

Retrieving Scopes of a ConnectedApplication

What methods or APIs can be used to obtain the scopes associated with a ConnectedApplication Just like I get in ConnectedApp -> ConnectedAppOauthConfig
Yuavl_Dayan's user avatar
0 votes
0 answers
39 views

Unable to access nested array in External Service response in Flow

I'm sending a request to the OpenAI API to return the sentiment based on the subject and description on a Case. I'm able to send the request successfully, and I get a 200 response, but I can't get to ...
Rick's user avatar
  • 21
0 votes
0 answers
16 views

Does the REST API support sending "content builder" emails using a standard send definition and standard data extension?

We are looking to sunset use of the SOAP API to create/send emails due to the sunsetting of SF MC "Classic Content" and due to SOAPs inability to create emails using "Content Builder&...
Ethan Joy's user avatar
0 votes
1 answer
58 views

/metadata/deployRequest API deployment status: No package.xml found

I'm trying to deploy an Apex Class using Postman and the /metadata/deployRequest API. I get a 201 response, but when I check the deployment status, I see the error "No package.xml found". ...
Brandon DeMatteis's user avatar
0 votes
0 answers
42 views

How to convert HTML editor data which is in string format to messageSegments to Post a Rich-Text Comment

We are integrating our FE application with SFDC Rest API's. Which is https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/quickreference_post_comment_rich_text.htm In our FE we ...
guptas89's user avatar
0 votes
0 answers
36 views

Attach multiple files to record via API

I recently started to work with API and postman. In this case, I need to attach multiple files to a record via REST API Currently I am only able to attach a single file to a record in salesforce via a ...
Elliott Alderson's user avatar
0 votes
1 answer
27 views

Chat Rest Api ChasitorInit response OK but not reach to online agent

I am trying ChasitorInit, response status is OK but chat request is not see in the Live Agent widget. What reasons can we consider about this? Thanks in advanced. ref: https://help.salesforce.com/s/...
charnum's user avatar
  • 49
0 votes
0 answers
20 views

Adding/Editing External Services Unusually Long Load Times?

I am new to Salesforce in general, so apologies if this is not a good question. I have setup within Salesforce and External Credential and Named Credential following the documentation. Although, once ...
RSIPES's user avatar
  • 1
2 votes
1 answer
152 views

Authenticate to Salesforce in Chrome extension

crosspost from SO I am trying to authenticate to Salesforce in Chrome extension, but I am getting 400 error. If I try this code in Express.js server, it works. background.js console.log("...
Matt's user avatar
  • 73
0 votes
0 answers
22 views

How to use Infura or any other HTTP API to upload base64 to IPFS

I'm trying to integrate salesforce with Infura (HTTP API FOR IPFS) to upload image to IPFS. I have the image to upload in base64 format and the parameter infura or any other IPFS API need is file path ...
Rachel Diana Daniel's user avatar
0 votes
0 answers
68 views

Connect REST API without HTTPS url from Nextron Desktop Application

I'm building a desktop application using this package "https://github.com/saltyshiomix/nextron" Which is essentially electron + next.js In development mode, it is using localhost. From ...
Lyn's user avatar
  • 101
0 votes
1 answer
46 views

I want to retrieve SFMC Journey Entry source details and Details of Fields used in Decision Split using API

I have used the following code to fetch Salesforce entry event Details and Fields used in Decision split. But its not working HTTP/1.1 200 { "Page": 1, "PageSize": 50, ...
SFMC's user avatar
  • 21
0 votes
1 answer
54 views

HttpCalloutMock is not working. Methods defined as TestMethod do not support Web service callouts

My Mock class is not being called in the test class. So it is throwing 'Methods defined as TestMethod do not support Web service callouts' error. PremCalloutServiceTest - This is the test class @...
Dilipan Manoharan's user avatar
1 vote
1 answer
29 views

Issues with Json2Apex

I've generated JSON2APEX class for complicated JSON, but when I created an instance of this class I can't deploy class where this instance is created, compilator doesn't see inner classes and throws &...
RandomNickname23's user avatar
1 vote
1 answer
67 views

Trigger isn't running after Custom Object Insertion from REST API

I'm having some issue with having a trigger run after inserting an object from a Rest API call. I've confirmed that the object is being created, and I've tested the other sections of the code manually ...
Kevin Yao's user avatar
0 votes
1 answer
61 views

Custom API Integration Won't Work For All Salesforce Editions?

A custom integration has been set up, and currently getting a Invalid Session ID error when trying to call API endpoints with valid authorization token and instance url which are generated during ...
JXS's user avatar
  • 3
0 votes
0 answers
67 views

Composite Graph API: Associate reference with an ID from a GET

I'm trying to use the composite graph API to associate a record to a parent using just a GET for the parent to get the ID. My request looks like this { "graphs": [ { &...
James's user avatar
  • 305
0 votes
1 answer
1k views

Internal server error - 500 in Postman API request while updating Salesforce Marketing cloud mobile contact subscription attribute

As I heard re-optin to mobile contact using import definition doesn't work. I could see there are 2 options to re-optin: QueueMO API request Update Contact I don't want to send sms while re-optin to ...
Basavaraj Arakeri's user avatar
0 votes
0 answers
165 views

Composite Request - Conditional reference

I have a basic composite request to Insert a case and fill the conatactId based on Email. Where no contact was found the 2nd sub request failed because the reference does not exist. Is there a way the ...
Raphael D's user avatar
  • 495
1 vote
2 answers
122 views

What is the actual number or calculation for the Connect API Rate Limit

I'm in the process of designing something that will use the Connect REST API and am not able to find any documentation on what the actual number of calls is limited to or how to calculate them. I ...
Peter Knolle's user avatar
  • 28.9k
0 votes
1 answer
103 views

How To POST Request To PHP Endpoint And Process Values

I'm trying to send data from Salesforce to an endpoint hosted on an external server. The endpoint is written in PHP that will insert a new record into an external MySQL database. I've got the ...
joshholloway's user avatar
-1 votes
1 answer
31 views

Enterprise WSDL and MFA [closed]

I use an enterprise WSDL to connect to Salesforce as API user Will this require MFA to connect in 2023? Is MFA required for my integration users? Details of MFA enablement can be found here
Doug Connor's user avatar
0 votes
1 answer
76 views

Refresh Email template -Transactional Journey

I've an account with dozen of "Transactional Journeys Email" and every time that I make a fix/change on the template (used by the email in the trigger) I have to manually go on each trigger ...
Frogmouth's user avatar
  • 200
0 votes
0 answers
21 views

REST Request from FSC Community throwing a 500 error

We are using the Promise based architecture to send REST Requests from Salesforce using the component: https://github.com/SalesforceBobLightning/sfdx-lightning-api-component We are creating ...
Moiyyad Sufi's user avatar
0 votes
1 answer
27 views

Is there a way to retrieve the time data the Contact passed the Activity in Journey Builder via API?

Is there a way to retrieve the time data the Contact passed the Activity in Journey Builder via API? please check the image.the highlighted part is the data I hope to retrieve
Sujin Hwang's user avatar

1
2 3 4 5
69