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
21 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,...
Kylan Vike's user avatar
1 vote
0 answers
51 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 ...
Mohit Reddy's user avatar
1 vote
1 answer
75 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 ...
Exps's user avatar
  • 263
1 vote
0 answers
70 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 ...
Tzinm's user avatar
  • 21
0 votes
0 answers
75 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 ...
mine_username's user avatar
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 ...
Sebastian C's user avatar
1 vote
5 answers
792 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 ...
Łukasz Franczyk's user avatar
0 votes
1 answer
211 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). ...
Semmel's user avatar
  • 2,509
-1 votes
1 answer
410 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
-1 votes
2 answers
83 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<...
Hira Khan's user avatar
0 votes
0 answers
56 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 ...
CalDe's user avatar
  • 3
1 vote
0 answers
52 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 ...
Madhurima's user avatar
  • 1,425
0 votes
0 answers
579 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","...
sfdcdevsathy's user avatar
1 vote
0 answers
770 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", &...
salesforce Developer's user avatar
-1 votes
1 answer
191 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 ...
Jeff's user avatar
  • 5
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 ...
Balaji Pooruli's user avatar
0 votes
0 answers
373 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 ...
Diego Gil's user avatar
1 vote
0 answers
182 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 (...
Rahul Allada's user avatar
0 votes
3 answers
357 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,...
DevelBase2's user avatar
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 ...
Alex Barón's user avatar
-1 votes
1 answer
289 views

Queuable chaining not working- First queueble doing webserivce call , second queueable should wait till result of first came

We have one use case we have to rely on external system to fetch the data and then only real time we can update the records in salesforce using values returned from webservice. we tried chaining using ...
David Mycka's user avatar
  • 1,327
-1 votes
1 answer
153 views

Create custom faults in SOAP webservice

I am building a new SOAP webservice in apex and I want to know how to throw custom soap faults. I created custom exceptions in apex and throwed it but the stack trace is also thrown along with the ...
Sisir's user avatar
  • 111
1 vote
1 answer
240 views

My web services work only for System Administrator profile

I have an issue, I have two web services callouts for the Account object, Consults to a Datawarehouse if that account already exists Sends the data to a different system, those services works ...
LatDu's user avatar
  • 59
0 votes
1 answer
1k views

SSJS - Cannot get the result of post request

I'm trying to send a post request via SSJS var url = 'https://th-apex-http-callout.herokuapp.com/animals'; var payload = '{"name":"wesh moose"}'; var req = new Script.Util....
Monim98's user avatar
1 vote
0 answers
101 views

Approach to Map Inbound Web Service Request Fields to a Defined Wrapper Class?

We have multiple external systems POSTing callouts to a salesforce custom web service. We need an approach to map the request fields from these external systems to a generic defined wrapper class. We ...
Akshay Poddar's user avatar
0 votes
1 answer
2k views

Illegal assignment from String to List

I'm getting a Illegal assignment from String to List error in my code and I'm not sure how to solve it, can somebody help please Below is the code where I get the error: @isTest global class ...
Kiran.pandiyan's user avatar
0 votes
1 answer
276 views

PATCH request using LocalServiceRegistry

I have a scenario where if the customer updates his/her profile in SFCC, then that customer has to be updated in the Salesforce Account object using a PATCH call. I was planning to use to the ...
Code_Ninja's user avatar
2 votes
1 answer
171 views

Using NPM in server side - Salesforce

We have an external service which we send data (a JSON) to them, with some details - that also includes personal data such as mobile phone number and country ISO code. I would like to use the Google ...
Salvation's user avatar
  • 1,189
1 vote
1 answer
137 views

My domain and web services

sorry if this is a stupid question but I am a bit newie with Salesforce. My client would like to enable My Domain feature. We have some web services deployed and working in production. The url ...
Jav's user avatar
  • 13
0 votes
2 answers
193 views

Test Class Cannot Find @RestResource Web Service Class

I have a @RestResource web service class that works fine in the real world, and works fine from Workbench, and its test class runs without errors, yet the test class does not actually run the web ...
number41's user avatar
  • 980
0 votes
0 answers
591 views

Metadata Api: "Web service callout failed: Unable to parse callout response. Apex type not found for element name"

I'm trying to build my own metadata wrapper class to call MD-API directly from apex since the apex-mdapi solution by Andrew Fawcett on Github is kinda outdated. I downloaded the current metadata WSDL (...
yassin0's user avatar
  • 25
0 votes
1 answer
683 views

How to allow an external system to update a field on quote object after a callout [closed]

I have a question please ,i did a callout (Rest) to an externel system ,i send some informations of a quote record ,when the response is ok ,the external system will update a custom field in my quote ....
user3499987's user avatar
1 vote
1 answer
155 views

Question about Salesforce limits on API Callouts

I have to call a webservice from an external system each time a new record is created on Salesforce. The external webservice accepts a single record/object instance per callout. If I do an after-...
S..'s user avatar
  • 1,215
0 votes
0 answers
19 views

Get Headers on Apex SOAP Webservice [duplicate]

So I'm developing a soap webservice and I need to check the request Headers, I've spent the last 30 minutes searching how to do this but couldn't find an answer, is it possible to check the request ...
RicardoReis's user avatar
0 votes
0 answers
132 views

Session Id generation by third party to call apex

I’ve developed a webservice which basically allows third party to update field Processed_status__c on opportunity object. I’ve generated opportunityUpdate.wsdl file which I would share with them. ...
wink's user avatar
  • 17
0 votes
1 answer
1k 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?...
user97613's user avatar
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 ...
user avatar
0 votes
1 answer
379 views

Create TCP connection and send data to external server in Apex (like fsockopen and fputs in php)

I am trying to establish a TCP connection with a server to send commands to it for use with a web API, as you would with fsockopen and fputs in php. Does anyone have any experience with this kind of ...
ajax2112's user avatar
  • 103
0 votes
1 answer
40 views

Developer Edition / Platform Starter License - Create webservice in Salesforce

I would like to create a webservice using Salesforce. Can i do it with free Developer Edition (it will be only for my personal usage, but I might make a profits by using my webservice). Or I have to ...
Dante's user avatar
  • 1
0 votes
1 answer
1k views

Struggling to authorize a web app integration via Postman [closed]

I have created a web app component in Salesforce Marketing Cloud, and now I'm trying to get the OAuth2.0 flow to work in Postman. First, I use the Authorization tab in Postman to request a token. ...
K K's user avatar
  • 307
0 votes
1 answer
148 views

JSON error while passing data from one environment to another rest api

I need to sync some account records between two environments of the salesforce. I'm able to make a callout but while passing data getting a JSON error. I'm basically serializing a list of accounts in ...
sfdc's user avatar
  • 321
0 votes
1 answer
1k views

Create a PDF file From a webService [closed]

We have an external service that sends us PDF content. The service gets a JSON and returns a PDF. The PDF is returning this way : PDF-1.4 %����� %��ŭв�����������ŭв�������� 4 0 obj << /Type /Page ...
Salvation's user avatar
  • 1,189
0 votes
1 answer
1k views

Sending large json data in response body apex

I have exposed a web service which returns multiple fields from a custom object in json format. It works fine for 3500 records, but increasing records to more than that throws apex heap size exceeded ...
user8506442's user avatar
0 votes
1 answer
21 views

Unittest not covering webservice

I have a webservivce for which i wrote a unittest but there is no code coverage, what am I missing Webservice @RestResource(urlMapping='/DynamicApi/*') global with sharing class DynamicApi{ ...
Thomas's user avatar
  • 2,310
0 votes
0 answers
24 views

RestResource Get URL [duplicate]

I have a Rest Web Service class that exposing Get Function. I am trying to get the entire URL of the request to save it in logs. According to the Salesforce Documentation I could get it, without ...
Raphael D's user avatar
  • 616
1 vote
1 answer
366 views

Advice on overcoming a WebService Callout time out error using MetadataAPI

I'm looking for some advice, both on my approach and how to solve my particular issue. Use Case When an external integration team updates all particular recordTypes. Every picklist value associated ...
David Picksley's user avatar
0 votes
2 answers
1k views

Is it possible to Generically deserialize a Json string wit nested arrays in Apex

I want to be able to Generically deserialize a Json string with nested arrays for a web-service, since the structure isn't known beforehand and kan change a lot. I did some reading a seems doable but ...
Thomas's user avatar
  • 2,310
3 votes
1 answer
4k views

How to properly send a Json in the body of a POST request?

I'm trying to do the same I accomplish with postman but with Apex and I'm not being able to do so: I need to send a POST request to this example endpoint: https://cccccccccccccc/api_jsonrpc.php This ...
Nacho Zve De La Torre's user avatar
0 votes
2 answers
668 views

Test run for Web Service Callout batch class

I have an apex class which fetches and upserts data from external source to Salesforce. Below is the batch class: global class PolicyCalloutBatchClass implements Database.Batchable<Integer>,...
SFDCUser's user avatar
0 votes
0 answers
41 views

NTLM Auth via Apex [duplicate]

I'm trying to make a service that calls an external system using the NTLM auth. I thought that it should be very likely the BASIC auth - but perhaps I'm wrong. I'd like to know the right way to auth ...
Salvation's user avatar
  • 1,189

1
2 3 4 5
17