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 [httprequest]

httprequest is the request sent by browser to server for particular resource.

Filter by
Sorted by
Tagged with
1 vote
0 answers
33 views

System.CalloutException: PKIX path building failed: unable to find valid certification path to requested target

Sorry for the unexpected appearance, I saw your profile on the forum dealing with the error: System.CalloutException: PKIX path building failed: sun.security.provider.certpath....
Banzoni's user avatar
  • 11
0 votes
1 answer
32 views

Read PDF from stripe portal

I am having this URL https://pay.stripe.com/invoice/acct_1OtiZXH7y1vTRsp1/test_YWNjdF8xT3RpWlhIN3kxdlRSc3AxLF9RMkxNanIzNXN3TTlZOHNaaUZLZm9kQnBjemh3STBXLDEwNTI2NDAzOA0200luNre0xP/pdf?s=ap and when we ...
SFDC-Beginner's user avatar
0 votes
1 answer
39 views

Regarding RestRequest headers

I am trying to set the RestRequest reqeust with the below code, however up on pushing to org I am getting an error. Code: private static void setAuthHeader(RestRequest req, Boolean mockTest) { ...
Dan's user avatar
  • 1
2 votes
1 answer
101 views

How do you correctly populate an External Credential from a Principal for a Named Credential?

In Salesforce, I want to consume a web API which I can successfully call from my command line like: curl --location 'https://dummyapi.io/data/v1/user?limit=10' \ --header 'app-id: SomeApiKey' In ...
Brian Kessler's user avatar
1 vote
1 answer
64 views

System.CalloutException: Illegal character in opaque part [duplicate]

I've got a problem calling the below endpoint from apex. I created named credentials and auth provider to authenticate with the service and while executing the http request, I'm getting below error ...
CloudUser985's user avatar
1 vote
1 answer
78 views

Marketing Cloud - SSJS Activity timing out. Not sure of error

I have an SSJS Activity I am trying to get to work wherein we are calling an API endpoint using basic authentication (obviously the user and pass are obscured in production). But I am having issues ...
seanhmartin's user avatar
0 votes
0 answers
43 views

How to put external credentials salesforces api token access

I'm new to Salesforce and my task is to create a flow that makes an HTTP callout to a private API. To access the API, one needs to create an account and obtain a token which is valid for 7 days. I've ...
LigthFire's user avatar
0 votes
0 answers
76 views

Get Presigned URL using named credentials

I successfully obtained the pre-signed URL to upload large file to aws s3 bucket using the method described in the article https://mtr-design.com/news/how-to-create-a-presigned-url-for-aws-s3-using-...
Mohamed Ashfak's user avatar
0 votes
1 answer
61 views

Possible exceptions when making a callout in Apex

I have inherited the following code and I am wondering if the try-catch is actually worth it? (Logger is a custom logging class and uses platform events to trigger the log) try { response = h.send(...
fred's user avatar
  • 3,420
0 votes
0 answers
76 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
1 answer
432 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
  • 59
1 vote
0 answers
1k views

Unable to tunnel through proxy. Proxy returns "HTTP/1.1 500 Internal Server Error

I am making a callout from my PartnerBusinessOrg to one of it's underlying Orgs. Each Org has a connected app, originating from a templating org within them. When I am trying to make a callout to the ...
RPlantinga_MySolution's user avatar
0 votes
0 answers
140 views

How to create a HTTP Request with multiple values in form-data as body [duplicate]

I have a use case that necessitates the inclusion of form data, including a file, within the body of an HTTP request. How can I accomplish this using Apex? I aim to replicate a similar request to the ...
Mridul Kapil's user avatar
0 votes
1 answer
131 views

Salesforce apex rest api url not found

I'm looking to send JSON data to external system using Apex. However, this data does not belong to any specific SObject but it is some logic and mainly passes along metadata. I have an Apex Class I'm ...
user569925's user avatar
  • 1,179
0 votes
0 answers
19 views

how to create multipart/form-data callout from apex along with few more fields to send [duplicate]

We are doing freskdesk integration and want to do this callout - add Note to ticket This integration require multipart-form data request type. Checked many blogs and stackover flow question-answer but ...
Ankuli's user avatar
  • 670
0 votes
1 answer
135 views

HTTP Response data being Truncated

I am making a http request and getting response in JSON . When I am converting it to String using request.toString() but getting the truncated response response sample(This is the part of response ...
Sahil Gupta's user avatar
0 votes
1 answer
121 views

How to append a variable to a named credential?

Here is my small code that calls a named credential. Now how do I call the endpoint utilizing the named credential and adding a path to it like below? Currently I get a 404 error string filename = '...
sumchans's user avatar
  • 777
0 votes
0 answers
122 views

How to handle HTTP Call Out in a for loop that is in a Queueable class

I am having some issues with making a callout in my for loop. I have a batch class that calls my queueable class which then loops through and sends a single parameter to the endpoint. What is ...
Seng Soukhavong's user avatar
1 vote
1 answer
121 views

HttpRequest to SAP encoding $ and space caracters

I have a wierd problem: I'm calling SAP from salesforce apex and I have trouble with one of my request. This one is working. request.setEndpoint(authentification_details.Webservice_enpoint__c+'/...
Julien Souchi's user avatar
1 vote
1 answer
412 views

Attempting to pass Flow variable to Apex to use in HTTP request & create PDF

I think I'm quite over my head in this class. I'm trying to do about three different things that are brand new to me. In short, I'm trying to do this : Pass a variable to an Apex class from a Flow (...
Zoom_v's user avatar
  • 3,884
0 votes
0 answers
367 views

Scheduled-Trigger Flow only updating first record

I am having an issue with a simple Scheduled Trigger Flow. It is my understanding that a flow of this type should be able to update a batch of records at once without requiring a loop to facilitate ...
CDutko's user avatar
  • 15
0 votes
1 answer
405 views

" the field is not available to the running user" error when updating from a Transform record collection

I have a simple flow that looks at the VIN number on a customer Trailer record, and looks up info from that VIN via the NHTSA API. Immediately after the HTTP call I have a Transform element that maps ...
Erik B's user avatar
  • 1
0 votes
1 answer
231 views

Cannot see Http Callout in Flows

To turn on Http callout in flows, at first I have made an external credential with authentication protocol as custom. After that, I have made a named credential, enabled it for callouts, and use the ...
Sampad Boby's user avatar
0 votes
0 answers
18 views

How to sent ContentVersion's VersionData through API? [duplicate]

I am trying to send a pdf file attached to a record of custom object to an external system. I am using ContentDocumentLink and ContentVersion to get the file in apex and make a api call. File is ...
PARAG TALUKA's user avatar
0 votes
0 answers
92 views

Problem with sending files through HttpRequest

I'm getting problems when try to send files larger than 3MB (aproximated) to third-party through HttpRequest in a Integration Apex Class. This third-party tell us than they received the request but ...
Alex López's user avatar
-1 votes
1 answer
35 views

Getting Error in This Test Class

@isTest private class LeadUpdateTriggerHandlerTest { @isTest static void testHandleUpdate() { // Create test data Lead testLead = new Lead(FirstName = 'Test'...
user131546's user avatar
3 votes
1 answer
1k views

How to write an APEX Test Class with Multiple Http Callouts (Renamed)

I'm relatively new to programming, and I am attempting to write the Test Class for an Apex Class that has an HTTP Callout. I have already created the HTTP Mock Class to simulate the Callout, but when ...
nigeldendy's user avatar
-1 votes
1 answer
235 views

Metadata service Invalid Session Id on future method

I'm making a call to the Metadata service API. The Api call happens in future methods. I have tried both approaches of passing the Session Id as a parameter to the future method and also getting the ...
Saurabh's user avatar
  • 27
2 votes
1 answer
338 views

Visualforce CORS Error Even When Origin Is Whitelisted, Headers Are Also Set

I'm creating a PDF viewer using Visualforce and the PDF.js library. My project doesn't include react. When I try to execute pdfjsLib.getDocument() passing the URL of a PDF stored in Salesforce itself, ...
Emmanuel_M's user avatar
0 votes
1 answer
330 views

Security scan is complaining on setEndpoing

My company uses a security scan tool called Snyk to scan code for security vulnerabilities. It is complaining about a Server-Side Request Forgery (SSRF) vulnerability. The details says Unsanitized ...
James's user avatar
  • 337
-2 votes
1 answer
5k views

The callout couldn't access the endpoint. You might not have the required permissions, or the named credential

I have created a named credentials which has a endpoint like this and it is authenticated https://#######-#####.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=####&deploy=1 while ...
sfdc_to_learn's user avatar
0 votes
3 answers
843 views

Creating HTTP Request with graphql Query

I've been trying to add a graphql Query in a httprequest that is sent out to an api that receives the query. I've tested the query within postman and was able to get the result. However when I try to ...
Kevin Yao's user avatar
  • 117
0 votes
0 answers
783 views

Named callout Null in http request with named credential - What would cause it?

I am making a callout and getting the error "System.CalloutException: The callout couldn't access the endpoint. You might not have the required permissions, or the named credential "XXX"...
Pauline's user avatar
  • 375
0 votes
1 answer
491 views

how to 'encode' the body in an HTTP body?

i am trying to send this body exactly as it looks { "table":"inquiries", "response_type":"json", "query_array":"{\"fname\":\...
potato46's user avatar
0 votes
1 answer
479 views

Retrieve Request Method from HTTP Request Header

I would like to know if there is a way to retrieve an HTTP request method from the HTTP request headers. Based on the method used (GET, POST, ...) I will run a different logic on my Cloud Page. If I ...
Hroosha's user avatar
  • 53
-1 votes
1 answer
309 views

Pass Http Get and Http Post as asynchronous apex in order [closed]

My requirement is to pass data from my org (Salesforce) to external org (SAP S4). I have successfully made the class for integrating both. However, I need to pass this class in a trigger and since it ...
Capt Shaunz's user avatar
0 votes
0 answers
227 views

Apex callouts - TLS ciphersuite

I'm working on an integration with Salesforce using Apex code to make outgoing API calls. One of our users is asking what cipher is being used. Is there any way to figure this out? Some way of viewing ...
James's user avatar
  • 337
0 votes
0 answers
109 views

How to Create a Test class with a Future Callout that is not dependent on an HTTP Response?

I am new to Apex, but I have been tasked with sending a Salesforce Custom Object to another Company system. My Class works as expected, but my test class fails due to having a @future method. I did ...
nigeldendy's user avatar
1 vote
0 answers
415 views

Unable to access array within an array from Salesforce flow http callout (beta)

In sandbox, I am attempting to gather the information from https://data.nasdaq.com/api/v3/datasets/USTREASURY/YIELD.json I used the beta feature of creating an HTTP callout right from the flow. It ...
Kashona's user avatar
  • 73
-2 votes
1 answer
3k views

HTTP Request Body Call Out Salesforce Apex

I just want to call an API from an Apex. But all i know how to do is thru JSON String for the body. The integration team required me to call it thru Data Form which i can call it from Post. I got no ...
user3751759's user avatar
0 votes
1 answer
526 views

AMPscript InsertDE is inserting an empty row

I have a code on client-side that is using JavaScript to create an object called "data" that contains several variables such as "matricula", "scheduled", "...
Raas's user avatar
  • 17
0 votes
1 answer
88 views

HttpCallout to external Worldline API authenticaion not working but same call working frrom Postman

I'm currently working on interactions from SFDC to Worldline APIs and I have an issue with the authentication to their API. I have followed what they wrote here and the generated authorization header ...
Radu Popescu's user avatar
0 votes
0 answers
129 views

Routing Form POST request from Visualforce Page through Salesforce

I am making a form post request from page and hence the request is taking user's IP address into consideration. Is there any way to continue having a form POST and provide a dummy URL in action tag ...
SFDCRookie's user avatar
2 votes
2 answers
255 views

How can I dynamically upsert data in object

I want to upsert data in SF based on the selected columns by the user. I make HTTP callout to an external service and it returns the data. Then, I want to iterate over the each returned row and create ...
Stojchesky's user avatar
0 votes
2 answers
56 views

Retrieve data from 2nd SF Org

I'm making a SF org where i need to retrieve data from a 2nd SF org. I have created Connected App in my Source Org, and i have created Auth. Provider and Named Credential in the Portal Org (that the ...
JonasH's user avatar
  • 1
-1 votes
1 answer
253 views

Multiple Web Callouts In Scheduled Apex

I'm trying to get some additional information on specific phone numbers in my database using web callouts. I won't hit the governor limits as it's going to be less than 100 numbers per day. I'm also ...
user121746's user avatar
0 votes
1 answer
902 views

HTTP Callout vs. Callout Processing Time / Long-Running Request Limit

I have a LWC that loads on a frequently accessed lightning page (thousands of times an hour). It makes a request through synchronous Apex to a legacy webservice where response times are 20 seconds. ...
S.B.'s user avatar
  • 2,071
0 votes
1 answer
739 views

HttpRequest callout timeout

Is there a way to check the setTimeout() value of a HttpRequest object? use case: a method is receiving a HttpRequest object. I want to check if setTimeout is setup in the object before setting it up. ...
Prakash Rai's user avatar
1 vote
2 answers
505 views

How to check which controller a request is coming from?

Can anyone give any clues on how I can check if a request is coming from a specific controller? I meant, to meet this requirement: As the order model gets loaded whenever the customer has an ...
LuizEduardoMPF's user avatar
0 votes
1 answer
4k views

HTTP response content showing null value when using Script.Util.HttpRequest

I'm trying to create an SSJS script that can store the values in the marketing cloud's database using the Script.Util.HttpRequest method. When I try to print the HTTP response content, I get a null ...
Harshit Singh's user avatar

1
2 3 4 5
9