This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
allM_Asset(where: { title_eq: "Group selfie with drinks" }) { | |
total | |
results { | |
fileName | |
fileSize | |
isDraft | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://developer.boxever.com/reference/overview_batch | |
# https://developer.boxever.com/reference/importing-the-batch-file | |
# order data model: https://doc.sitecore.com/cdp/en/developers/sitecore-customer-data-platform--data-model-2-1/sitecore-cdp-order-data-model-for-batch-api.html | |
# Script takes a file, client key and api secret.Name your JSON file outputFile.json, and compress into outputFile.json.gz | |
# one JSON record per line, see docs for full details on fomatting | |
import csv | |
import json | |
import uuid | |
import codecs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bid:8d5dcebe-ce61-4825-969c-c9e926777516 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Extensions.DependencyInjection; | |
using Newtonsoft.Json.Linq; | |
using Sitecore.Data.Items; | |
using Sitecore.JavaScriptServices.GraphQL.LayoutService; | |
using Sitecore.LayoutService.Configuration; | |
using Sitecore.LayoutService.ItemRendering.ContentsResolvers; | |
using Sitecore.Mvc.Presentation; | |
using System; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows PowerShell | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
Try the new cross-platform PowerShell https://aka.ms/pscore6 | |
PS C:\Users\agehlot> cd D:\Projects\Personal\GitRepo\XM-Cloud-Intro | |
PS D:\Projects\Personal\GitRepo\XM-Cloud-Intro> .\up.ps1 | |
.\up.ps1 : File D:\Projects\Personal\GitRepo\XM-Cloud-Intro\up.ps1 cannot be loaded. The file D:\Projects\Personal\GitRepo\XM-Cloud-Intro\up.ps1 is not digitally signed. You cannot run | |
this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. | |
At line:1 char:1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you intend to push to a private registry, fill that in here. | |
REGISTRY= | |
COMPOSE_PROJECT_NAME=xm-cloud-introduction | |
# Configure host names, which will be used to configure Traefik proxy routing. | |
CM_HOST=xmcloudcm.localhost | |
MVP_RENDERING_HOST=mvp.xmcloudcm.localhost | |
SUGCON_EU_HOST=sugconeu.xmcloudcm.localhost | |
SUGCON_EU_HOST_INTERNAL_URI=http://sugcon-eu:3000 | |
SUGCON_ANZ_HOST=sugconanz.xmcloudcm.localhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2.4" | |
services: | |
traefik: | |
isolation: ${TRAEFIK_ISOLATION} | |
image: ${TRAEFIK_IMAGE} | |
command: | |
- "--ping" | |
- "--api.insecure=true" | |
- "--providers.docker.endpoint=npipe:////./pipe/docker_engine" | |
- "--providers.docker.exposedByDefault=false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
function getTriggerSession(){ | |
var sessionRef; | |
if (typeof entity !== 'undefined' && entity && entity.ref !== 'undefined') { | |
sessionRef = entity.ref; | |
} | |
//print (sessionRef); | |
var triggerSession; | |
for (var i = 0; i < guest.sessions.length; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () | |
{ | |
var fallbackImage = "https://mydemo.blob.core.windows.net/assets/b98a38c3-b757-5a2d-ad32-cf64c37ef0f5"; | |
var defaultWebsite = '0af7e4acd0454226bcc982ec8de42a38'; | |
var perfumeWebsiteId = '426efbad-a306-4cf2-9071-1a847285773e'; | |
var websiteId = defaultWebsite; | |
// detect the website by pointOfSale | |
if (entity && entity.pointOfSale == 'cdn-send-test-pos') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
function getTriggeredSession(){ | |
if (entity && entity.ref) | |
for (i=0;i<guest.sessions.length;i++) | |
if (guest.sessions[i].ref === entity.ref) return guest.sessions[i]; | |
return undefined; | |
} | |