Skip to content

Instantly share code, notes, and snippets.

View florianhoehn's full-sized avatar
🧘‍♂️
In der Ruhe liegt die Kraft.

Florian Hoehn florianhoehn

🧘‍♂️
In der Ruhe liegt die Kraft.
View GitHub Profile
@florianhoehn
florianhoehn / CCG Shipment-Status Updates: Credentials.md
Last active January 25, 2022 14:31
CCG Shipment-Status Updates

Endpoint

URL/DEV: https://kyowakirincares--dr1.my.salesforce.com URL/TEST: https://kyowakirincares--test.my.salesforce.com Endpoint: /services/data/v53.0/composite/ Method: POST

Credentials

ConsumerKey/DEV: 3MVG9FG3dvS828gLQKN4viy4F5P27rmmLkGGHc7Dl5pCDhgAjaW.96GLhN6y_UYWJK38zfB13fMqTpr0Z14s2 ConsumerSecret/DEV: D4D972B907BF7574D703DD29E5B324D64E8393F17CD239E53F88EEA6EBDCC1FC

@florianhoehn
florianhoehn / AttachmentTriggerHandler
Created May 16, 2017 09:25
AttachmentTriggerHandler
/**
* AttachmentInsertUpdateTriggerMVN
* Created By: Florian Hoehn
* Created On: 15/05/2017
* Description: This is a trigger class that creates ...
*
**/
public class AttachmentInsertUpdateTriggerMVN implements TriggerHandlerMVN.HandlerInterface {
private Map<String, Program_Member_Attachment_Setting_MVN__mdt> programMemberAttachmentSettings {
get {
# GIT
## Setup
Protect MASTER branch
Setup CI sandbox
Setup CircleCI to run on PR creation
## Guideline
every ticket gets its own branch
commit all touched items and update package.xml
releases get tagged
@florianhoehn
florianhoehn / AccountBuilder.cls
Last active November 28, 2016 09:33
So here is my interpretation of your SObjectBuilder or TestFactory :) - it ain't static btw !! I did not compile this...just jotted it down and put it together how it made sense to me. Probably makes sense to put a Util class back in for the describes and as you can see below using it should be really simple. I think it depends a bit if you like…
@isTest public with sharing class AccountBuilder {
private Account testAccount;
public AccountBuilder() {
this.testAccount = (Account)new SObjectBuilder('Account').build();
}
public AccountBuilder withRecordType(String recordTypeLabel) {
this.testAccount.RecordTypeId =
Schema.SObjectType.Account
@florianhoehn
florianhoehn / gist:e31e3051b056252c11f71aad3c4da721
Created August 2, 2016 10:38
more sophisticated builder pattern use case
Contact testContact = new ContactBuilder()
.withFirstName('JP')
.withLastName('Coolio')
.withAccount(new AccountBuilder().withRecordType('Coder'))
.build();
@florianhoehn
florianhoehn / LeadBuilder.cls
Last active November 16, 2016 11:59
builder pattern for lead
@IsTest(seeAllData=false)
public with sharing class LeadBuilder {
private Lead testLead =
new Lead(
FirstName = 'test-FirstName',
LastName = 'test-LastName',
Email = 'test@email.com',
Phone = '01234 567 890',
Street__c = 'test street',
City__c = 'test city',
@florianhoehn
florianhoehn / ngRemote:create
Created December 24, 2014 10:17
Create with ngRemote
<!-- DEFINITION REMOTEOBJECTS -->
<apex:remoteObjects jsNamespace="TestNamespace">
<apex:remoteObjectModel name="Account"
fields="Id, Name, SomeCustomField__c"/>
</apex:remoteObjects>
<!-- INCLUDE ANGULARJS -->
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"/>
<!-- NGREMOTEOBJECTS -->