Questions tagged [postman]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
44 views

Error returned executing composite API from Postman

I am using POstman to execute composite API. Got the sample request from this link - https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_composite_record_manipulation.htm ...
SfdcBat's user avatar
  • 4,771
0 votes
1 answer
59 views

Cannot specify query parameters on this resource

Im using Postman to do a bulk API request to send data into SF. This is still working in Production, but from Jan 30th it stopped working on 2 different sandboxes. I've already tried to change the ...
Julio Didier Maciel's user avatar
0 votes
0 answers
37 views

Apex callout using multipart/form . JPEG works, PDF does not?

I have been working through setting up a callout using POST, using a multipart/form-data content type via apex. Currently just validating the request generation via a mock server hosted on postman. ...
api-testuser45690's user avatar
0 votes
0 answers
67 views

"message": "Session expired or invalid","errorCode": "INVALID_SESSION_ID" in postman

Goal : configure Salesforce to enable an external system to use SF APIs. I am fully discovering the full picture and i am missing pieces.. I created a connected app, enabling API. In postman desktop, ...
Langloic's user avatar
0 votes
1 answer
92 views

How to get Refresh Token in Postman in 2024?

I've been trying to get the refresh token using Postman without success. It seems from what I've found that some ways have changed over the years. I do have the request to get the access token, which ...
Z0q's user avatar
  • 155
2 votes
1 answer
79 views

Named Credential not created through SOAP Metadata API

We are connecting Salesforce from a third-party system, the requirement is to create some named credentials, custom metadata records, and remote site settings from the third-party System after ...
Rahul Gawale's user avatar
0 votes
0 answers
37 views

SOAP API to Delete Column from Dataextension

I'm trying to become better at understanding Marketing Cloud SOAP API. My goal is to delete a column from a SFMC dataextension from Postman. Adding columns was easy, as documentation provided a ...
Nikolai Hvid's user avatar
0 votes
1 answer
71 views

Question related uploading file using multipart/form-data via postman

