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

System.JSONException: No content to map to Object due to end of input (Line: 26, Column: 1) - Salesforce

I am trying to connect two salesforce org and through REST API and I am fetching data from Org B to Org A. In Org A, I have written below code. But while running debug, I am getting the error - ...
2
votes
2answers
531 views

refresh token not update access token

I have a trouble between integration with SalesForce and our's service. We are using oauth2 authorization and SalesForce REST API. Our clients authorize successfully for the first time and get the ...
0
votes
0answers
11 views

how to get token api in Customer Community Login User [on hold]

I tried create a API for using in my application with node js, but i can't connect in customer community login user, how i can do this? exists some API for this?
0
votes
0answers
32 views

How to Send a JSON Arrray From Sales Cloud to Marketing Cloud via API?

I'm using the Marketing Cloud transactional messaging API to send emails from Marketing Cloud that originate in Sales Cloud. Everything works well except sending a JSON array of attachments. The issue ...
1
vote
1answer
349 views

Is there any documentation for www.exacttargetapis.com/messaging/v1 REST API

I'm trying to send Content Builder emails via the REST API and the best option looks like the 'www.exacttargetapis.com/messaging/v1' endpoint. But there is little documentation on the API web site for ...
0
votes
0answers
7 views

Outbound messages removes TextArea Long, for bulk data upload

I built a Outbound Message endpoint, which works like a middleware, and calls other endpoint, which is REST based. When I create/update a single record, it sends all the info specified in the ...
13
votes
2answers
2k views

How do I set DML Options when using the REST API?

My question is nearly identical to an existing question. To summarize the problem, my case owners aren't receiving an e-mail notification when a new comment is added to their cases. Please view the ...
2
votes
1answer
427 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": {"...
0
votes
0answers
15 views

API logic for lead generation from website [on hold]

I am trying to generate leads from a website into salesforce using REST API. I know , in salesforce there is an option called WEB-TO-LEAD for this. But I can not use that one as per my business ...
0
votes
2answers
954 views

Bulk Query with PK Chunking enabled sometimes does not return all the batches

The requirement is to use Bulk Query API with PK Chunking enabled, and to create CVS files for each batch with the chunk-size For example, in the Account Object if I have 80,000 records, and have the "...
1
vote
1answer
66 views

How to upload an image as a binary file via the Linkedin API v2 with a 'POST' request

