Skip to main content

Questions tagged [webservices]

Webservices are the methods of communication between software systems and connected devices over Internet infrastructure. They come in a number of very different technical varieties, such as SOAP and REST, but all are considered Webservices.

Filter by
Sorted by
Tagged with
1 vote
0 answers
20 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,...
-1 votes
0 answers
37 views

why Toast message is not working on community page

I am trying to display the toast message on community page but it is not working and the same toast message is working on app page ,record page and home page. is there any document for this issue ...
3 votes
2 answers
1k views

Automatically refresh a standard page layout

I have a webservice callout, and therefore I update a field on pagelayout according to the callback. The problem is I have to refresh the page layout (F5) everytime to see the field updated on my page ...
0 votes
1 answer
995 views

Failed to Parse WSDL:External schema import not supported

While parsing the WSDL in throws an error as External schema import not supported Error: Failed to parse wsdl: Found schema import from location http://crcind.com/csp/samples/SOAP.ByNameDataSet.cls?...
1 vote
0 answers
37 views

Unable to make callouts after Salesforce Instance Refresh. Unable to tunnel through proxy. Proxy returns "HTTP/1.1 503 Service Unavailable"

Over the weekend, Salesforce has refreshed our org instance AP53. Since then our integration with Equifax is not working. Whenever we try to make a callout to the Equifax servers, we get the following ...
8 votes
6 answers
8k views

Can you call a webservice from a Platform Event Trigger?

For webservice callouts, I assume the same rules apply, but I just wanted to double check. I haven't found any information about Platform Events and Webservices. I assume I would just make it a @...
3 votes
1 answer
2k views

Webservice callout - Test class - not working

I have batch class that makes a HTTP callout to a remote web service. To deploy into production, I have created a test class with StaticResourceCalloutMock. I am executing the test class in a full ...
0 votes
1 answer
1k views

How to set multi currencies rates with Apex?

My name is Pavel and I am pretty new to salesforce. Was wondered if somebody faced with the same issue: I would like to set multi-currencies rates with a help of Apex code daily. I will receive such ...
1 vote
1 answer
68 views

Real time SMS from Sales Cloud to Customers via Marketing Cloud

We currently use a third party system built in our sales cloud to send transactional SMS alerts to our customers. We use Marketing Cloud to send monthly emails primarily. As they are monthly ...
1 vote
0 answers
56 views

Handling Complete Error Messages in JSForce Promises for Salesforce Apex REST Calls

In a Salesforce instance we have a web service to be consumed by an external service. Considering the resource that the ws will consume, it has been designed in such a way that for each request ...
1 vote
1 answer
3k views

External website in iframe

We currently have requirement to show external website in iframe. External website users will have user name and password and salesforce user name and password as well.As part of the authentication i ...
0 votes
0 answers
71 views

How to listen for incoming calls Salesforce open cti?

we have a vendor where they don't have Salesforce Adaptor so we built custom adapter and leveraged open cti javascript api to make outgoing calls it's working as expected My concern is how do we ...
0 votes
0 answers
47 views

REST Web Service problem: /apex/FileNotFound

I built a REST Web service to create a custom record everytime a call is made in a calling app. Json is sent to the web service via webhook. So far all the tests I did in sandbox were succesful and ...
0 votes
1 answer
729 views

Sending PDF file from Salesforce to XERO, but it's not happening

I want to send PDF file which is generated by VF page from Salesforce to XERO. But I'm trying to send but it's not happening XERO syntax, it receives like below format POST /api.xro/2.0/Receipts/...
9 votes
1 answer
4k views

Creating a class by consuming a WSDL document Schema:attribute

I have a problem with salesforce functionality. I've created flat WSDL file but when I am trying to create class in salesforce I still get this error: Error: Failed to parse wsdl: Unsupported ...
1 vote
5 answers
729 views

Scenarios to use Platform Events

