• Murthy Alluri
  • NEWBIE
  • 25 Points
  • Member since 2015
  • Senior Salesforce Developer
  • Accenture


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 8
    Replies
Hello, I am looking to integrate webservice callouts with Visual Workflow, can you please suggest the approach if anyone tried.
Hello, 
I am having a requirement first insert request record , second do the call out and update the same record.
I tried below approach as specified in salesforce knowledge articles, but still record is not saved in database so update is failing.
I followed below article but was not successful, please advise, is there any way we can make insert record and call out.

https://help.salesforce.com/apex/HTViewSolution?id=000003701
Hello , I have a requirement to do integration with SOAP WSDL, but SOAP12 version is not supported via salesforce, so would like to use Rest call out approach with SOAP tags wrapper, can you please advise how we can do that.
Hi,
I have question on HTTP response from debug log (Dev console) , I can see the response but to view the response in text pad or word pad I would like to copy it from the Log, how can I do it, can you please advise?

 
Hello, I am looking to integrate webservice callouts with Visual Workflow, can you please suggest the approach if anyone tried.
Hello , I have a requirement to do integration with SOAP WSDL, but SOAP12 version is not supported via salesforce, so would like to use Rest call out approach with SOAP tags wrapper, can you please advise how we can do that.
Hi,
I have question on HTTP response from debug log (Dev console) , I can see the response but to view the response in text pad or word pad I would like to copy it from the Log, how can I do it, can you please advise?

 

Hi, 

Previously I was receiving an error " Failed to parse wsdl: Unsupported Schema element found http://www.w3.org/2001/XMLSchema:include. At: 17:125". 
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="x1.URL" xmlns:ibmSchExtn="x2.URL">
<!-- <xsd:include schemaLocation="some link"/> -->
    </xsd:schema>

So I have commented out some part of the WSDL code i.e., the tags which are not supported by WSDL2Apex Conversion. 

Later on I'm receiving the new error:
Apex Generation Failed
Unable to find soap 1.1 address


I'm unable to proceed further, any help would be appreciated if anyone knows how to fix the above error.

Can't find apex class with invocable method in Process Builder on production org. On develop org it works fine.
User-added image
I tryed recompile all classes, it did not help. Class successfuly pass test. Please, what can be wrong?
 
global class SearchObjectWhenCreate {

global class Request {
    @InvocableVariable
    public String objectId;
    @InvocableVariable
    public String searchType;
}

@InvocableMethod
public static void searchObject(List<Request> requests) {

    SearchButtonsController searchButtonsCtrl = new SearchButtonsController();
    List<verf__VF_Search__c> listOfSearches = new List<verf__VF_Search__c>();

    if (Schema.sObjectType.VF_Search__c.fields.Id.isAccessible()){
        listOfSearches = [SELECT Id
                        FROM verf__VF_Search__c
                        WHERE Name =: requests[0].searchType
                        LIMIT 1];
    }
    if(!listOfSearches.isEmpty()){
        searchButtonsCtrl.vf_searchId = listOfSearches[0].Id;
        searchButtonsCtrl.strObjectId = requests[0].objectId;
        searchButtonsCtrl.getObjectInfo();
        searchButtonsCtrl.isCalledFromProcessBuilder = true;
        searchButtonsCtrl.searchRequest();
        request(searchButtonsCtrl.xmlStringxmlRes, searchButtonsCtrl.vf_searchName);
    }
}

@future(callout=true)
public static void request(String xmlStringxmlRes, String searchName) {
    Http httpProtocol = new Http();
    HttpRequest request = new HttpRequest();
    HttpResponse response = new HttpResponse();
    String body = 'request=' + xmlStringxmlRes;

    String endpoint = 'https://viqzrh5hp3.execute-api.us-east-1.amazonaws.com/verified_first';
    request.setEndPoint(endpoint);
    request.setBody(body);
    request.setMethod('POST');

    try {
         if(!Test.IsRunningTest()){
            response = httpProtocol.send(request);
            parseXMLResponce(response.getBody(), searchName);
        }
    } catch(System.CalloutException e) {
    }
}

 

 

Does the below limit....

 

'A single Apex transaction can make a maximum of 10 callouts to an HTTP request or an API call.'

 

Apply within a batch transaction?  For instance if I can write the batch to iterate on 10 records at a time, will I be able to get by this limit?  Really unfortunate if not.

 

Thanks for any direction.

  • August 12, 2010
  • Like
  • 0