Skip to content

Instantly share code, notes, and snippets.

Avatar

Bo Laurent bolaurent

View GitHub Profile
@bolaurent
bolaurent / migrate-google-docs.py
Last active Dec 20, 2019
Migrate Salesforce.com GoogleDocs to Salesforce Files Connect ContentVersion records
View migrate-google-docs.py
#!/usr/local/bin/python3
# Enable 'Create Audit Fields' [https://help.salesforce.com/articleView?id=000334139&type=1&mode=1]
# Create a custom field Original_Record_Id__c on ContentVersion (you must be in Lightning to do this)
# Find the ID of your ExternalDataSource for Google Drive and update EXTERNAL_SOURCE_ID
# Execute this query and save result to GoogleDocs.csv.
# SELECT
# Id,Name,Url,OwnerId,ParentId,CreatedById,CreatedDate,LastModifiedById,LastModifiedDate
@bolaurent
bolaurent / DeveloperConsoleFix.page
Last active Apr 4, 2018
Salesforce Developer Console menus not working fix
View DeveloperConsoleFix.page
<apex:page docType="html-5.0" id="thepage">
<script src="//cdnjs.cloudflare.com/ajax/libs/jsforce/1.7.0/jsforce.min.js"></script>
<apex:form id="theform">
<apex:pageblock id="thepageblock">
<apex:pageblockButtons location="top" id="buttons">
<apex:commandButton value="Delete my IDEWorkpace"
onclick="deleteIDEWorkspace()"
disabled="True"
id="deletebutton"
@bolaurent
bolaurent / auraIfAdvanced.auradoc
Created Nov 28, 2017
auraIfAdvanced (salesforce lightning component)
View auraIfAdvanced.auradoc
<aura:documentation>
<aura:description>Documentation</aura:description>
<aura:example name="ExampleName" ref="exampleComponentName" label="Label">
<!--
<c:auraIfAdvanced list="["a","b","c"]" element="b">
WhateverU_NeedHere
</c:auraIfAdvanced>
-->
@bolaurent
bolaurent / SearchSalesforceReports
Created Nov 17, 2016
Examine each Salesforce report definition, and generate a csv file of those with relevant filters
View SearchSalesforceReports
#!/usr/local/bin/python3
# https://developer.salesforce.com/docs/atlas.en-us.api_analytics.meta/api_analytics/sforce_analytics_rest_api_getbasic_reportmetadata.htm
import pdb
import json
from collections import OrderedDict
import config
from progressbar import ProgressBar
You can’t perform that action at this time.