Skip to main content

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
1 answer
21 views

I am facing a data loss for incremental soql query using a bound query for relatime updating record when i am using bulk2 jobs api

We are using salesforce bulk2 apis for getting data from salesforce basically we are facing a data loss when we are doing a incremental data capture example: I am providing two queries which we have ...
sai's user avatar
  • 1
0 votes
0 answers
27 views

Apex Create Lookup Field w Filters - Cannot deserialize instance of complexvalue from VALUE_TRUE value true or request may be missing a required field

I am attempting to create a Lookup field with Filter Criteria using the Tooling API. Http http = new Http(); // Instantiate a new HTTP request HttpRequest req = new HttpRequest(); req....
Blake's user avatar
  • 131
0 votes
0 answers
32 views

How to upload file to external data source with salesforce connect

This has been asked once or twice on this sub, but none of them has a solid answer yet. I am looking to upload files from Salesforce (communities) to an external data source (SharePoint/OneDrive). ...
SpicyPat's user avatar
0 votes
0 answers
23 views

Unable to send form-data using Salesforce Apex

I am working on Zalo API to get the File token, wrote below code but the API is giving me Status 200 with response body : {"error":-201,"message":"File not exist!"} My ...
Aman Bhatia's user avatar
0 votes
0 answers
29 views

Search for a specific contact attribute API REST On Marketing cloud

I'm trying to find some contacts attributes of an specific contact (in the example Contact Key 123). But I'm not able to run the payload. Getting 400 Bad Request endpoint https://{{et_subdomain}}.rest....
Guilherme Albuquerque Cavalcan's user avatar
2 votes
0 answers
37 views

Searching through the content of a Cloudpage

