Skip to content

Instantly share code, notes, and snippets.

@idanblich
idanblich / Salesforce_Box_comWebhookintegratio30lines.cls
Last active January 16, 2019 05:57
Salesforce-Box.com Webhook integration ~30 lines
@RestResource(urlMapping='/BoxRestAPI/V1/*')
global class BoxRest {
@HttpPost
global static void postItems () {
RestRequest req = RestContext.request;
RestResponse res = RestContext.response;
System.debug('[ Post req --> ]' + JSON.serializePretty( req ) ) ;
{
"version": "2.0.0",
"tasks": [
{
"label": "SFDX: Open Visualforce Page",
"type": "shell",
"command": "sfdx",
"args": [
"force:org:open",
"--path",
@idanblich
idanblich / tasks.code-snippets
Last active February 24, 2019 08:06
Global snippet for VSCode , to create open VF page and Lightning App
{
"Create tasks": {
"prefix": "tasks.json",
"body": [
"{",
" \"version\": \"2.0.0\",",
" \"tasks\": [",
" {",
" \"label\": \"SFDX: Open Visualforce Page\",",
" \"type\": \"shell\",",