I want to know how to make a proper 'POST' request to upload an image as a binary file to Linkedin via their API. This is what they say in their documentation (https://docs.microsoft.com/en-us/...
2
votes
1answer
408 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 ...
1
vote
1answer
80 views

Get Child Records with getRecordUI in LWC

Trying to child records through the getRecordUI @wire(getRecordUi, { recordIds: '$recordId', childRelationships: 'PREFIX__OBJECT__c.PREFIX__CHILD_RELATIONSHIP_NAME__r', layoutTypes: 'Compact', modes:...
1
vote
1answer
39 views

Converting SOAP callouts to REST callouts

I am completely new to this Integration concepts. I did the trailheads around the Apex Integration Services and Lightning Platform API basics. These trails are pretty straight forward with source URLs,...
3
votes
0answers
33 views

Marketing Cloud API - Contact Delete Request's status enum

I'm trying to use the delete request API (https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/ContactsDeleteStatus.htm) However I could not found any documents regarding the status ...
-1
votes
0answers
37 views

Regarding blank space in named credentials url for Integration

I am doing integration between Salesforce and AWS S3 using named credentials. When I'm setting endpoint as callout:Named_Credentials_Name/File_Name, I am getting error if File Name contains any blank ...
-2
votes
0answers
25 views

How to get the list of SObjects which are show during creating of workflow rule? [closed]

I want to fetch the list of Sobject which are shown while creating Workflow rule.I want to fetch this object with REST API.
1
vote
1answer
22 views

Future class error - First error: Argument cannot be null

I have a requirement where I need to send JWT token as a part of my request body. I have created a JWT class and an Apex rest class to acheive the required scenario. Below are the classes Apex Rest ...
2
votes
1answer
402 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 ...
2
votes
1answer
20 views

SObject tree/SObject collections composite api limits

With regards to standard composite API (containing up to 25 subrequests) we have information re: API consumption here; https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/...
2
votes
1answer
442 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 ...
0
votes
0answers
9 views

Unable to Find Custom Notification Types ID

Even though my environment is in api version 46.0, custom notification types does not appear as in the docs. The sObject does not pop up when queried via Workbench (same query as a recent mothership ...
-2
votes
0answers
32 views

Create Dynamic Keys for REST response

I am looking for some guidance how to create dynamic keys for REST service payload. So the incoming request could be /services/apexrest/<Object>?startDate=2019-01-01&endDate=2019-04-30 ...
0
votes
2answers
378 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 ...
1
vote
1answer
400 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. <...
3
votes
1answer
462 views

No read access to ProfileId for a User over the REST API

We've been looking up ProfileId from a given user that has OAuth-ed already. Normally they're returning the Id correctly when we call this: /services/data/v28.0/sobjects/User/THEIR_USER_ID However,...
3
votes
1answer
383 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 ...
-1
votes
1answer
13 views

Update customerKey of Content & Data Extension in Email Send Definition for a Transactional Message [closed]

I created an Email Send Definition for a Transactional Message and I need to update the Email Content as well as the data Extension Customer Key. I created it via API as described in this ...
4
votes
1answer
451 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
517 views

Where Could I find the refresh_token

I found we need refresh token for renewing access token for REST API. But i couldn't find refresh token in response of my request. How can I get refresh token.Here is my code in PHP. $postData = ...
1
vote
2answers
50 views

SF Bearer Token behaves differently for different REST API Methods

I'm currently dealing with an authentication issue with two different Salesforce REST API endpoints. We are trying to consume the API from inside a Visualforce page in a Salesforce community. To do ...
1
vote
0answers
17 views

Post processing slowness on dev org

We have build custom API on slaesforce. This API is call from C# multilayered application. it stats 1000 threads and hit the custom api almost at same time. Salesforce receive and process all this ...
0
votes
1answer
477 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
0answers
16 views

Getting change data capture events in Python

I am trying to figure out how to subscribe to streaming channel and get cdc events in Python, after success in creating new PushTopic and StreamingChannel. I saw some code examples in Java and NodeJS,...
4
votes
1answer
378 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 ...
1
vote
0answers
22 views

How to get all the attributes for a given contact key from data extension based on dataextensionid

We need to get all the attribute values for a given contact key from the data extension. We are trying to find it out via RESTAPI. Is there a way to get all the attributes via dataextension id. I ...
0
votes
1answer
36 views

Retrieving data extension external key via Rest API

Step 1 I am passing the Journey ID in the call to get the data extension ID Get https://xxxxxxxx.rest.marketingcloudapis.com/interaction/v1/eventDefinitions/{5b3c1a00-0bbc-4484-b7be-21234567890} ...
1
vote
0answers
86 views

How to filter attribute set in response

I am querying a data extension Method: GET https://xxxx.rest.marketingcloudapis.com/contacts/v1/attributeSets/name:Test_Journey_4_DataExtension_Copy Response { "id": "xxxxx", "key": "...
2
votes
2answers
517 views

Slow REST API return for first call of day (30s+)

I asked this question on the SF developer site, but didn't hear back. Hopefully, somebody here has seen this before, and can help me out. We have boiled it down to a few cURL calls for ...
0
votes
1answer
24 views

FATAL_ERROR System.JSONException: Malformed JSON: Expected '{' at the beginning of object

I am trying to test a REST API call, but getting FATAL_ERROR System.JSONException: Malformed JSON: Expected '{' at the beginning of object. Why do I get this error? How do I resolve it? Here is ...
0
votes
2answers
18 views

Assets REST API - target specific BU/MID [closed]

I have successfully downloaded and pushed an asset using REST API; I have my installed package enabled for 2 BU's now; How do I specify a BU/MID in my request?
0
votes
0answers
15 views

Test batch with multiples Callouts - HTTPMock [duplicate]

I have a Class that integrate Api , there are many Callouts in there. And I have a Batch Class that running on functions of this class. My question is about the test class. test class: @...
1
vote
2answers
7k views

OAuth2 token request failing

My access token request is failing with the following error response in HTTP Response. { error: "invalid_client_id" error_description: "client identifier invalid" } I am trying with the Username-...
0
votes
1answer
426 views

How to create Live Agent Chat Invitation with REST API

We need some guidance with the Live Agent REST API Chat Invitation. We scoured the REST API documentation but found nothing to guide us with implementing the chat invitation (Only info for Deployment ...
0
votes
1answer
359 views

If-Modified-Since header not working

I am trying to use the If-Modified-Since header with SObject Describe https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/describe_global_with_ifmodified_header.htm I want to ...
0
votes
1answer
25 views

Is there any way to pop up softphone screen from data coming from REST API?

I have developed Open CTI lightning (softphone) in Salesforce as a pop up for incoming and outgoing call. I am facing this problem as the telephone system vendor they do not have adapter to ...
2
votes
1answer
194 views

Customer Sending an Attachment Live Agent with REST API

I'm trying to integrate my apps with salesforce Live Agent through REST API. I already read the Guide here (https://resources.docs.salesforce.com/212/latest/en-us/sfdc/pdf/live_agent_rest.pdf), but I ...
1
vote
1answer
404 views

Unable to add photoURL through REST API

I am trying to create an contact through REST API and gave PhotoURL with value as twitter photo url. Now, I got the below response. I am unable to find settings to enable this option. Can anyone ...
0
votes
2answers
39 views

Marketing Cloud API CORS problem

I would highly appreciate if anyone could help me in handling CORS policy for Salesforce Marketing Cloud API requests… The situation is following: I need to make direct API calls to Marketing Cloud ...
0
votes
0answers
37 views

Securing endpoint with JWT Token

I have a requirement where I have integrated an external endpoint with Salesforce so that the data will be sent whenever the status of any account record is updated. The POST call is working fine but ...