sfdx force:apex:log:list --json
sfdx force:apex:log:list --json > ".sfdx\tools\debug\logs\listLogs.json"
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; | |
%%[ | |
var @cloudpage, @link, @param, @bitlyPage, @contentType, @content, | |
@bitlyToken, @additionalHeaderName, @additionalHeaderValue, @request, @response, | |
@message | |
set @bitlyToken = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXX' // Your bitly Token | |
set @bitlyPage = 'https://api-ssl.bitly.com/v4/bitlinks' | |
set @contentType = 'application/json' | |
set @additionalHeaderName = 'Authorization' | |
set @additionalHeaderValue = concat('Bearer ', @bitlyToken) |