Questions tagged [apex-webservice]

The tag has no usage guidance.

33 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
432 views

tooling API workflow alert update

i am trying to update workflow alert email template using tooling api. REST AND PATCH . JSON body is below {"Metadata":{"ccEmails":["test@gmail.com"], "description":"...
2
votes
0answers
29 views

Outbound messaging, one org to another, can I reference in Apex, the class referred to by the Notifications element in the Outbound Messaging WSDL

I am trying to receive an outbound message sent from a workflow in one Salesforce org, using a SOAP webservice method in another Salesforce org. This would be a nice-to-have, if I can't get this ...
2
votes
0answers
59 views

Apex SOAP WebService - how to suppress/alter accepted header

I am working with a 3rd party on SOAP integration, and they send a detailed async fault response to any POST done by us. The data they send is rigid and they say they cannot (or won't) change it. I ...
2
votes
0answers
2k views

Trailhead Data Integration Specialist Superbadge || Test Class is Failing

I wrote the below test classes - @isTest global class ProjectCalloutServiceMock implements HttpCalloutMock{ global HttpResponse respond(HttpRequest req){ System.Debug('--++-- Inside ...
2
votes
0answers
50 views

Restricting API access to custom webservice

Is it possible to give a 3rd party application access to a custom webservice without giving them access to the standard API? To give a little background on my project. Users will use their ...
2
votes
0answers
39 views

Bundle VF page with public sites in AppExchange Managed Package

We have a requirement for an AppExchange product. We plan to bundle the Salesforce functionality as managed package and some part of the requirements as a secure but public widget that can be ...
2
votes
0answers
533 views

Can I solve the UNABLE TO LOCK ROW error with FOR UPDATE in this spot?

First of all, i've read most other posts about this error. The problem i have here is the code that was written in my org is using an UPSERT so don't see the spot where i can use the FOR UPDATE to ...
1
vote
1answer
68 views

Inserting a record after reading XML sent by external app

External app will send XML in their request to salesforce webservice class and webservice class will have to insert a object record.I have written a webservice and it is able to get the xml in string ...
1
vote
1answer
760 views

Salesforce WeChat integration

I am relatively new to Salesforce Service console and want to integrate WeChat in Service console. If the mobile number linked to the contact is registered on we chat , I need to able to send messages ...
1
vote
0answers
92 views

Web Service method over loading or default parameters

I have a web service method to load invoices into Salesforce for product type A and I am trying to modify the same method for product type B invoices. However the Product type B has couple more ...
1
vote
0answers
145 views

Debug Logs Explanation

I'm trying to understand the debug logs Salesforce provides. There are actually two duration(in ms) for every webservice called. One at the top One at the bottom giving up split up method wise The ...
1
vote
0answers
236 views

Command button action generate dynamic CSV File and Upload into DropBox Account?

Hi All, When End User Click the Command button need to genearte the dynamic CSV File using apex and uploading into Drop Box account. Hereby my code as follows, public class ...
1
vote
1answer
253 views

Calling web service from salesforce to salesforce by using session id

I am trying to achieve to call webservice from force.com sites to salesforce providing sessionid such that i will be able to do that logic using that user see below web service global class ...
1
vote
0answers
2k views

Getting Unable to parse callout response. Apex type not found for element EMPLOYEE_ID while calling WSDL method

I have got a WSDL file and i have generated respective classes from provided WSDL using Apex -> Generate from WSDL functionality. Sub has been generated without any issue. I have wrote a class to ...
1
vote
0answers
164 views

Return Bulk data using webService

I am writing a SOAP WS in salesforce to return data from multiple objects global class TXLIDAWS { webservice static List<DataWrapper> GettxlidaData(){ List<DataWrapper> ...
1
vote
0answers
294 views

Mass/Bulk Update Campaign Member Status Over 200

I am looking to update all of the related Campaign Members' Statuses from a Campaign based on the execution of a JavaScript button and an APEX Class. The button below works to update the status from '...
1
vote
2answers
461 views

Salesforce record and attachement export to ftp folder

I want to export record(Contact) with image(attachment ) into ftp folder. The export format for record are excel, xml and txt. Image in the form of jpeg. Each record should have separate file. For ...
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
22 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
35 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
52 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
0answers
55 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
57 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
1answer
198 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
0answers
443 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
127 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 ...