I tried different methods including escape characters but I cannot search in Cloudpages for a certain word. POST /asset/v1/content/assets/query { "page": { &...
Selim Sevim's user avatar
0 votes
1 answer
56 views

How can I do pagination to retrieve all salesforce marketing cloud automations via rest api?

I'm trying to return all the automations from all the orgs I have in salesforce marketing cloud through the following method: import { Injectable } from '@nestjs/common'; import { HttpService } from '@...
Thais Souza's user avatar
-1 votes
0 answers
42 views

Why does Salesforce Composite API take over 2 minutes to create multiple contacts in production but works fine in sandbox?

I'm experiencing a significant delay when using the Salesforce Composite API to create multiple contacts in a production environment. Specifically, when I attempt to create 25 contacts, it takes more ...
Waqas Ali's user avatar
0 votes
0 answers
61 views

I am receiving Response Status Code: 500 {"status":"error", "message":"List has no rows for assignment to SObject"} for the below code

Calling a REST API apex class from apex trigger and seeing below errors. Response: System.HttpResponse[Status=Internal Server Error, StatusCode=500] Response Body: {"status":"error&...
Dileep Katari's user avatar
0 votes
1 answer
73 views

When Should I Use Fetch API vs. Traditional Apex REST API in LWC?

I'm currently working on a project and trying to determine the best approach for doing API callouts. I've come across two different methods: using the Fetch API (particularly in LWC) and the ...
pritamsfdc's user avatar
0 votes
1 answer
27 views

Upsert In Composite Api not working

I have one requirement like if InsurancePolicy record with Policy_External_Id__c is already in salesforce then it should update that one else insert so for this I used Patch method below was my ...
Mahendra Sahu's user avatar
0 votes
0 answers
18 views

Create Service Report FSL does not include Technician signature (API)

I am trying to use the CreateServiceReport API call - https://developer.salesforce.com/docs/atlas.en-us.field_service_dev.meta/field_service_dev/fsl_dev_code_samples_sr.htm My code base is same as ...
SEuser's user avatar
  • 1,847
0 votes
1 answer
35 views

How to fix querying on "Name" Table?

My API request to salesforce for fetching columns from table Name is failing with: entity type Name does not support query The query that I am trying to do is like: SELECT FirstName from Name where ...
Kiteretsu's user avatar
0 votes
1 answer
19 views

Does changing Salesforce callback url for a app invalidates the current Access or Refresh tokens?

Suppose I am changing the Callback URL of the salesforce app, will it invalidate the access and refresh token of the salesforce app which were generated via the previous callback URL?
Bhaskar Dabhi's user avatar
0 votes
1 answer
43 views

Creating Data extension field through SSJS (through API calling)

I'm now testing a new method to create a data extension field automatically through REST API calling,referring to this developer DOC It's operated by POST method, and I think I wrote all of the ...
Suejin Min's user avatar
0 votes
0 answers
24 views

Not able to hit restresource URL from LWR community site

Issue: From my LWR community I am not getting the output from the restresource URL I created one rest resource like as below code. PS: I commented all my original logic and just trying with some test ...
SFDC-Beginner's user avatar
0 votes
0 answers
33 views

Create Service Report API callout from Apex - Bad request

I am trying to call Service Report creation using this link - https://developer.salesforce.com/docs/atlas.en-us.field_service_dev.meta/field_service_dev/fsl_dev_code_samples_sr.htm Now I am getting a ...
SEuser's user avatar
  • 1,847
0 votes
0 answers
45 views

Getting 0 as result of request to v1/email/messages/?type=notSent

We are trying to use the Marketing Cloud endpoint to get Transactional Emails that were not sent to recipients, using this documentation: https://developer.salesforce.com/docs/marketing/marketing-...
Pernille Bucher-Johannessen's user avatar
0 votes
0 answers
37 views

How to retrieve a list sobject name that only contains Standard and Custom Objects when an Org contains 1000+ SObjects

Recently I run into a need to list all custom object and standard object in my org in an UI Component to allow user to search and select. I have tried several ways of implementation, but none of them ...
Jessica Sun's user avatar
1 vote
1 answer
35 views

HTTP DELETE for a Push Location

I'm trying to delete a Location through rest api with the api documented here. The script I'm using is: *code to get the authentication* var IdLocationsDelete = ["ID1", "ID2"] var ...
Raas's user avatar
  • 31
0 votes
1 answer
24 views

HTTP GET for All Push Locations not working

I am creating a script to get the list of all locations but the Get function is not retrieving anything. Here's my script: <script runat="server"> Platform.Load("Core", "...
Raas's user avatar
  • 31
0 votes
1 answer
46 views

Salesforce API Error: CANNOT_MODIFY_MANAGED_OBJECT for ValidationRule

I'm encountering an issue modifying a Salesforce Validation Rule via the API. My attempt to update the rule with the ID '03dDn000001evPOIAY' results in the error message: "Cannot modify managed ...
vw96's user avatar
  • 3
1 vote
1 answer
44 views

getDataExtensions: $search is a required parameter

I am trying to run the getDataExtensions REST API method to get a list of all Data Extensions inside a Business Unit. When I run the request in Postman, the error message is $search is a required ...
Disasterkid's user avatar
0 votes
0 answers
16 views

How to find title and data categories for archived and deleted knowledge articles?

I'm using the Salesforce REST API to retrieve archived and deleted knowledge articles. However, I'm not able to find the title and data categories of these articles. APIS: Archived: /services/data/v60....
Atharva Vadapurkar's user avatar
0 votes
1 answer
77 views

Avoid parent record locking

Our customer are using the standards apis to insert record of different types that have the same parent record. UPDATE : Two of these records are the detail record of a MDR while the others are linked ...
Fabien Braconnier's user avatar
1 vote
1 answer
196 views

common.apex.runtime.impl.ExecutionException: Unrecognized base64 character: [

I am trying to move some files from one salesforce org to another and as part of that I have set up an integration as given below: List<ContentVersion> listContVer = [SELECT ContentLocation, ...
user3197916's user avatar
0 votes
1 answer
83 views

Validate an email in Marketing Cloud using APIs

👋 I'm going through this page of the documentation https://developer.salesforce.com/docs/marketing/marketing-cloud/references/mc_rest_address And it says is for validating an email in such way: ...
mario ruiz's user avatar
1 vote
2 answers
57 views

Retrieving Email Legacy IDs from Shared Folders Across Business Units in Marketing Cloud Using REST API

I'm developing a cloud page for previewing emails by searching for their names. I use the /asset/v1/content/assets/query endpoint to search for the email name and retrieve the legacy ID needed for a ...
Evelina's user avatar
  • 11
1 vote
0 answers
52 views

Get information on SFMC Installed Packages using API?

I am wondering if there is a SOAP API object or REST api calls for the installed package to retreive in Marketing Cloud just to get information about when this installed package is used or triggered ...
Questioner's user avatar
0 votes
1 answer
82 views

How to get status of query definition

I want to get the status of a query definition. I am interested in knowing if it ended up in an error or not. I run query definitions from a script, but I cannot access the information about whether ...
martechnotes.com's user avatar
0 votes
0 answers
47 views

Update Contact (MC REST API) does upsert actually

This is regarding Update Contact REST API call. Although not mentioned in the documentation, it appears the call actually creates new contacts in case contactKey parameter value is not found. Any ...
Barak's user avatar
  • 143
0 votes
0 answers
30 views

Overwrite email address and mobile number for selected contacts without deleting them

We have a requirement to implement a masking mechanism (overwriting existing values) of both email addresses and mobile numbers values for specific contacts within all MC attribute groups configured ...
Barak's user avatar
  • 143
1 vote
1 answer
131 views

Error using simpleEmail REST API: UNKNOWN_EXCEPTION with error ID

Context Hello, I'm encountering an issue when attempting to use the simpleEmail function via the REST API in Salesforce. The error message returned is as follows: [ { "actionName": &...
Nuraly's user avatar
  • 21
-1 votes
1 answer
146 views

Access Token Expiration

I am writing a code to hit 3rd party integration system from salesforce. They have their api where they are using username password flow to authenticate while salesforce hits their system for first ...
Shri's user avatar
  • 1
0 votes
2 answers
440 views

Postman error "unsupported_grant_type"

I'm trying to connect to a developer edition of Salesforce via Postman, but I keep getting the "unsupported_grant_type" error. Does anyone know how to fix it?
Davide 's user avatar
3 votes
1 answer
96 views

Using Multi-Part API Create Document in Salesforce Given Max File Size Error

I am trying to upload file to my Salesforce Instance using REST API documented here: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_insert_update_blob.htm ...
Jessica Sun's user avatar
0 votes
0 answers
161 views

No subject alternative DNS name matching found

Trying to make callout to an authentication provider and get the access token which I would be using in the consecutive callout with another endpoint. Was working fine Initially with all the endpoint ...
Raj's user avatar
  • 1
1 vote
0 answers
27 views

How do I create a Canvas App using a signed request?

When I attempt to get a signed request from my canvas app, I get an error in the console: sfdc_canvas_auth=user_approval_required. When I set Permitted Users to Admin approved users are pre-authorized,...
Kylan Vike's user avatar
0 votes
0 answers
70 views

Salesforce REST API: eTag & Last-Modified headers

I am analyzing the behavior of Salesforce public rest API: sObject describe API is supposed to return metadata about the entity (/services/data/{version}/sobjects/{entityName}/describe) The response ...
Ihor M.'s user avatar
  • 111
-1 votes
3 answers
59 views

Unexpected parameter encountered during deserialization: Name

Unexpected parameter encountered during deserialization: Name @RestResource(urlMapping='/Account/*') global with sharing class MyRestResource { @HttpDelete global static void doDelete() { ...
Rahul's user avatar
  • 1
0 votes
0 answers
88 views

REST API call - cvent 401 error Code

I'm trying to write a CVENT REST API call in my code. According to the documentation, I'm sending all the required parameters. The same request works perfectly in Postman, but in my code, it returns a ...
SK2889's user avatar
  • 929
0 votes
0 answers
22 views

Invalid ID being shown err_code 16 - Pardot API with Python Requests

I am running into an issue: pardot_request = r.get( url= f"https://pi.pardot.com/api/email/version/4/do/stats/id/{account_engagement_id}?format=json", headers = { 'Pardot-...
Shubham Sharan's user avatar
0 votes
0 answers
69 views

How to determine which record was successful when deleting, updating, or adding a sobject Collection to a CompositeAPI sub-request?

I want to save the ID issued by salesforce to the corresponding record in the local DB. I also want to know how to determine which record failed. Reasons below In the case of new additions, the ID ...
吉田大希's user avatar
0 votes
1 answer
54 views

Error dialog box when click on button to run API call through APEX class using LWC - Error [NoErrorObjectAvailable]

Hi I am new to salesforce development so please bear with me. I created an LWC to create table inside "accounts" object that shows some data. This data is loaded through an external API call ...
Syed Haris Ali Ghaznavi's user avatar
0 votes
1 answer
95 views

I am trying to create an agreement using transient document in adobe sign using rest api.Following is my code snippet:

List<ContentVersion> cvList = [SELECT VersionData, Title FROM ContentVersion WHERE Id = '068OD00000137hmYAA']; String boundary = '----WebKitFormBoundary' + String.valueOf(Crypto....
Juggernau_tik's user avatar
0 votes
1 answer
29 views

How to get only the value of two fields from a report of my Salesforce ORG via GET

on the following GET I want to take only the values of Case_number__c and Status: https://abc.sandbox.my.salesforce.com/services/data/v44.0/analytics/reports/00O2C000000eX7KUAU How can I do It, and ...
André Rödel's user avatar
2 votes
1 answer
74 views

PATCH not supported by the /tooling/sobjects/CustomField HTTP REST endpoint?

The Tooling API CustomField documentation says: Supported SOAP Calls create(), query(), retrieve(), search(), update(), upsert() Supported REST HTTP Methods Query, GET, POST, PATCH but when I try a ...
Keith C's user avatar
  • 137k
0 votes
0 answers
36 views

Why recordTypeVisibilities is an empty array in response to /services/data/{version}/tooling/sobjects/Profile/{profile.id}

I have configured several RecordTypes for Account entity and those show up under certain profile: I am using super user when placing a call: /services/data/{version}/tooling/sobjects/Profile/{profile....
Ihor M.'s user avatar
  • 111
0 votes
0 answers
29 views

How to fetch CompactLayouts that are assigned to certain user profiles + record type ids

/services/data/v62.0/tooling/query?q=select+LayoutId,+RecordTypeId,+TableEnumOrId+from+ProfileLayout I think the query above is only good for fetching page layouts? Even though I am not 100% sure. ...
Ihor M.'s user avatar
  • 111
0 votes
1 answer
53 views

Notification not getting fired from apex

I have added a component added on the community site that fetches details from an external system and fires a notification whenever the page loads. The response which I get as follows: "custom&...
code234's user avatar
  • 355

1
2 3 4 5
71