This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -------------- | |
// DTO Base Class | |
global abstract class DtoBase { | |
global abstract String getSObjectName(); | |
global abstract Map<String, Object> getSObjectMap(); | |
global virtual SObject ToSObject() { | |
SObject obj = Schema.getGlobalDescribe().get(getSObjectName()).newSObject(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get Current SFDC Instance URL | |
// For example: AP1 = 'https://ap1.salesforce.com | |
URL.getSalesforceBaseUrl().toExternalForm(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:form id="form"> | |
<apex:pageBlock id="blockContact" mode="edit"> | |
<apex:pageBlockSection id="blockDetails" title="Details"> | |
<apex:inputField id="inputContactName" value="{!Contact.Name}" /> | |
</apex:pageBlockSection> | |
</apex:pageBlock> | |
</apex:form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class Utility_RowIterator implements Iterator<String>, Iterable<String> | |
{ | |
private String m_Data; | |
private Integer m_index = 0; | |
private String m_rowDelimiter = '\n'; | |
public Utility_RowIterator(String fileData) | |
{ | |
m_Data = fileData; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ----------------------------------------- | |
// CREATE CONTACTS FROM GOOGLE SHEET | |
// ----------------------------------------- | |
// Name of the entry in the Documents entity. | |
String dataFile = 'DemoExport'; | |
// ----------------------------------------- | |
// Get the URL from Documents and retrieve from Google Sheets as TSV. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global class Utility_Batch_Delete implements Database.Batchable<SObject> | |
{ | |
private String q; | |
private String fq; | |
private String[] qs; | |
global Utility_Batch_Delete(String query) | |
{ | |
q = query; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GET TIMESHEET REPORT METHOD - executes a predefined export report --------------------------------- | |
public String GetTimesheetReportExportForLast30DaysAsCSV(String[] projectUris) { | |
// Create the request body. | |
RepliconMessage.ExecuteReportRequest requestBody = new RepliconMessage.ExecuteReportRequest(); | |
requestBody.reportUri = 'urn:replicon-tenant:jamesn-monroe:report:5107f417-8bff-444b-aed9-5d5aa9bbfb1c'; | |
// Add the 30 day filter | |
requestBody.filterValues.add( | |
new RepliconMessage.ReportFilterValue('urn:replicon-tenant:jamesn-monroe:report-filter:354f94f3ac1d46518414c6c8affc3608;timesheetstartdaterangefilter', '16') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
sforce.one.navigateToList("00BB0000001L6FbMAK", "High Value Segment", "Contact"); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"template": { | |
"key": "stkildamums" | |
}, | |
"campaign": { | |
"key": "easter2016", | |
"title": "Donate", | |
"abstract": "We are a volunteer-run not-for-profit organisation based in St Kilda, Melbourne. <mark class=\"text-blue\">We rehome new and pre-loved baby goods and nursery equipment to families in need.<\/mark> We believe that by reusing and recycling much-loved babies\u2019 and children\u2019s gear, we not only share the joy of motherhood with each other, but we save the earth\u2019s precious resources too.", | |
"frequency": { | |
"onceOff": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component, PropTypes } from 'react'; | |
import classnames from 'classnames'; | |
import { ButtonGroup, Icon } from 'react-lightning-design-system'; | |
class PageHeader { | |
} | |
export class RecordView extends Component { | |
render() { | |
const { className, iconClassName, icon, iconCategory, subtitle, title, follow, cols, children, ...props } = this.props; |
OlderNewer