Skip to content

Instantly share code, notes, and snippets.

// Loop through
for(Integer i = 0; i < contacts.size(); i++){
c = contacts.get(i);
if(oldAccountIds != null)
oldAccount = oldAccountIds.get(c.Id);
else
oldAccount = null;
items.add(new Map<string, object>{
<?php
/**
* GitHub webhook handler template.
*
* @see https://developer.github.com/webhooks/
* @author Miloslav Hůla (https://github.com/milo)
*/
$hookSecret = 's.e.c.r.e.t'; # set NULL to disable check