I have done the following setup in Postman, but I keep getting following error - [ { "message": "Multipart message must include a non-binary part", "errorCode": "...
PassionForDev's user avatar
0 votes
1 answer
87 views

Show custom error message instead of 'Internal Server Error' in postman

Is there any way in apex to show custom error message like 'Invalid Parameter' instead of 'Internal Server Error' when wrong header parameter is passed in postman. I tried using 'throw new exception' ...
userName's user avatar
0 votes
2 answers
145 views

Nested query works in salesforce inspector but not in request with query in url

I'am trying to get(request) Accounts with some informations from child called Services__c. When im performing query in inspector it works fine SELECT Legal_Name__c, Name, BillingCountry, (SELECT ...
B.G's user avatar
  • 11
-1 votes
1 answer
205 views

How to call an apex class exposed as SOAP webservice from Postman

I have an apex class soapServiceClass global with sharing class soapServiceClass{ //Based on this parameter, it returns the account information webService static Account getAccountRecord(...
Pratik Shambharkar's user avatar
-4 votes
1 answer
183 views

I'm sending a JSON Body from Postman to hit Apex, but I'm getting a deserializing error

I'm using below payload from postman and trying to hit an Apex class. { "First_Name__c": "elon", "Last_Name__c": "musk", "Email__c": "...
malik ambar's user avatar
0 votes
0 answers
72 views

POST works in Postman, doesn't work with HTTPPOST2

I'm trying to troubleshoot but I'm struggling. It code below works in postman, but not in the ampscript function: Set @req_url = "[URL]" Set @content_type = "application/json" Var ...
en-rep's user avatar
  • 25
0 votes
0 answers
331 views

How to use Signed certificates to expose REST API in Salesforce?

My use case is expose REST API in salesforce using certificate (trying self-signed), should not use OAuth authentication to consume in postman. Below Steps did but not able to complete. Created Self-...
Silambarasan's user avatar
-1 votes
1 answer
255 views

I am downloading the attachments via REST API in postman. I am getting response as below but I would like know which format it is?

We are providing service to a external system, they need to convert the response to a .xlsx file. They are asking about the format.can any one help me in this?[
KCompany's user avatar
1 vote
0 answers
128 views

Postman returning FIELD_INTEGRITY_EXCEPTION, on inserting PlatformEventChannelMember

In this trailhead: https://trailhead.salesforce.com/content/learn/projects/create-a-custom-channel-and-enrich-change-events/add-a-channel-member-and-configure-change-event-enrichment I'm trying to add ...
Luis Aguiar's user avatar
0 votes
0 answers
61 views

How to get Journey Entry DE Name using Postman Get Event Definitions

I want to get journey Entry DE Name by using postman GET Event Definitions, and trying this url. https://{{et_subdomain}}.rest.marketingcloudapis.com/interaction/v1/eventDefinitions?journeyId But it ...
Nicole Jung's user avatar
0 votes
0 answers
121 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
1 vote
0 answers
168 views

Single Logout (SLO) API - 400 Bad Request - Illegal character VCHAR='='

This is as part of Single Logout (SLO) implementation. The need is to logout Salesforce Experience Cloud Site when user logsout from java based application. To implement this, below Salesforce ...
Vasanth Subramanian's user avatar
0 votes
1 answer
5k 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
155 views

Postman cURL to SSJS, Getting Errors

I'm having trouble with converting Postman cURL to SSJS. My goal is to build a cloudpage to make an API call to an external platform to create records, but somehow my SSJS code does not work. Here is ...
Baran Sen's user avatar
-1 votes
1 answer
511 views

INVALID_SESSION_ID

I was using postman to do a HTTP request to my salesforce playground instance. I provided client Id, Client Secret, Auth Url and Access Token URL and click on get New access token. After successful ...
PineApple's user avatar
0 votes
1 answer
140 views

POSTMAN Transactional Messaging API Create SMS "content" section: How do you put Ampscript in/double single quotes does not work

In creating a Transactional Messaging API SMS definition, putting block of AMPscript with " isn't working with Postman. { "definitionKey": "CentricTransSMS2", "name&...
Jeffery Reagan's user avatar
1 vote
1 answer
168 views

SMS API call through short.io [closed]

I'm trying to shorten a URL and put it into an SMS in Marketing Cloud Journey Builder. I've been on their website, registered, got a Key and managed to short the url in JSON using Postman. Now...how ...
Alex1986's user avatar
1 vote
1 answer
577 views

API POST not working on executeAnonymous BUT IS working on Postman

I'm having trouble getting a POST request to go trough using the Execute Anonymous window. The endpoint is exactly the same in my postman and it goes trough with no issues, but keeps returning a 400 ...
potato46's user avatar
2 votes
1 answer
2k views

Unable to Obtain Failed Bulk API Records

I am trying to pull the failed records from a bulk job that I have using this API call: https://COMPANYNAME.my.salesforce.com/services/data/v56.0/jobs/ingest/{jobId}/failedResults This API call is ...
Perdue's user avatar
  • 121
1 vote
1 answer
618 views

Salesforce CDP Ingestion API: 401 Invalid JWT Token Format Error

I'm trying to implement the OAuth 2.0 JWT Bearer flow for CDP Ingestion API Connected App. Below are the steps and here's the help doc reference - https://help.salesforce.com/s/articleView?language=...
Namita V's user avatar
0 votes
1 answer
322 views

Getting a 404 error for the Salesforce CDP Consent AP Action "Shouldforget"

I am using Salesforce's documentation on how to use their Consent API to delete records in CDP by using the write parameter action "shouldforget". Nonetheless, I am getting a 404 Not Found ...
Lisa.xcv's user avatar
0 votes
1 answer
442 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 = ...
Vinayak Karande's user avatar
0 votes
1 answer
1k views

DateTime gets converted in Salesforce from Postman

I'm receiving a datetime string as a response in postman from a service. but when I'm converting the string value to date time. The value is getting converted to date time as expected but it is ...
prasanth's user avatar
  • 175
0 votes
2 answers
167 views

Einstein Streaming Updates through API not working

I know there is another question out there similar to mine. When I make the Postman call, I receive a 401 error (unauthorized). I've checked the API_Key. Is this related to the whitelisting ...
esttres's user avatar
-1 votes
1 answer
169 views

How to update records of 'ProfilePasswordPolicy' using SOAP API in POSTMAN?

I want to know how we can update records of the ProfilePasswordPolicy object using Postman. https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_profilepasswordpolicy.htm If I ...
yogeshasalkar's user avatar
-1 votes
1 answer
5k views

Salesforce authentication failure

I am trying to POST to the API Endpoint https://login.salesforce.com/services/oauth2/token as shown in the screenshot this is the first step towards authentication which is failing and giving an error ...
Tazeen Fatima Khan's user avatar
0 votes
0 answers
111 views

(Salesforce Marketing Cloud) Getting Journey Details by Id on Postman

I have been using Postman to get Journey Details by Id (The real task is to update it through cloudpages but I want to solve this first). I've been following the official documentation but it doesn't ...
Nainika Dighavkar's user avatar
-1 votes
2 answers
126 views

I have the HTTP put class and when I insert/update using postman and remove revunue date from json I get an error nullpointer exception

global with Sharing class ContractHeadersRESTAPI{ @HttpPut global static String ContractHeaderUpdate(String Name, String ContractName,String Type,String EndDate, String ExternalID,String ...
user107945's user avatar
4 votes
1 answer
994 views

Rest API - Set polymorphic Lookup with external Id

I am wondering If it is possible to set a polymorphic lookup value with external Id with Rest API. I didn't find any documentation on this and it does work for me. Here I am trying to set the lookup ...
Raphael D's user avatar
  • 554
0 votes
1 answer
1k views

Inserting row in Data extension using REST API

I'm unable to add data to Data extension using API. I tried multiple times from postman, however I'm getting same error. I'm I missing something here? { "documentation": "https://...
salesforce-user's user avatar
1 vote
1 answer
352 views

BulkAPI 2.0 Import PricebookEntries via Postman getting this error:STANDARD_PRICE_NOT_DEFINED:Before creating a custom price, create a standard price

I have setup the Postman requests to talk to the salesforce BulkAPI 2.0 because the dataLoader doesn't work (MacBook M1). The import of the pricebookentries fail at a point because when I import the ...
AMMA's user avatar
  • 311
0 votes
0 answers
546 views

invalid_grant invalid assertion POST /services/oauth2/token

I followed up this guide and I believe I did it correctly. However I'm receiving this error from POSTMAN POST /services/oauth2/token HTTP/1.1 User-Agent: PostmanRuntime/7.28.4 Accept: */* Postman-...
mario ruiz's user avatar
0 votes
1 answer
1k views

Postman Bulk API 2.0 Delete: Error "The 'delete' batch must contain only ids"

trying to test Bulk API delete functionality in Postman desktop. I created a Job like so { "object": "et4ae5__IndividualEmailResult__c", "operation": "delete&...
Art S's user avatar
  • 301
0 votes
1 answer
1k views

when I use in postman I recevie this error No_Oauth_State: State was not sent back

can you please resolve this issue when I try to get the new access token in the postman i receive this error No_Oauth_State: State was not sent back We can’t log you in because of the following error. ...
arun's user avatar
  • 13
1 vote
1 answer
926 views

REST API Endpoints Accept GET Request with Body in Production but not in Sandbox Environment (411)

When trying to hit any REST API endpoint in production org with GET request containing parameters in its body, I get 200 as response. However, when doing exactly the same call on a freshly created ...
lv1's user avatar
  • 23
0 votes
1 answer
1k views

getting 500 server error while using Postman, Not able Authenticate Salesforce SOAP API Authentication - Login Request

I followed All steps properly but still getting response as 500 server error: Response at Postman: <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv=&...
Akshay Ambhure's user avatar
0 votes
0 answers
507 views

SFMC: how to make API call to 'update contact' in SSJS activity

I downloaded a POSTMAN collection with plenty of pre-configured API call. I managed to succesfully request a token from our API and afterwards do 'update contact' in order to update a single record in ...
Lukkinator's user avatar
2 votes
1 answer
1k views

Authorize in a Community via REST API

I am going to authenticate as a portal user in a community via REST API using Web Server flow. I want to try this out in Postman, but I am receiving 401 Unauthorized error every time. I have set up a ...
jm.'s user avatar
  • 101
1 vote
0 answers
352 views

Deploy custom labels using metadata deploy request via rest api

I am trying to deploy some updates to custom labels using rest API via metadata/deployRequest. I found this in salesforce documentation. I want to invoke this rest method via powershell scripts but ...
Sisir's user avatar
  • 111
0 votes
1 answer
1k views

Adding account through API, address field causing error

Currently I am trying to create a new account using Postman before I implement the API code programically and I am running into an error. First here is the error. [ { "message": "...
G_Man's user avatar
  • 123
0 votes
0 answers
319 views

ContactId of Case not populating at times

I use postman as a rest client to post a case with supplied email field populated, in the apex class what we do is we check if a contact exists with the email of the supplied email of the case, if it ...
nSv23's user avatar
  • 544
6 votes
4 answers
14k views

INVALID_SESSION_ID using REST API through Postman

I am using Postman for some time now and it always worked. It seems that something has changed as I can directly authorize through OAuth and immediately after it all subsequent requests fail: "...
Semmel's user avatar
  • 2,310
0 votes
2 answers
768 views

How to get Matching Account Records using SOAP API

I've spent most of the day going through the SOAP API Developer Guide. I'm successfully making calls to my sandbox via SoapUI client. I've tried a number of SOAP calls, including findDuplicates(), ...
Ryan McNeely's user avatar