Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

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

Problem with pages numbers in knowledgeArticle via REST API

I am creating a pagination of the knowledgeArticle object. after query execution: /services/data/v52.0/query/?q=select+count()+from+knowledgeArticle I receive the quantity: totalSize: 1349 Then I ...
Kamil G.'s user avatar
1 vote
2 answers
34 views

Get a list of things

The documentation and the nomenclature is extremely confusing so excuse me if I do not use the correct terminus technicus. I can do GET /services/data/vXX.X/sobjects/foo/describe to get a description ...
chx's user avatar
  • 111
0 votes
0 answers
22 views

Composite API is not working with Master detail relationship

I have two custom Objects: CustomA CustomB CustomA has master-detail relationship with CustomB object. I would like to create record of both the objects in a single API call using composite API as ...
mkb's user avatar
  • 101
1 vote
1 answer
52 views

How to Avoid Heap Size Error on response body

Daily orders loads records but some records are missing to load to fix this we have created another batch apex to call each day records and we are comparing with already exists benefitdisbursement ...
Afrose ahamed's user avatar
-1 votes
0 answers
15 views

View documents from instance to another

I have a request to view documents on the record page of an account in "instance A" from another "instance B" based on externelId (which is the id of the same record in "...
SFDEV's user avatar
  • 1
2 votes
1 answer
57 views

Public REST API - ignore Authorization header

I have created public REST resource using APEX https://stream-capricorn-3239-dev-ed.scratch.my.salesforce-sites.com/services/apexrest/helloWorld @RestResource(urlMapping='/helloWorld/*') global class ...
Ragul's user avatar
  • 511
0 votes
0 answers
21 views

How to modify the serviceAppointment to assign it to another serviceTerriory?

I am trying to update the service territory of a service appointment. I was trying to use below API provided by salesforce scheduler. [![][1]][1] It gave me the following example: [![enter image ...
Zongliang Han's user avatar
0 votes
1 answer
69 views

"message": "JSON request body must be an object at [line:1, column:2]","errorCode": "JSON_PARSER_ERROR"

I attempted to send an HTTP request and transmit a JSON to the Salesforce REST API in the following manner, but encountered the following error: Error: [ { "message": "JSON request body ...
yukichia's user avatar
-1 votes
0 answers
22 views

Lead Conversion via REST [duplicate]

I'm working on integrating with the Salesforce Lead Conversion API using PHP and cURL, but I'm encountering an error that says "The requested resource does not exist". Here's the relevant ...
Mohammad Fanni's user avatar
-1 votes
0 answers
34 views

Allow users to add attachments in SFMC cloud page and attach / upload to salescloud contact

I have a cloud page / web form that includes a way for a site visitor to upload a file. Now this file should be stored in salesforce as an attachment on the contact itself and not only in content ...
David R's user avatar
-2 votes
1 answer
48 views

external api call when people unsubscribe in Market Cloud

What is the correct way to handle this situation: if a user unsubscribes in Market Cloud, will an API call trigger and send the user's email to another system? I should use automation studio or ...
Paul Fan's user avatar
0 votes
0 answers
26 views

API not loading CSV file for Decision Matrix Rows

Using the Salesforce Business Rules Engine, I am able to manually upload a CSV file associated with the Decision Matrix Version to provide the header and rows used for Input and Output values. I am ...
Gunnar's user avatar
  • 101
-1 votes
0 answers
22 views

Get information of Usage-based Entitlements from API

I see that I can access Salesforce information from TenantEntitlementUsage via an API, but I can't find documentation specifying which fields I can retrieve. I need to find this information. Does ...
liliozorio's user avatar
1 vote
1 answer
60 views

Marketing Cloud API : The count of mobile numbers or subscribers cannot be zero

I am trying to send SMS via Marketing Cloud from SF Apex. My postman is working fine and it is shown below Postman Payload { "mobileNumbers": [ "PHONENUMBERHERE" ], ...
Exps's user avatar
  • 263
0 votes
0 answers
34 views

INVALID_CROSS_REFERENCE_KEY when upserting a custom object record via API

I've written a new API in GoLang to handle object syncs from our proprietary software to sync with the records in Salesforce following the steps to "Upsert a Record" in Salesforce on the ...
palmPixel's user avatar
0 votes
0 answers
33 views

Google Cloud Connection Works with Apex Auth Class but not with Named Credentials

I have hosted an API on google cloud run and the downloaded the service account credentials in below format. { "type": "service_account", "project_id": "...
aloomatar's user avatar
0 votes
0 answers
26 views

How to get the current logged in users information on Web App API Integration React JS?

I am currently Integrating Web App API integration with React JS. I am authenticating a user using this link https://${config.sfmc.tenantId}.auth.marketingcloudapis.com/v2/authorize?response_type=code&...
Student's user avatar
  • 11
0 votes
0 answers
65 views

Are we able to whitelist salesforce (apex) servers through domains? Ips are not working

One of our clients uses a rather strict firewall to restrict acces from external systems. We are trying to send data to one of their soap endpoints using apex. This Stack exchange answer helped to get ...
itsmebasti's user avatar
  • 6,437
0 votes
1 answer
69 views

Using External Credentials to access REST API in current Org

I am looking to refresh a dashboard via a scheduled job using the Dashboard REST API. Historically, you would set up a Named Credential and Auth Provider, but I assume we can do this with the new ...
BritishBoyinDC's user avatar
1 vote
1 answer
47 views

Access Named Credentials with Guest User

I have created a Rest Service which accepts incoming Webhooks from Concur to notify Salesforce an Expense Report is ready. I am then using a Callout Class to fetch the Expense Report details from ...
Jeff Callahan's user avatar
0 votes
0 answers
34 views

why get INTERNAL_SERVER_ERROR when using API to get service resources

I am using API to get service resource. the full documentation can be found here: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/requests_ls_getappointmentcandidates.htm I am ...
Zongliang Han's user avatar
0 votes
1 answer
36 views

I want to break down a string REST response and only store some parts of it in a Salesforce Object

I'm receiving a Json response from a REST callout and populating a custom object with that information. One of the required fields is Secondary Locations, for this field I'm receiving a list of ...
David Boada's user avatar
1 vote
0 answers
38 views

Issue with logEmailOnSend on the emailSimple api route

I'm trying to login the email with the logEmailOnSend option on true and a recipient id. When the logEmailOnSend is turn off everything works fine. Maybe the relatedRecordId isn't the right one but i ...
Titouan's user avatar
  • 21
1 vote
0 answers
51 views

REST API query doesn't understand custom relationship while it worked with CLI

We're trying to query our Salesforce data from another process. A colleague did a PoC with his own credentials on the CLI and got results. The query he created contains custom relations and that ...
Ashala's user avatar
  • 11
3 votes
1 answer
77 views

Getting REST API Token in Salesforce unsupported_grant_type

I want to invoke REST API of Salesforce (they are at: https://mySFDomain.my.salesforce.com/service/data/v57.0/composite - for example). On an Enterprise Edition org, I can access with request like: In ...
khoa_chung_89's user avatar
1 vote
1 answer
33 views

REST call with GET method and Body

I am trying to make a REST call with method as GET and body included . This call works fine from POSTMAN however from salesforce the call at server is received as POST call. Can i make any change in ...
Sara's user avatar
  • 1,175
1 vote
0 answers
29 views

'WebhookUtility' for job id '707Uo00000Krifj' : Callout loop not allowed

I have created this apex code for calling out to the client portal. it works fine, when test it on sandbox. But in Production it gives out error time to time : Callout loop not allowed This is the ...
Twopir Support's user avatar
2 votes
1 answer
31 views

Permission needed to update Asset

I am trying to update category ID for Template-based email type Content. But getting permission error when tryin to update via API. What permission is needed to update the content?
SKing's user avatar
  • 21
0 votes
1 answer
34 views

I have 2 salesforce org and I am making api call from one org's lwc component to get access token of another org but I am getting below error

This is my JS code from LWC component. import { LightningElement } from 'lwc'; const MY_URL = 'https://login.salesforce.com/services/oauth2/token'; const Data ='username=username.com&password=...
shubham kakade's user avatar
1 vote
1 answer
73 views

How to establish API connection to a Trial Enterprise Edition org?

I have an enterprise edition free org. This has API access as I have connected to it over Postman via a connected app that I created. The problem I'm facing is that I want to connect to this org over ...
Apex Srinivas's user avatar
1 vote
0 answers
41 views

Handling Complete Error Messages in JSForce Promises for Salesforce Apex REST Calls

In a Salesforce instance we have a web service to be consumed by an external service. Considering the resource that the ws will consume, it has been designed in such a way that for each request ...
Tzinm's user avatar
  • 21
0 votes
0 answers
26 views

Update custom object records from REST api class exposed through site

My goal is simple: call a REST api in salesforce from another platforms webhook and update data in salesforce. For this I am trying to update a custom object record using REST api class that has been ...
Dnyaneshwar K's user avatar
0 votes
1 answer
51 views

SFMC - how to load DE with assets' tags via REST API & SSJS?

I am successfully using the /asset/v1/content/assets REST API to populate a data extension with information about all the images in my business unit, via an SSJS script in Automation Studio. However, ...
jwb96's user avatar
  • 1
0 votes
1 answer
36 views

request to services/oauth2/token responses with 'invalid_client_id'

What i've already done: Created Connected App Generated self-signed certificate Provided cert to app Changed Policy to 'Admin approved users' Provided Profile to app, created user with this profile ...
pincet's user avatar
  • 883
0 votes
0 answers
27 views

Post API converts automatically to get method in Salesforce

We are trying to hit our salesforce instance from outside using webservices. 3rd party is using post as a method. But in salesforce it is not recognized as post request. We have used these lines in ...
Dipankar Karmakar's user avatar
1 vote
1 answer
35 views

Should a Before-Save record-triggered Flow fire when a record is created from a Composite REST API call?

We are creating records in our organization by making Composite Requests through the REST API. For the most part, things are working as intended. However, none of our Before-Save (Fast Field Update) ...
kennyc's user avatar
  • 349
0 votes
1 answer
37 views

Upload resulting gif of AMPscript BarcodeURL() to content builder

I want to send a member card as barcode via SFMC/Whatsapp. However, Whatsapp content does not allow the use of the BarcodeURL() function to generate the barcode image. My plan now is to use a code ...
Arthur Noort's user avatar
0 votes
0 answers
19 views

How to create event relay programatically

Is there any way to create an event relay programmatically or via the REST API? I've only seen a way to create it from the UI. Including the documentation here
Marcus's user avatar
  • 19
0 votes
1 answer
78 views

Nested query doesn't work

EDIT: I am using simple-salesforce with the REST API to make requests. I'm trying to get for each Case all the EmailMessages, and for each EmailMessage, all its ContentDocumentLinks (from which I can ...
Labo's user avatar
  • 111
0 votes
1 answer
84 views

Allow calls to most Salesforce APIs from Apex in Unlocked Package

This Apex code from an Unlocked Package HttpRequest request = new HttpRequest(); request.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId()); request.setHeader('Content-Type', '...
Robert Sösemann's user avatar
-1 votes
1 answer
28 views

create an opportunity with a related campaign using the campaign name

I've loaded opportunity data using the data loader, but I'd like to load new records directly from the REST API. When I load the data from the data loader application step 2b allows me to select ...
jjamesjohnson's user avatar
0 votes
1 answer
58 views

Display only in SF from external api request

All the documentation I see about external apis seems to suggest that the response/results need to be saved in salesforce in order to be displayed in the salesforce ui. I'm new to salesforce so please ...
Phill Pafford's user avatar
0 votes
0 answers
32 views

Creating Call Logs with Recordings via Salesforce REST API

I am successfully using the Salesforce REST API for various functionalities. However, I have a specific requirement regarding call logs and recordings. Is it possible to create a call log with an ...
Waqas Ali's user avatar
0 votes
0 answers
38 views

Send multiple Content Document in a rest api in salesforce [duplicate]

I am sending related attachments from an email message to an external api but the files arrive damaged. I have tried with other files from other sources but it doesn't work in salesforce. Here is the ...
Felipe Peña's user avatar
0 votes
0 answers
37 views

REST Web Service problem: /apex/FileNotFound

I built a REST Web service to create a custom record everytime a call is made in a calling app. Json is sent to the web service via webhook. So far all the tests I did in sandbox were succesful and ...
Sebastian C's user avatar
-1 votes
1 answer
69 views

Assistance with Salesforce Rest API for Converting Leads to Contacts

I am a newcomer to Salesforce and have been successfully utilizing Salesforce Rest APIs. However, I have encountered a challenge that is causing some difficulties for me. Specifically, I am having ...
Waqas Ali's user avatar
-1 votes
1 answer
110 views

Get all Records Using sObject Collections

I see this page: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobjects_collections_retrieve_post.htm but it seems to require a list of record IDs. I ...
Zombo's user avatar
  • 1
-1 votes
1 answer
43 views

Hi! I want to retrieve who passed the decision split on the path level. Is it possible to achieve via SSJS?

as subject saying, I'm trying to retrieve the contactKey of the records who passed the decision split in path level. I'm not sure It's possible, but I want for you to share your idea. Thanks!
Sujin Hwang's user avatar
-1 votes
1 answer
204 views

Restrict Access to External API by IP's - SBX IP's not published, Manage IP changes

We are have a Rest API that we need to call from SF and must restrict access to specific IP's. Our Production Org is hosted on USA286. Using a callout to api.ipify.org we were able to determine ...
Jeff Callahan's user avatar
0 votes
1 answer
76 views

Creating a new case from a 3rd party alert via webhook

I'm trying to see how to create a new Case based on an alert being generated in a basic Grafana system. From what I understand, any "generic" integrations from Grafana to other systems ...
user145214's user avatar

1
2 3 4 5
71