Skip to main content

Posts

Showing posts from September, 2015

How will external system get SFDC service endpoint URL dynamically

Hi All, This post is all about to avoid an integration issue(Service not available or invalid session id) when instance url get changed in SFDC. From SFDC side no need to perform any action ,but we can suggest appropriate approach of fetching endpoint url to external system so that communication will be smoother. For an inbound integration SFDC has to provide two WSDL to external system. Partner WSDL (Required to generate session id ) Service WSDL In the service wsdl the endpoint URL will be <soap:address location=" https://cs15.salesforce.com/services/Soap/class/YourWebserviceClassName "/> So the external system will add endpoint URL in a property file or in some in configuration stuff, that is how webservice works.As we all know instance ( cs15 ) used to change from environment to environment (QA to UAT), and instance will  also change when SFDC plan for refreshment of server. At that time we have to update external team about the new url otherwise the...

How to make pageblock section to be collapsed by default

Hi All, We can achieve it through java script. <apex:page standardController="Account"> <apex:form> <apex:pageBlock id="block1">     <apex:pageBlockSection id="section1" columns="2" collapsible="true" title="Collapsebale Section">         <apex:inputField value="{!Account.Name}"/>          <apex:inputField value="{!Account.Phone}"/>     </apex:pageBlockSection>      <script> twistSection(document.getElementById('{!$Component.block1.section1}').getElementsByTagName('img')[0]) </script> </apex:pageBlock> </apex:form> </apex:page> Normal Section Collapsed Section