Sunday, May 7, 2023

Steps to follow when using a PowerShell script to modify the goals in Sitecore

I have previously utilized PowerShell for item creation, modification, deletion, and presentation details in Sitecore.

 ØRecently, I attempted to modify goals using PowerShell but was unable to find any relevant references.

ØFortunately, I received assistance from the Sitecore community and was ultimately able to complete the task.

ØIn order to read the assigned goals from the item, I created a form item with a "reference" field where I defined my actual ID.

ØFrom there, I was able to retrieve all the assigned goals from the item and apply my own logic as needed. 

Please find my code here,

Goal Script

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$successPageItem = Get-Item -Path "master:" -ID $UserItemId

if (Test-Path -Path $successPageItem.Paths.Path) 
{
# Get the assigned goals for the item using the Goals property
$trackingField = $successPageItem.Fields["__Tracking"].Value 

Write-Host "trackingField Fields: "$trackingField , $successPageItem.Paths.Path

if (![string]::IsNullOrEmpty($trackingField)) {

$xml = New-Object System.Xml.XmlDocument
$xml.LoadXml("$trackingField")

$xmls = [xml]$xml

# Select the first node using the SelectSingleNode method
$firstNode = $xmls.SelectSingleNode("/*/*[1]")

#form Json Object
$jsonObject = @{
    "referenceId" = $firstNode.id
}

Tuesday, November 22, 2022

MVP Contributions 2022

OpenSource Contributions:

https://github.com/ArulPushpam/SXA-Project/tree/feature/SC-InitialSetup - SXA Demo Project

https://github.com/ArulPushpam/SitecoreShade - Demo Project with Search components

 

Sitecore speaking events:

March 17 - Celebrating Women's History Month with the Women Sitecore MVPs at #SUGColumbus

https://kommunity.com/sitecore-user-group-columbus/events/celebrating-womens-history-month-with-the-women-sitecore-mvps-5ea2fce3

https://www.youtube.com/watch?v=igUh_38eLUU

 Sitecore Technical Blogs:

45 Blogs - 36 Youtube videos

January

Blogs:

https://sitecoreshades.blogspot.com/2022/01/sitecore-jss-series.html

https://sitecoreshades.blogspot.com/2022/01/master-layout.html

https://sitecoreshades.blogspot.com/2022/01/setup-jss-with-sitecore-sxa.html

https://sitecoreshades.blogspot.com/2022/01/jss-app-structure.html

https://sitecoreshades.blogspot.com/2022/01/create-banner-in-jss-app.html

https://sitecoreshades.blogspot.com/2022/01/connected-your-app-with-sitecore.html

https://sitecoreshades.blogspot.com/2022/01/create-your-jss-app.html

https://sitecoreshades.blogspot.com/2022/01/what-is-sitecore-jss.html 

Feb

Blogs:

https://sitecoreshades.blogspot.com/2022/02/sitecore-layout-demo.html

https://sitecoreshades.blogspot.com/2022/02/sitecore-first-workflow.html

https://sitecoreshades.blogspot.com/2022/02/jss-layout-service.html

https://sitecoreshades.blogspot.com/2022/02/searchstax-sitecore.html 

March

YouTube videos:

SXA Search Components - we don't  need to code for search components

SXA Search component - Use Case

SXA Search Box Component

SXA Search Result Component

SXA Checklist Filter - Multiselect

SXA Search Checklist Filter - Single Select

SXA Search DropDown Filter

SXA Search Date Range Filter

SXA Search Page Size Component

SXA Search Page Selector

SXA Search Sort By

SXA Search Result Count

SXA Search Result Variant selector

April

Blogs:

https://sitecoreshades.blogspot.com/2022/04/how-to-use-command-in-ribbon-section.html 

https://sitecoreshades.blogspot.com/2022/04/how-to-create-command-template.html

https://sitecoreshades.blogspot.com/2022/04/command-templates.html

https://sitecoreshades.blogspot.com/2022/04/how-to-add-custom-validation.html

https://sitecoreshades.blogspot.com/2022/04/validation-rules.html

https://sitecoreshades.blogspot.com/2022/04/validation.html 

YouTube videos:

SXA Token Creation

SXA Data source items Searchable

SXA Facet Summary Component

SXA Search Load More Component

May

Blogs:

https://sitecoreshades.blogspot.com/2022/05/taxonomies.html

https://sitecoreshades.blogspot.com/2022/05/entities.html

https://sitecoreshades.blogspot.com/2022/05/schema.html

https://sitecoreshades.blogspot.com/2022/05/dam-terminology.html

June

Blogs:

https://sitecoreshades.blogspot.com/2022/06/implement-conditional-display-fields.html

https://sitecoreshades.blogspot.com/2022/06/import-option-lists-using-excel.html

https://sitecoreshades.blogspot.com/2022/06/create-new-option-lists-and-extend.html

https://sitecoreshades.blogspot.com/2022/06/implement-security-on-properties.html

https://sitecoreshades.blogspot.com/2022/06/determine-metadata-requirements-based.html

https://sitecoreshades.blogspot.com/2022/06/schema-design.html

July

Blogs:

https://sitecoreshades.blogspot.com/2022/07/email-template.html

https://sitecoreshades.blogspot.com/2022/07/user.html

https://sitecoreshades.blogspot.com/2022/07/page-theme.html

https://sitecoreshades.blogspot.com/2022/07/login-page.html

https://sitecoreshades.blogspot.com/2022/07/custom-home-page.html

https://sitecoreshades.blogspot.com/2022/07/page-template.html

https://sitecoreshades.blogspot.com/2022/07/theme-logo.html

https://sitecoreshades.blogspot.com/2022/07/create-new-theme.html

https://sitecoreshades.blogspot.com/2022/07/branding-and-theme-custom-home-pages.html

https://sitecoreshades.blogspot.com/2022/07/search-component-and-mass-edit.html

https://sitecoreshades.blogspot.com/2022/07/search-component.html

https://sitecoreshades.blogspot.com/2022/07/advanced-search.html

August

YouTube videos:

SXA Token Creation

Reusing partial design

Why SXA Page branch?

How to add page branch?

How to update page branch

Facets with Computed field

Search Box Design

Search Result Component

CLI Serialization Setup

Customize rendering HTML per site

Link Field Scriban Extension Function

Designing Navigation Component

SXA Hero carousel

Blog List Using Search Result Component

Footer Section - LinkList SXA Component

SXA Site & Solution Setup

SXA Partial Design

Sitecore Serialization using CLI

Demo Site Overview

Sitecore 10.2 Installation

September

Blogs:

https://sitecoreshades.blogspot.com/2022/09/media-processing-set.html

https://sitecoreshades.blogspot.com/2022/09/processing-flow-detail.html

https://sitecoreshades.blogspot.com/2022/09/task-creation-in-media-processing.html

https://sitecoreshades.blogspot.com/2022/09/create-media-processing.html

October

Blogs:

https://sitecoreshades.blogspot.com/2022/10/drm-contracts.html

November

Blogs:

https://sitecoreshades.blogspot.com/2022/05/dam-terminology.html

 

Sitecore Stack Exchange

https://sitecore.stackexchange.com/users/5187/arul-pushpam

Honourable mention in LinkedIn

https://www.linkedin.com/posts/rahul-patil-854747173_rahul-patil-sitecore-certificate-activity-6929121466781163520-rkdr?utm_source=share&utm_medium=member_desktop

https://www.linkedin.com/posts/chirag-goel-06b804148_schackathon-schackathon-sitecore-activity-6906283279260233728-vwrq?utm_source=share&utm_medium=member_desktop

LinkedIn Activities

Promoted the JSS workshop by sharing my experience

https://www.linkedin.com/posts/arul-pushpam-murugan_sitecore-sitecorejss-sitecoremvp-activity-6928394799905472512-t36d?utm_source=share&utm_medium=member_desktop

https://www.linkedin.com/posts/arul-pushpam-murugan_celebrating-womens-history-month-with-the-activity-6908643950538690560-dm92?utm_source=share&utm_medium=member_desktop

https://www.linkedin.com/in/arul-pushpam-murugan/recent-activity/shares/

Monday, October 31, 2022

DRM Contracts

 Digital Rights Management (DRM) prevents the unauthorized use and download of restricted assets.

Create a new DRM contract

A digital rights management (DRM) contract contains multiple rights profiles and related files, such as contract files. You can manage your DRM contracts from the DRM contracts page.

To create a contract:

 On the menu bar, click DRM and select DRM contracts.


  • Click save

Link existing assets to an existing DRM rights profile




Link existing assets to an existing DRM rights profile


                             





  • Click request authorization


Friday, September 30, 2022

Media Processing Set

 Create a media processing set

ØOn the menu bar, click Manage .

ØOn the Manage page, click Media processing.

ØThe Media processing page lists all the defined media processing sets. If you click on a media processing set in the left pane, the flows it contains are displayed in the right pane.

ØTo create a new media processing set, on the Media processing page, click New set.


ØTo create a new media processing set, on the Media processing page, click New set.

ØIf you want the processing set to be applied by default and run on each processing job, turn the Auto-run switch to On.


Create a media processing flow

ØOn the media processing set page, click Add flow.

In the Flow settings dialog box, define the following parameters:


Priority: this is the priority handling of processing jobs defined on the flow level. Flows are handled by the processing agent with the following priorities:

ØLow

ØNormal

ØHigh

ØBackground

Name: this is the name used for the media processing flow. We recommend that you use a label that characterizes the file type cluster.

File types: these are the file extensions that go through the media processing flow.

Next we need to know about Processing flow to proceed further

Processing flow detail

 Processing flow detail

The Processing flow detail page provides a visual representation of the tasks contained within a media processing flow and provides the ability to select, edit, clone, move, or delete a task. The following example shows the media processing flow for Images.

When you select a task, the right pane displays the task details. Task details consist of the task name and parameters.

Interact with the media processing flow

ØOn the menu bar, click Manage .

ØOn the Manage page, click Media processing.

ØIn the left page of the application window, click a media processing set, for example Content.

ØIn the list, click a flow, for example Images.



Do any of the following:

ØTo select a task, click the task.

ØTo edit a task, click Edit .

ØTo delete a task, click Delete . >(This action also deletes its child tasks).

ØTo clone a task, click Clone . > (This action clones the selected task only and does not clone the child tasks).

ØTo move the flow, hold down the left mouse button and move the flow to the desired location.

ØTo zoom in and out on the canvas, use the mouse wheel.

 When you finish your changes, click Save task.

The next step is we need to create a task 

Steps to follow when using a PowerShell script to modify the goals in Sitecore

I have previously utilized PowerShell for item creation, modification, deletion, and presentation details in Sitecore.   Ø Recently, I attem...