Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [apex-webservice]

The tag has no usage guidance.

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

Loading a file form sftp location into salesforce

I am working on a scenario where the file needs to be picked up from a SFTP server and loaded into salesforce. Can salesforce web service pick up a file from sftp location and load it into salesforce?...
0
votes
2answers
81 views

Getting null pointer exception in webservice class?

I am getting System.NullPointerException: Attempt to de-reference a null object Class.exposewsdl.getCaseDetailsFromcsNum: line 47, column 1 global class exposewsdl{ global class ...
0
votes
3answers
2k views

How to send Post request to Rest API with XML data

I have created a rest API(apex class) in Salesforce. I have multiple nested tags in xml that comes via API request. I am wondering how do I define my post method in apex that could handle the request. ...
0
votes
1answer
189 views

Apex Callout HTTP POST with Named Credentials error [closed]

I am constructing something wrong, in the POST request. Please advise. Step 1: Created Named Credential called Stock_Check_For_Materials Step 2: Created Apex Controller as below Continuation con = ...
0
votes
1answer
458 views

Webservice @httpPost method authentication

Quick response on this would be helpful. I'm able to send request body from Workbench as source to my org as destination for creation of records. But what i need is how to perform the same operation ...
0
votes
1answer
3k views

how to get the session Id for web service calls to salesforce

I have implemented a web service in salesforce and generated the WSDL for the web service and provided it to the external system. However while invoking a call, we need to pass the session id in teh ...
0
votes
2answers
2k views

Need build webhooks in Saleforce to recieve third party server alerts

I need some guidance/code snippet in developing a webhooks in Salesforce to receive alerts from third party server. Requirements. In our case, Insideview will send alerts to Salesforce whenever they ...
0
votes
1answer
993 views

Data Access restrictions to Salesforce objects via Apex Web Service

I'm going through this article : https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_web_services_methods_exposing.htm Have few questions regarding access to field/objects/record by ...
0
votes
1answer
33 views

Web Services - Getting JSONException while handling request from External System

I have a JSON string like - String jsonInput = '{"merch" : ['+ '{"name" : "Eraser1", "description" : "desc", "price" : 2},'+ '{"name" : "Eraser2", "description" : "desc", "price" : ...
0
votes
1answer
56 views

How to Retrieve large data from Salesforce using Rest API?

I have one new requirement where My client wants to retrieve large data set (~80K records) from Salesforce daily. I have created rest web service but it returns only 2k records. for 80k records, do ...
0
votes
1answer
93 views

Rest API Response - Break Address into multiple fields

I am working on an assignment where we enabled an external system to search for contacts in Salesforce based on lastName, firstName, BirthDate. I have developed a webservice which queries the Contact ...
0
votes
1answer
103 views

“Element invalid at this location” error in call to Apex web service

I am getting SessionID invalid after taking session id from visualforce page using {!$Api.Session_ID} I am getting the below response from workbench Element {https://soap.sforce.com/schemas/class/...
0
votes
2answers
1k views

How to stop Read Timed Out

So I have run a apex class that makes a callout to a external application. So I triggered the callout in SFDC and I have gotten hundreds of System Exception Read Timed Out emails. I have went to ...
0
votes
1answer
726 views

How to consume external webservice

I got the requirement where I need to consume the WSDL from Workday and create/update contact records in Salesforce. Can someone of you please assist me in how to utilize a WSDL from Workday into apex....
0
votes
1answer
50 views

Code isn't working for a list in the post method? [closed]

What are the changes to be performed to send the list of json's, currently its working only for 1 account record. looking for the list of json as a body to pass it to salesforce. Code: @...
0
votes
1answer
661 views

How to read XML data in salesforce?

I get data in XML from a web service from a connector URL, the xml contains data about people, now I have to read the names, emailids from that xml and compare with my org's contacts and so some ...
0
votes
1answer
664 views

How to call an Apex WebService from an External System

I'm trying to build a webservice that will expose the ability to input data from an external system into salesforce. I've found multiple resources on making a webservice. I can't however find how to ...
0
votes
1answer
263 views

What is difference between REST and SOAP Services [duplicate]

I am not able to get basic or the in depth difference, I think both are used for the same purpose so why there are two terms, I am very new to this so can anybody help me clear out the functionality ...
0
votes
1answer
27 views

Regd WebService to Salesforce

We're developing web-service class for inbound integration . Just curious to know, What we've to provide, besides WSDL(generated from web service class and Enterprise WSDL for authentication), to ...
0
votes
1answer
352 views

Basic Web service execution

I am new Salesforce. I've a requirement you call an external Java Web service from apex using SOAP. JAVA developers has provided their Wsdl which is supposed to be used in Salesforce to generate apex ...
0
votes
1answer
14 views

TestMethod Doesn't Support Web Service Call Out Error For Trigger on delete

I have this trigger which deletes the Specific Objects records on delation of a record. I wrote a test class for this but since I am a toootal Noob, I was unable to manage to cover the whole thing and ...
0
votes
0answers
19 views

Unable to tunnel through proxy - HTTP/1.1 503 Service Unavailable

I have built an integration in sandbox, I have deployed the web service code to production and I obtained this error: EXCEPTION: System.CalloutException: Unable to tunnel through proxy. Proxy returns "...
0
votes
0answers
33 views

Salesforce Synchronous and Asynchronous Web Service Callouts

Just trying to clarify some confusion. From my understanding, we can use Salesforce to make Web Service Callouts in an Asynchronous manner in 3 different ways; using @Future, Outbound Messages and ...
0
votes
0answers
44 views

Has anyone solved the error 415 (Unsupported Media Type) in salesforce?

Has anyone solved the error 415 (Unsupported Media Type) in salesforce ? I tried to upload a file to ContentVersion via rest api request but it 415 error will be returned by my org. Is there any ...
0
votes
0answers
21 views

Onclick javascript - How to pass count of records from webservice method to JS button

I am writing logic on new Quote button Opportunity , where the new quote button should display error based on related list available or not. related list is an other object which has OppId associated ...
0
votes
0answers
13 views

Lightning Button on Accounts Page, that calls an apex function on custom object

I need help in creating a lightning button on Accounts object. that calls the method written in a class called PIcontroller Basically this function ( In PI controller) , calls a webservice and ...
0
votes
0answers
12 views

XML Incorrect Format

A costumer has implemented a button which through VF page makes a call to consume a web service, sending information of an opportunity, the related account and the contacts information. Typically, it ...
0
votes
1answer
115 views

STATUS_CODE returned for the response: 403 STATUS_MESSAGE returned for the response: Forbidden

Can someone please guide me how to resolve the access forbidden 403 status code error ? What can i do to at least hit the end point? I am executing the code anonymously in developer console string ...
0
votes
1answer
31 views

SOAP Web Service Method for two top level nodes

I have a client who needs a web service method for a 3rd party to send a SOAP call to. But this soap call has two top level nodes in the body. <body> <blockOne> <data> ...
0
votes
0answers
52 views

How to retrieve files from an external server

I'm not at all that familiar with web service, but we do have this requirement in which, once a month, we need to retrieve some pdf files from a folder in an external server, and then attach them to ...
0
votes
0answers
55 views

Authenticated Callout to Webservice using SSO

We are facing the following problem. We need to make webservice callout through Mulesoft in a way the user is making the call is not a service user, but the logged one: Both Salesforce and ...
0
votes
0answers
34 views

How to use the Site class outside of the context of 'Lightning Platform sites'

I am currently creating a webservice to integrate an external website to our salesforce instance. This webservice should create a new portal account user and return the id back to the calling code. I'...
0
votes
1answer
196 views

The request failed with HTTP status 400: TLS 1.1 or higher required

I'm getting an error"The request failed with HTTP status 400: TLS 1.1 or higher required." on "Add Web Reference" asp.net window. Pls, help me out this.
0
votes
0answers
58 views

Map key null when using getContentAsPDF() method

I have a Visualforce page that is used to generate a PDF document by our users. Recently we started experimenting with the Community License, and I'm facing an unusual error with this user. The ...
0
votes
1answer
33 views

Checking Users credentials against AD while they are logged in

I am looking to get some suggestions on the best solution for following requirement. Any help will be appreciated. Requirement is to capture user's name using their AD credentials (they will be ...
0
votes
1answer
208 views

Execution of Javascript inside a Custom Button is deferred till the end of function

We display inside a tab in the Sales Console a custom object page layout with a custom Javascript button. Once the user clicks on that button, the custom code performs some operations on a Salesforce ...
0
votes
1answer
201 views

Display status as Failure in the response of http post method

Need help in catching error message and displaying status as failure in the response, when id is not generated. Apex Code : @HttpPost global static List<SamplesResponse> doPost() { ...
0
votes
2answers
2k views

how to pass JSON with Array,String [duplicate]

@RestResource(urlMapping='/v/restAPIKeyGeneration/*') global with sharing class APIforKeyGeneration{ global class Account{ public String sname; public String bp; } @...
0
votes
1answer
1k views

How to return fields to webservice response?

When the user enters his name from third party application, The user needs to get all the records(Account(name,Phone,email),Contact(firstname,Lastname),Lead(email,mobile number)) matching the text ...
0
votes
0answers
429 views

How to handle multi callout in test class?

I have webservice class which have multi callout.For the first callout i have some list of URl's.From the list of URL's I want to do the second callout and so on. apexCode: global with sharing class ...
0
votes
1answer
158 views

Can we use access token or refresh token as a session id for WebService Callout?

there it is mentioned I want to use sessionID for MetadataService call from an org to other org. I have the other org access token and refresh token both. I tried to use access token, but got the ...
0
votes
1answer
120 views

How will external system invoke SFDC and pass parameter so that I can update that field in Custom Object?

My requirement is whenever in external system , if Template Id changes , then I need to update in SFDC custom setting. Can anyone help me how to generate Webservice class for this so that they can ...
-2
votes
1answer
199 views

Extracting binary char in a webservice response

I am actually facing a problem with apex webservice response interpretation. In my response i have a mixture of string and binary data. I need only the binary part and discard all the rest, but I need ...
-3
votes
1answer
80 views

Salesforce webservice [closed]

I developed a custom web service using Soap . The web service is supposed to send 1900+ records which satisfied the conditions in integration. When tested it only sent 1400 records and remaining are ...
-5
votes
3answers
1k views

How to write test class for websevice?

Recently i have written a test class for Webservice.i got 79% .But the test class failed. And the error is "Methods defined as Test Method do not support Web service callouts ". how to resolve this ...