SitecoreCSPad is pad is used to execute C# codes inside your Sitecore instance. We can use sitecore, custom class codes. Below some of use cases,
Listed below some example use cases,
Read SOLR index docuemnts and get the values
Create/Update bulk Sitecore items
Read Sitecore items and bind into custom model
Call your custom dlls methods
Feature | Status |
---|---|
Execute C# code | ✅ Available |
Resuts display or log the execution results | ✅ Available |
Error details | ✅ Available |
Debugging | ⏳ InProgress |
During your development - You want to execute some C code for testing purpose , If you write the code and place the dll. This will eat your time. CS Pad will help you to save this time.
You want to execute some C# code in your higher environement and want to check some thing. Then this case CS pad will help you, with out test dll replacement.
Monaco
- C# code editorRoslyn/Micorsoft.Code/Westwind.Scripting
- C# code execution
Setting up this in your Sitecore XP/XM.
-
Go to release folder, get release artifacts and paste this in your website root.
-
Go to your web config and add custom assembly bindings from this file. (Please dont copy paste this config, Just do the manual change.)
-
Since this is a sensitve tool, its placed under admin folder. Below is the access path you can access the PAD, URL: https://{your-domain.com}/sitecore/admin/SitecoreCSPad/SitecoreCSPad.aspx
Write your code in input editor.
Execute your code by clicking this button
.
Results | Look and feel |
---|---|
Successfull, console view. | ![]() |
Successfull, object view. Example your return statement returning any object. This will show as object viewer | ![]() |
Error details | ![]() |