New Batch#100 (10th Nov 2021) - Salesforce Admin + Dev Training (WhatsApp: +91 - 8087988044) :https://t.co/p4F3oeQagK

INTEGRATION

31 comments:

  1. http://wiki.developerforce.com/page/Introduction_to_the_Force.com_Web_Services_Connector

    ReplyDelete
  2. Cast Iron:
    http://krishhari.wordpress.com/2012/03/

    ReplyDelete

  3. Big Machines is one of the Vendor like Salesforce:
    --------------------------------------------------
    Which contains more features for Quote Generation.

    ReplyDelete
    Replies
    1. Hai srinu Can You Provide Topic wise Interview Questions On SFDC Configuration.

      Delete
  4. SOFON:
    ------
    SOFON is one of the on primise Application for Quote Generation.

    ReplyDelete
  5. Enterprise WSDL:
    ----------------
    * It is Strongly types WSDL.
    * It is a big WSDL which contains entire schema of the organization (Detail objects like account, contact ...)
    * If the schema of the organization modified then we need to regenerate Enterprise WSDL.
    * It is suitable when we need to integrate only with one organization.

    Partner WSDL:
    -------------
    * It is Loosely coupled WSDL.
    * It is small WSDL which contains Generic information about schema of the organiztion (It doesn't include detail object information).
    * If the schema of the organization modified then no need to create Partner WSDL again.
    * It is suitable when we need to integrate with multiple organizations (Like sandbox, production).

    ReplyDelete
  6. SOAP API:
    ---------

    * We need to provide username and password for authentication while consuming WSDL which belongs to external application. (We should know their authentication details).
    * After generating apex classes from WSDL then in those apex classes we should provide username and encrypted password (string s=encodingutil.base64Encode(b); like this).

    * If we provide WSDL to access in external application then we need to provide our authentication (username and password) to external system.

    ReplyDelete
  7. Rest API is for another usage than Soap API
    -------------------------------------------

    For data replication / sync, you have to use the Soap Api, beacuse you have dedicated verbs for this : getDeleted, get Updated, capability to query on deleted records...

    Think about using the Rest Api for single record usage by a final user. For instance, if you are developing a mobile app, Rest Api would be appropriate.

    ReplyDelete
  8. hi how to get wsdl for google callender (I want ti get tasks created in google callender into salesforce callender)

    ReplyDelete
  9. *** Web services (Concrete WSDL) - roughly***
    //Generated by wsdl2apex
    //Paste and execute below code in developer console
    /*BookrWs.BookWs stub = new BookrWs.BookWs();
    stub.sessionHeader = new BookrWs.sessionHeader_Element();
    stub.sessionHeader.sessionID = userInfo.getSessionID();
    stub.insertBook('SOAP19','VASU',1000);*/

    public class Bookrws {
    public class LogInfo {
    public String category;
    public String level; public class CallOptions_element {
    public String client;
    private String[] client_type_info = new String[]{'client','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
    private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/schemas/class/BookWs','true','false'};
    private String[] field_order_type_info = new String[]{'client'};
    }
    public class BookWs {
    //we have to register this below url in remotesitesettings
    public String endpoint_x = 'https://ap1-api.salesforce.com/services/Soap/class/BookWs';
    }
    }

    }
    *** Web services (Abstract WSDL)***
    //Book class for creating WSDL files
    global class BookWs {
    webservice static void insertBook(String title,String author,Integer price) {
    List blist = new List();
    Book__c b = new Book__c();
    b.Name = title;
    b.Author__c = author;
    b.Price__c = price;
    blist.add(b);
    //we can direcly insert record into model
    //insert b;
    //First after inserting values into the record we have to add record to the list
    insert blist;
    }
    }
    //Developer Console Code
    /*BookWs.insertBook('SOAP','SRINU',500);*/

    ReplyDelete
  10. OpenId Connect with Salesforce:
    http://blog.force365.com/2014/04/02/salesforce-openid-connect/

    ReplyDelete
  11. To parse JSON object or URL: (Refer w3schools for syntax)
    http://jsonlint.com/

    ReplyDelete
  12. Similar to Salesforce -
    http://www.mendix.com/

    ReplyDelete
  13. http://oauth.net/documentation/getting-started/

    ReplyDelete
  14. Integration Cloud: http://www.boomi.com/

    ReplyDelete
  15. SOAP API call out response will be always in XML format.
    REST API call out response will be in XML or JSON format. Default response will be in JSON format.

    ReplyDelete
  16. Single Sing on and OAuth: (Good Demo)
    https://www.youtube.com/watch?v=kIA1MZrNaAE&noredirect=1

    ReplyDelete
  17. Difference between SOAP and REST API, Please refer the following link -
    http://spf13.com/post/soap-vs-rest

    ReplyDelete
  18. Named Credentials: if we create named credentials, we no need to check for different endpoints based on the organization.

    ReplyDelete
  19. Advanced REST client ---> Chrome Plug in.

    ReplyDelete
  20. Salesforce disabling TLS 1.0 -
    https://help.salesforce.com/HTViewSolution?id=000221207&language=en_US

    ReplyDelete
  21. SOAP WSDL'S -
    http://www.jitendrazaa.com/blog/salesforce/consuming-external-webservice-in-apex/#viewSource

    ReplyDelete
  22. Critical Scenario:
    Difficulty: For call out to parse the response for the different services taking around 25, 30, 20 sec.
    Solution: Improved the performance by creating the POJO class for the each service, achieved around 80% performance (5,6,4,2 sec).

    ReplyDelete
  23. SSO with Salesforce as a Service Provider -
    http://www.jitendrazaa.com/blog/salesforce/step-by-step-guide-to-setup-federated-authentication-saml-based-sso-in-salesforce/

    ReplyDelete
  24. SOAP - BASIC AUTHENTICATION WITH USERNAME AND PASSWORD:
    // providing the cred inputs
    createOrder.inputHttpHeaders_x=new Map();
    String username = 'XXXX';
    String password = 'YYYY';
    Blob headerValue = Blob.valueOf(username + ':' + password);
    String authorizationHeader = 'BASIC ' +EncodingUtil.base64Encode(headerValue);
    createOrder.inputHttpHeaders_x.put('Authorization',authorizationHeader);


    //invoking the webservice to send orders from Salesforce
    callOutResponse=createOrder.MIOA_SFDC_to_SAP_Order(String input);

    ReplyDelete
  25. Hi How to get data from third party system and and store into salesforce custom object Automatically every week Monday IST 7AM. Using REST API.
    Can you please help me and also provide me sample code for this scenario.

    ReplyDelete
  26. Write a Apex which will make a outbound and scheduled that Apex class using cron expression. Scheduled Apex.

    ReplyDelete
  27. Public Rest api service in Salesforce -
    Create Rest Api class and assign to guest user profile in the site.com wesite. which can be tested in postman json tools for rest api.

    ReplyDelete
  28. oAuth Username and Password flow -
    https://test.salesforce.com/services/oauth2/token
    -----------------
    Post operation.
    body:
    grant_type=password&client_id=myClientId&client_secret=myClientSecret&username=myUserName&password=myPassword
    Headers:
    contentType: application/x-www-form-urlencoded

    which will give access token on success.

    ReplyDelete
  29. Exposing SOAP API to guest user -
    http://forceguru.blogspot.com/2012/09/creating-public-web-service-in.html

    ReplyDelete
  30. To mention the object type in soap wsdl -
    urn:sObjects xsi:type="urn1:Account" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    ReplyDelete

Labels