Skip to content

Instantly share code, notes, and snippets.

@rdehler
rdehler / Sample Save And Open PDF button
Last active Aug 29, 2015
Save and Open PDF template with Apex
View Sample Save And Open PDF button
/apex/SaveAndOpenPDF?id={!Contact.Id}
View gist:2df49267aa91165ab8f3
global class WebserviceExample {
webservice static String getStuff(String stuffToGet) {
}
}
View gist:fe6ef3a7e978bae15891
<service name="WebserviceExampleService">
<documentation/>
<port binding="tns:WebserviceExampleBinding" name="WebserviceExample">
<soap:address location="https://cs22.salesforce.com/services/Soap/class/WebserviceExample"/>
</port>
</service>
@rdehler
rdehler / CommunitiesLogin.vfp
Created May 6, 2020
Proof of concept to use a partial username or even another
View CommunitiesLogin.vfp
<apex:page id="loginPage" controller="CommunitiesLoginController" title="{!$Label.site.site_login}" showHeader="false">
<apex:form>
<apex:pageMessages></apex:pageMessages>
Username:
<apex:inputText value="{!username}" />
Password:
<apex:inputSecret value="{!password}" />
<apex:commandButton action="{!customLogin}"/>
</apex:form>
</apex:page>
You can’t perform that action at this time.