I was wondering, what are scenarios that are dedicated to use Platform Events? Documentation says for example - integrations between Salesforce and other external systems. But, I was participated in a ...
5 votes
3 answers
33k views

Create a Time Delay in APEX without Exceeding CPU Limit

I have a APEX function (call this from another method) which make a SOAP web service callout every 2 seconds to check a status, when I get the status as 'Complete', then I call another method. I used ...
2 votes
3 answers
7k views

Automate data import process

We currently have multiple flat files that need to be imported daily. Currently, we are manually importing the files using data loader. We are simply importing to Accounts and Opportunities. The ...
2 votes
3 answers
2k views

Issue on JSON.serializePretty

I am using Salesforce with a Java integration project. Here I am integrating data from a SQL database to Salesforce using webservices and vice versa using JSON format webservices. Here is the code: ...
1 vote
2 answers
2k views

Web To Case using Webservices/Sites

I have to implement Web To Case. I have thought of two options for the same using Sites or Web Services. I have queries related to the same. If I implement it using Web To Case, then, How can I ...
0 votes
1 answer
199 views

How to name invocable classes? [closed]

By design, a class can only have one invocable method - which is very different from the way you could design classes containing web service methods (where you could have multiple exposed methods). ...
-1 votes
1 answer
373 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(...
-1 votes
2 answers
77 views

Accessing the Deserialized JSON list's values and modifying the null values

I have deserialized a JSON data into a list.I want to access the null values present in the list for any wrapper variables and modify it to an empty string. Deserialization Code: lstSeeds = (List<...
0 votes
1 answer
819 views

Change a SOAP API Request Body

I want to add the following content to the Soap request body when webservice is invoked. <foo bar="baz">bar</foo> I tried to update the generated code by the WSDL file. public class ...
0 votes
0 answers
54 views

Long Pooling for HTTP stream endpoint

I'm looking to try setup server side long pooling connection to a http POST */steam endpoint. I originally looked at an LWC making a handshake using the cometD, but this will only keep the connection ...
4 votes
3 answers
3k views

Making rest request with Oauth

I have all four Oauth token consumerKey, consumerSecret, accessKey and accessSecret. I need to make a request to a url from my apex code. Is there any library or a way to make this request. In java I ...
0 votes
1 answer
596 views

Is it possible to get XML version of Standard Object

We have an Informatica job which runs every night that extracts Salesforce data and loads into MDM. We recently changed an Opportunity field name and my colleague need to synchronize the change with ...
0 votes
2 answers
87 views

integration with Salesforce

I'm creating in Salesforce a custom Web Service for an external system. What information should I provide in addition to WSDL of the custom WS? username and password impose use of tls 1.1 or higher ...
7 votes
3 answers
19k views

Accessing Named Credentials' data in apex

Is there a way of accessing the data (exact fields) stored in Spring 15' Named Credentials from apex? For example the username, password and endpoint link fields? And I don't mean for the callout, but ...
13 votes
1 answer
7k views

Use cases for Enterprise WSDL vs Partner WSDL

I am trying to understand more deeply that why can't we do all the integration using Partner WSDL , why does salesforce even have a Enterprise WSDL when partner wsdl can provide the same functionality....
26 votes
5 answers
10k views

Callout loop not allowed error

I have an APEX REST POST method that is being called from an external system 'A'. Processing this POST I need to callout to another external system 'B' and based on its response continue with my ...
1 vote
0 answers
50 views

Share Email Folder Using mdapi

I am using financialforcedev's mdapi to create folder sharing in my Salesforce org - https://github.com/financialforcedev/apex-mdapi I am using the following code for Sharing DashboardFolder which ...
0 votes
0 answers
568 views

how to typecast json response into wrapper class

Below is the json response I receive from service provider. {"_embedded":{"Id":"ABC-000","itemSummaries":[{"contractId":"CO11111","...
38 votes
4 answers
42k views

HTTP Callout from Triggers

I have a trigger on the Custom Object that calls a class. That class makes an HTTP GET request to a Web Service. However I get the following error: Callout from triggers are currently not supported. ...
0 votes
4 answers
3k views

Error Handling in REST Webservice

I have exposed this Apex class as a webservice. So far so good, as I get the response when this Webservice is called from ARC or POstman. @RestResource(urlMapping='/ProcessAccount/*') global with ...
0 votes
1 answer
4k views

How to handle SOAP Response?

What is the common practice in handling the response of a callout? the response I get is a String datatype but it's value has xml elements within in them. I was thinking of manipulating the contents ...
2 votes
3 answers
10k views

Convert base 64 to pdf and display it as PDF. Not required to save the pdf in salesforce, Directly display

When user clicks on a quick action, a soap webservice callout is made and in response we get base 64. I need to convert this base64 into PDF and display it online. I dont want to save the pdf document ...
6 votes
1 answer
636 views

Synching of data between two orgs

Class is called from the trigger in response to update of an opportunity object I am syncing data between two Saleforce Orgs.From the opportunity object I have been able to uspsert data in another ...
0 votes
0 answers
309 views

JSON Parser CPU Timeout error

I have two classes that parse a json webservice callout response. One class parses a sinlge response result and the other class parses multiple response results. The primary difference between the two ...
1 vote
0 answers
768 views

Apex REST web service with Enhanced Domains over HTTP/2

I have created a public rest web service. It's HTTP POST and while calling that from Postman, I'm getting the below error: { "errorCode": "METHOD_NOT_ALLOWED", &...
1 vote
3 answers
13k views

How to get access_token without UserName and Password?

I have written this Apex code to get access token: private static OAuth getAccessToken(){ try{ HttpRequest req = new HttpRequest(); req.setEndpoint(ENP_POINT_URL); req....
0 votes
1 answer
637 views

Salesforce HTTP RESTful Webservice stopped working at some point

We are using a HTTP Restful Outbound Webservice which was working fine for 2 years but suddenly stopped working which we are not able to understand the reason. It's giving below error. System....
0 votes
1 answer
2k views

Invalid date/time issue in Apex Code

I am working on a REST API integration class and it is passing a field called effectiveDate as part of the response. However, the data in the field is not consistent. Sometimes, it is passing the ...
-1 votes
1 answer
187 views

Web service to get related opportunity Ids based on converted lead records

I am trying to setup a web service where I call to get a list of opportunity records based on converted leads from a specific source. I am trying to create a list of opportunity ids based on a SOQL ...
2 votes
1 answer
2k views

Salesforce webservice API Input parameter limit

I have requirement to expose Apex Class method as SOAP type webservice API which has more than 50 fields (input parameters) but when I try to save my code its giving me compilation error saying '...
0 votes
1 answer
622 views

How to post some inbound message to salesforce with username and password?

I want to post some inbound request to salesforce by using salesforce credentials. Can anyone suggest me the best and secure way to make this communication happen between external system and ...
0 votes
0 answers
371 views

Custom SOAP webservice response

I have this scenario, an App using a Salesforce instance have to change and use another Salesforce Instance but only url for the webservice and credentials can be modified in the App. New custom SOAP ...
1 vote
0 answers
175 views

Web service callout failed error when trying to update duplicate rule

I am using apex-mdapi (https://github.com/financialforcedev/apex-mdapi) to update the duplicate rules from metadata API. While I am trying to read the metadata, I am not able to update the metadata (...
0 votes
3 answers
354 views

Problem with Webservice returning invalid JSON

could you please point out my error? I have a very simple class and a webservice: public class JSONFactory { public Integer id; public String name; public String lastName; public JSONFactory(Integer a,...
0 votes
1 answer
1k views

Test Class Error - System.QueryException: List has no rows for assignment to SObject json | Cover JsonGenerator in Test Class

"Hello everyone" I have a week with this problem in the testClass. So the problem is the following: System.QueryException: List has no rows for assignment to SObject json. The problem comes ...

1
2 3 4 5
17