Skip to content

Instantly share code, notes, and snippets.

function DataExtensionRecordsOperator(configuration){
var api;
var customerKey;
if(!configuration) Platform.Function.RaiseError('An configuration Object is required');
if(!configuration.api) Platform.Function.RaiseError('Api attribute is required');
if(!configuration.dataExtensionCustomerKey && !configuration.dataExtensionName) Platform.Function.RaiseError('dataExtensionCustomerKey or dataExtensionName attribute is required');
if(configuration.dataExtensionCustomerKey && typeof configuration.dataExtensionCustomerKey != 'string') Platform.Function.RaiseError('dataExtensionCustomerKey must be a String');
api = configuration.api;
@leto96
leto96 / sfdx.md
Last active September 28, 2022 09:17
SFDX line commands

Logs

Lista todos os logs em JSON

sfdx force:apex:log:list --json

Lista todos os logs e salva em um arquivo (para melhor visualização)

sfdx force:apex:log:list --json > ".sfdx\tools\debug\logs\listLogs.json"

@leto96
leto96 / SMSDynamicBitlyLink.js
Last active May 6, 2023 14:38
Create Dynamic links using Bit.ly API in Marketing Cloud SMS Send, with AMPScript and Guide Template Language