<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jason Wassel, Author at DMC, Inc.</title>
	<atom:link href="https://static.dmcinfo.com/blog/author/jasonw/feed/index.xml" rel="self" type="application/rss+xml" />
	<link></link>
	<description></description>
	<lastBuildDate>Fri, 24 Jul 2026 16:48:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>

<image>
	<url>https://static.dmcinfo.com/wp-content/uploads/2025/04/site-icon-150x150.png</url>
	<title>Jason Wassel, Author at DMC, Inc.</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>A Simple Introduction to Azure Machine Learning Studio</title>
		<link>https://static.dmcinfo.com/blog/21352/a-simple-introduction-to-azure-machine-learning-studio/</link>
		
		<dc:creator><![CDATA[Jason Wassel]]></dc:creator>
		<pubDate>Thu, 27 Jun 2019 12:43:02 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Digital Workplace Solutions]]></category>
		<category><![CDATA[Machine Learning]]></category>
		<category><![CDATA[Microsoft Azure]]></category>
		<guid isPermaLink="false">https://static.dmcinfo.com/blog/21352/a-simple-introduction-to-azure-machine-learning-studio/</guid>

					<description><![CDATA[<p>Machine learning has been one of the most popular buzz terms in technology lately, and it projects to be one of the most widely used technologies in the AI space going forward. In a nutshell, machine learning involves feeding a model (the machine) data and having the model recognize patterns in the data (the learning). [&#8230;]</p>
<p>The post <a href="https://static.dmcinfo.com/blog/21352/a-simple-introduction-to-azure-machine-learning-studio/">A Simple Introduction to Azure Machine Learning Studio</a> appeared first on <a href="https://static.dmcinfo.com/">DMC, Inc.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><a href="/services/application-development/machine-learning">Machine learning</a> has been one of the most popular buzz terms in technology lately, and it projects to be one of the most widely used technologies in the AI space going forward. In a nutshell, machine learning involves feeding a model (the machine) data and having the model recognize patterns in the data (the learning). As the model gains access to more data points, it adapts and predicts future results and decisions for future similar scenarios.</p>



<p class="wp-block-paragraph">Microsoft Azure Machine Learning Studio is one of the platforms for creating predictive analytics models using machine learning. Azures cloud platform allows users to develop and initiate modeling without the need for hefty onsite computers. Its ability to access much of the Azure ecosystem, as well as the ease of use of its web interface, make Azure ML Studio an excellent option for quickly setting up your first machine learning experiment.</p>



<p class="wp-block-paragraph">ML studio provides users with the following components to create machine learning projects:</p>



<ul class="wp-block-list">
<li>Data Sources</li>



<li>Experiments</li>



<li>Trained Models</li>



<li>Web Services</li>



<li>Notebooks</li>
</ul>



<p class="wp-block-paragraph">A simple machine learning project can be made using these components and configured with a few clicks.</p>



<h2 class="wp-block-heading" id="h-data-sources"><strong>Data Sources</strong></h2>



<p class="wp-block-paragraph">ML studio features numerous data source options, many of which integrate with Azure.</p>



<ul class="wp-block-list">
<li>Blob storage</li>



<li>SQL Database</li>



<li>Cosmos DB</li>



<li>Web URL via HTTP</li>



<li>Hive Query</li>



<li>Local File</li>
</ul>



<p class="wp-block-paragraph">For this project, I needed past weather and climate data; I used data from the <a href="https://www.ncei.noaa.gov/cdo-web/search">national centers for environmental information</a> website. I will be using a .csv file with a file structure like the one below:</p>



<p class="wp-block-paragraph"><em>Sample rows of the dataset</em></p>



<h2 class="wp-block-heading" id="h-the-experiment"><strong>The Experiment</strong></h2>



<p class="wp-block-paragraph">In my free time, I enjoy running, but I don&#8217;t have a lot of time in my day, so I set up this experiment to look at my average runs per week and predict the likelihood that I will run in the future.</p>



<p class="wp-block-paragraph">To build the experiment, users drag, drop, and connect machine learning operations into a working model. The experiment map I made below lets us look at the components I used to create this experiment.</p>



<p class="wp-block-paragraph"><em>The canvas of the entire experiment</em></p>



<h2 class="wp-block-heading" id="h-rundata20182019-csv"><strong>RunData20182019.csv</strong></h2>



<p class="wp-block-paragraph">This is my dataset, uploaded from my local computer. Includes data on weather by day, and if I ran, or not.</p>



<h2 class="wp-block-heading" id="h-select-columns-in-the-dataset"><strong>Select Columns in the dataset</strong></h2>



<p class="wp-block-paragraph">If there are any columns in your dataset that you know will not help predict a result, you can remove them from future calculations. In the screenshot below, I am selecting precipitation, average wind speed, max and min temperature, and if I ran or not on a given day. I also added a calculated column, that indicates if I ran the preceding two days, as I usually don’t run three days in a row. This factor is unrelated to the weather but heavily influences my results. I excluded the name of the station and the date because those won’t yield much information about the weather itself.</p>



<p class="wp-block-paragraph"><em>Excluding columns Station and Date from model</em></p>



<h2 class="wp-block-heading" id="h-split-data"><strong>Split Data</strong></h2>



<p class="wp-block-paragraph">After the dataset is trimmed down to only the necessary features, I use the split data block to divide the data into a training set and a testing set. When the model runs, it will detect patterns in the training set, and then apply the patterns to the testing set, to see if there was a good fit of the model used.</p>



<p class="wp-block-paragraph"><em>Splitting the dataset into a training set and testing set</em></p>



<h2 class="wp-block-heading" id="h-two-class-boosted-decision-tree"><strong>Two-Class Boosted Decision Tree</strong></h2>



<p class="wp-block-paragraph">For this algorithm, I’ve chosen to use the Two-Class Boosted Decision tree. I elected to use this model as it is a fast and reliable algorithm for predicting on which day each class belongs. Since my dataset was small, I was not worried about it being one of the more memory intensive approaches. In setting up the model, I left the default properties as is.</p>



<p class="wp-block-paragraph"><em>Settings for the Two-Class Boosted Decision tree</em></p>



<p class="wp-block-paragraph">&nbsp;</p>



<p class="wp-block-paragraph"><em>Summary of&nbsp;</em><i>ML algorithms provided by Microsoft </i></p>



<h2 class="wp-block-heading" id="h-train-model"><strong>Train Model</strong></h2>



<p class="wp-block-paragraph">After selecting the algorithm, the next step was training the model. Here, selecting the desired output column is the only configuration step needed. Since I was predicting, “will I run?” I chose the “Run” column.</p>



<p class="wp-block-paragraph"><em>Train model interface for selecting the output column</em></p>



<h2 class="wp-block-heading" id="h-score-and-evaluate-model"><strong>Score and Evaluate Model</strong></h2>



<p class="wp-block-paragraph">Now that training and testing within the model are complete, let’s evaluate it! There 149 data points in the testing set, with 38 days that I went for a run. The model reported with 85.9% accuracy, with a tendency to say I won’t run more often than I will. For the first attempt with a simple model, I am happy with these results.</p>



<figure class="wp-block-image"><img decoding="async" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/8-ML-blog.png" alt=""/></figure>



<p class="wp-block-paragraph"><strong>The Results</strong></p>



<p class="wp-block-paragraph">After creating an initial experiment, I can go a few ways with Azure ML. I can try to further fine tune my model, by testing other algorithms or even adding in different algorithms for improved feature selection. Once I am fully satisfied with the model, Azure makes it easy to create a web service that will allow a user to query and classify new data points instantly. Microsoft provides sample code for querying the service in C#, R, and python. Using ML Studio and the auto-generated web service, you can have a business ready machine learning model up and running in no time!</p>



<p class="wp-block-paragraph">Find out more about DMC&#8217;s <a href="/services/application-development/machine-learning">Machine Learning</a> and <a href="/services/digital-workplace-solutions/microsoft-consulting-services/microsoft-azure-cloud-solutions-and-services">Microsoft Azure Cloud Solutions</a></p>
<p>The post <a href="https://static.dmcinfo.com/blog/21352/a-simple-introduction-to-azure-machine-learning-studio/">A Simple Introduction to Azure Machine Learning Studio</a> appeared first on <a href="https://static.dmcinfo.com/">DMC, Inc.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>An Introduction to Power BI&#8217;s Query Editor</title>
		<link>https://static.dmcinfo.com/blog/22651/an-introduction-to-power-bis-query-editor/</link>
		
		<dc:creator><![CDATA[Jason Wassel]]></dc:creator>
		<pubDate>Wed, 26 Sep 2018 13:29:12 +0000</pubDate>
				<category><![CDATA[Business Intelligence]]></category>
		<category><![CDATA[Digital Workplace Solutions]]></category>
		<category><![CDATA[Power BI]]></category>
		<guid isPermaLink="false">https://static.dmcinfo.com/blog/22651/an-introduction-to-power-bis-query-editor/</guid>

					<description><![CDATA[<p>Power BI is a fantastic tool for creating visually appealing reports to analyze numerous sources of data. Report creation is often as simple as dragging and dropping if the data available is appropriately formatted. However, this is not always the case. Fortunately, Power BI contains a powerful Query Editor that allows you to transform your [&#8230;]</p>
<p>The post <a href="https://static.dmcinfo.com/blog/22651/an-introduction-to-power-bis-query-editor/">An Introduction to Power BI&#8217;s Query Editor</a> appeared first on <a href="https://static.dmcinfo.com/">DMC, Inc.</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph">Power BI is a fantastic tool for creating visually appealing reports to analyze numerous sources of data. Report creation is often as simple as dragging and dropping if the data available is appropriately formatted. However, this is not always the case. Fortunately, Power BI contains a powerful Query Editor that allows you to transform your data into exactly the form you need. Below is a list of features that can make life easier!</p>

<p class="wp-block-paragraph">To access the query editor, navigate to the home tab, and click on Edit Queries in the External Data section.</p>

<figure class="wp-block-image"><img decoding="async" alt="Power BI query" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/Power-BI-1.png"  /></figure>

<h2 class="wp-block-heading">Renaming Columns</h2>

<p class="wp-block-paragraph">Renaming columns in Power BI is a best practice, as it makes working with the dataset easier. Many database columns often have longer names that only make sense within the context of the database. If so, right click on the column header, select Rename, and type in a user-friendly title! There is also a rename option under the Transform tab in the Any Column section.</p>

<figure class="wp-block-image"><img decoding="async" alt="Power BI columns" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/POwer-BI-2-.png"  /></figure>

<h2 class="wp-block-heading">Creating a Custom Column</h2>

<p class="wp-block-paragraph">If the data points aren&rsquo;t in the exact format required, creating a custom column is a great option. With this feature, you can combine columns into one, and even conditionally create new ones based on data values. For instance, below I am combining the City and State columns into one. In the second image, I am creating a column that classifies the data point as either &ldquo;Large Opportunity,&rdquo; &ldquo;Medium Opportunity,&rdquo; or &ldquo;Small Opportunity&rdquo; based on its amount value. To access these features, click on the Add Column tab along the top menu, and create the column that best fits your needs.</p>

<p class="wp-block-paragraph"><figure class="wp-block-image"><img decoding="async" alt="Power BI custom column" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/Power-BI-3-.png"  /></figure><figure class="wp-block-image"><img decoding="async" alt="conditional column POwer Bi " src="https://static.dmcinfo.com/wp-content/uploads/2025/05/Power-BI-3_5.png"  /></figure></p>

<h2 class="wp-block-heading">Filtering Data</h2>

<p class="wp-block-paragraph">Depending on your needs, there may be data points that are irrelevant to the dashboard you are creating. Rather than filter them out on each visual, the Query Editor can filter them out as soon as the data gets to Power BI. Click on the arrow by the column header, and deselect the options that are not applicable to your situation.</p>

<figure class="wp-block-image"><img decoding="async" alt="Power BI filter" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/Power-BI-4.png"  /></figure>

<h2 class="wp-block-heading">Grouping Data</h2>

<p class="wp-block-paragraph">While Power BI is smart enough to group data in visuals across aggregations like Sum, Average, and Maximum, the Query Editor provides an option to group the data explicitly. Simply select the grouping column, and the aggregation details and the data will group as expected.</p>

<figure class="wp-block-image"><img decoding="async" alt="Power BI groups" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/Power-BI-5.png"  /></figure>

<h2 class="wp-block-heading">Combining Datasets</h2>

<p class="wp-block-paragraph">If you are pulling in similar data from multiple sources, Power BI allows you to append the tables together easily. If the tables already have the same columns, and you&rsquo;re looking to operate similar SQL&rsquo;s Union, you can use the append feature, seen below. If you are trying to imitate SQL&rsquo;s Join, the Query Editor has an option to Merge Queries, which will work just as a Join operation would.</p>

<figure class="wp-block-image"><img decoding="async" alt="Power BI merging" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/Power-Bi-6.png"  /></figure>

<h2 class="wp-block-heading">Pulling it all Together</h2>

<p class="wp-block-paragraph">As you perform each one of these steps, Power BI tracks the exact changes you&rsquo;ve made. You can see these changes queuing on the left of the Query Editor. If you are a more technical user, you can also view all these query modifications in the advanced editor, where you can make modifications by changing the text of the query steps themselves.</p>

<p class="wp-block-paragraph"><figure class="wp-block-image"><img decoding="async" alt="Power BI applied steps" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/Power-BI-7-.png"  /></figure><figure class="wp-block-image"><img decoding="async" alt="Power BI applied steps 2" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/Power-BI-8.png"  /></figure></p>

<p class="wp-block-paragraph">After you&rsquo;ve applied all your data transformations, you&rsquo;ll have a dataset ready to be morphed into a shiny dashboard!</p>

<p class="wp-block-paragraph"><a href="/services/digital-workplace-solutions/microsoft-consulting-services/business-intelligence">Learn more about DMC&rsquo;s Business Intelligence services.</a></p>
<p>The post <a href="https://static.dmcinfo.com/blog/22651/an-introduction-to-power-bis-query-editor/">An Introduction to Power BI&#8217;s Query Editor</a> appeared first on <a href="https://static.dmcinfo.com/">DMC, Inc.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How To Batch Update Text on a SharePoint Wiki</title>
		<link>https://static.dmcinfo.com/blog/24203/how-to-batch-update-text-on-a-sharepoint-wiki/</link>
		
		<dc:creator><![CDATA[Jason Wassel]]></dc:creator>
		<pubDate>Wed, 21 Jun 2017 09:57:38 +0000</pubDate>
				<category><![CDATA[Digital Workplace Solutions]]></category>
		<category><![CDATA[SharePoint BI]]></category>
		<guid isPermaLink="false">https://static.dmcinfo.com/blog/24203/how-to-batch-update-text-on-a-sharepoint-wiki/</guid>

					<description><![CDATA[<p>SharePoint wiki pages&#160;are a great way to&#160;collaborate&#160;with coworkers and team members. You can add and edit information, links, and pictures to a wiki page through an easy process. SharePoint wikis have a wide range of uses. Here at DMC, we use wiki pages to host our Standard Operating Procedures&#160;(SOPs).&#160; Our SOPs often contain links to [&#8230;]</p>
<p>The post <a href="https://static.dmcinfo.com/blog/24203/how-to-batch-update-text-on-a-sharepoint-wiki/">How To Batch Update Text on a SharePoint Wiki</a> appeared first on <a href="https://static.dmcinfo.com/">DMC, Inc.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><a href="https://products.office.com/en-US/sharepoint/collaboration?ms.officeurl=sharepoint" target="_blank">SharePoint</a> wiki pages&nbsp;are a great way to&nbsp;collaborate&nbsp;with coworkers and team members. You can add and edit information, links, and pictures to a wiki page through an easy process.</p>



<p class="wp-block-paragraph">SharePoint wikis have a wide range of uses. Here at DMC, we use wiki pages to host our <strong>Standard Operating </strong><strong>Procedures&nbsp;</strong>(SOPs).&nbsp;</p>



<p class="wp-block-paragraph">Our SOPs often contain links to other SharePoint pages. Recently, we reorganized our SharePoint taxonomy, otherwise known as a scheme of classification. During this process, some site&#8217;s base URLs changed&nbsp;which caused some of the links in our wiki to become outdated.</p>



<p class="wp-block-paragraph">With over 700 wiki pages, manually validating every link in each page was out of the question. To solve this problem, we developed a program using SharePoint’s client object model that replaced every outdated link with an updated one.</p>



<h2 id="h-client-object-model-background" class="wp-block-heading">Client Object Model Background</h2>



<p class="wp-block-paragraph">The SharePoint client object model (CSOM) gives developers access to SharePoint data without requiring direct access to the server. CSOM is commonly used for updating lists and list items. In this demonstration, we will update&nbsp;a list of wiki pages.</p>



<h2 id="h-demonstration" class="wp-block-heading">Demonstration</h2>



<p class="wp-block-paragraph">Below is example code for updating the text of wiki pages using the client object model, which can be used for accessing SharePoint sites, lists, and items without direct access to the server. Explanations for the code are written in-line with comments.</p>



<p class="wp-block-paragraph">1. Set up a connection to the SharePoint site, and load the list to edit.</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e"><span style="background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e">C#</span></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>using Microsoft.SharePoint.Client;

var site = new ClientContext("http://contoso.com/");

site.Load(site.Web);

List wikiList = site.Web.Lists.GetByTitle("Wiki List");
site.Load(wikiList);

site.ExecuteQuery();</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #C586C0">using</span><span style="color: #D4D4D4"> </span><span style="color: #4EC9B0">Microsoft</span><span style="color: #D4D4D4">.</span><span style="color: #4EC9B0">SharePoint</span><span style="color: #D4D4D4">.</span><span style="color: #4EC9B0">Client</span><span style="color: #D4D4D4">;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #569CD6">var</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">site</span><span style="color: #D4D4D4"> = </span><span style="color: #569CD6">new</span><span style="color: #D4D4D4"> </span><span style="color: #4EC9B0">ClientContext</span><span style="color: #D4D4D4">(</span><span style="color: #CE9178">&quot;http://contoso.com/&quot;</span><span style="color: #D4D4D4">);</span></span>
<span class="line"></span>
<span class="line"><span style="color: #9CDCFE">site</span><span style="color: #D4D4D4">.</span><span style="color: #DCDCAA">Load</span><span style="color: #D4D4D4">(</span><span style="color: #9CDCFE">site</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">Web</span><span style="color: #D4D4D4">);</span></span>
<span class="line"></span>
<span class="line"><span style="color: #4EC9B0">List</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">wikiList</span><span style="color: #D4D4D4"> = </span><span style="color: #9CDCFE">site</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">Web</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">Lists</span><span style="color: #D4D4D4">.</span><span style="color: #DCDCAA">GetByTitle</span><span style="color: #D4D4D4">(</span><span style="color: #CE9178">&quot;Wiki List&quot;</span><span style="color: #D4D4D4">);</span></span>
<span class="line"><span style="color: #9CDCFE">site</span><span style="color: #D4D4D4">.</span><span style="color: #DCDCAA">Load</span><span style="color: #D4D4D4">(</span><span style="color: #9CDCFE">wikiList</span><span style="color: #D4D4D4">);</span></span>
<span class="line"></span>
<span class="line"><span style="color: #9CDCFE">site</span><span style="color: #D4D4D4">.</span><span style="color: #DCDCAA">ExecuteQuery</span><span style="color: #D4D4D4">();</span></span></code></pre></div>



<p class="wp-block-paragraph">2. Run a query for list items. Including fields in the VIewFields tag ensures that they are returned from the Caml Query. If you would like to filter your results before they come back, add parameters to the Wheresection.</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e"><span style="background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e">C#</span></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>CamlQuery camlQuery = new CamlQuery();

camlQuery.ViewXml = @"
&lt;View>
    &lt;Query>
        &lt;Where>
        &lt;/Where>
    &lt;/Query>
    &lt;ViewFields>
        &lt;FieldRef Name='WikiField' />
    &lt;/ViewFields>
&lt;/View>";

ListItemCollection items = wikiList.GetItems(camlQuery);

site.Load(items);
site.ExecuteQuery();</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #4EC9B0">CamlQuery</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">camlQuery</span><span style="color: #D4D4D4"> = </span><span style="color: #569CD6">new</span><span style="color: #D4D4D4"> </span><span style="color: #4EC9B0">CamlQuery</span><span style="color: #D4D4D4">();</span></span>
<span class="line"></span>
<span class="line"><span style="color: #9CDCFE">camlQuery</span><span style="color: #D4D4D4">.</span><span style="color: #9CDCFE">ViewXml</span><span style="color: #D4D4D4"> = </span><span style="color: #CE9178">@&quot;</span></span>
<span class="line"><span style="color: #CE9178">&lt;View&gt;</span></span>
<span class="line"><span style="color: #CE9178">    &lt;Query&gt;</span></span>
<span class="line"><span style="color: #CE9178">        &lt;Where&gt;</span></span>
<span class="line"><span style="color: #CE9178">        &lt;/Where&gt;</span></span>
<span class="line"><span style="color: #CE9178">    &lt;/Query&gt;</span></span>
<span class="line"><span style="color: #CE9178">    &lt;ViewFields&gt;</span></span>
<span class="line"><span style="color: #CE9178">        &lt;FieldRef Name=&apos;WikiField&apos; /&gt;</span></span>
<span class="line"><span style="color: #CE9178">    &lt;/ViewFields&gt;</span></span>
<span class="line"><span style="color: #CE9178">&lt;/View&gt;&quot;</span><span style="color: #D4D4D4">;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #4EC9B0">ListItemCollection</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">items</span><span style="color: #D4D4D4"> = </span><span style="color: #9CDCFE">wikiList</span><span style="color: #D4D4D4">.</span><span style="color: #DCDCAA">GetItems</span><span style="color: #D4D4D4">(</span><span style="color: #9CDCFE">camlQuery</span><span style="color: #D4D4D4">);</span></span>
<span class="line"></span>
<span class="line"><span style="color: #9CDCFE">site</span><span style="color: #D4D4D4">.</span><span style="color: #DCDCAA">Load</span><span style="color: #D4D4D4">(</span><span style="color: #9CDCFE">items</span><span style="color: #D4D4D4">);</span></span>
<span class="line"><span style="color: #9CDCFE">site</span><span style="color: #D4D4D4">.</span><span style="color: #DCDCAA">ExecuteQuery</span><span style="color: #D4D4D4">();</span></span></code></pre></div>



<p class="wp-block-paragraph">3. Iterate through each wiki page and look for the text that will be replaced. If the text is found, replace it with the new text. Update the item and save the wiki page.</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e"><span style="background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e">C#</span></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>foreach (ListItem item in items)
            {
                if (item&#91;"WikiField"&#93; != null)
                {
                    String wikiContent = item&#91;"WikiField"&#93;.ToString();
                    if (wikiContent.Contains("href=\"http://contoso.com/sites/OldSite/"))
                    {
                        wikiContent = wikiContent.Replace(
                            "href=\"http://contoso.com/sites/OldSite/",
                            "href=\"http://contoso.com/sites/NewSite/");

                        item&#91;"WikiField"&#93; = wikiContent;
                        item.Update();
                        site.ExecuteQuery();

                    }
                }
            }</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #C586C0">foreach</span><span style="color: #D4D4D4"> (</span><span style="color: #4EC9B0">ListItem</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">item</span><span style="color: #D4D4D4"> </span><span style="color: #C586C0">in</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">items</span><span style="color: #D4D4D4">)</span></span>
<span class="line"><span style="color: #D4D4D4">            {</span></span>
<span class="line"><span style="color: #D4D4D4">                </span><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> (</span><span style="color: #9CDCFE">item</span><span style="color: #D4D4D4">&#91;</span><span style="color: #CE9178">&quot;WikiField&quot;</span><span style="color: #D4D4D4">&#93; != </span><span style="color: #569CD6">null</span><span style="color: #D4D4D4">)</span></span>
<span class="line"><span style="color: #D4D4D4">                {</span></span>
<span class="line"><span style="color: #D4D4D4">                    </span><span style="color: #4EC9B0">String</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">wikiContent</span><span style="color: #D4D4D4"> = </span><span style="color: #9CDCFE">item</span><span style="color: #D4D4D4">&#91;</span><span style="color: #CE9178">&quot;WikiField&quot;</span><span style="color: #D4D4D4">&#93;.</span><span style="color: #DCDCAA">ToString</span><span style="color: #D4D4D4">();</span></span>
<span class="line"><span style="color: #D4D4D4">                    </span><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> (</span><span style="color: #9CDCFE">wikiContent</span><span style="color: #D4D4D4">.</span><span style="color: #DCDCAA">Contains</span><span style="color: #D4D4D4">(</span><span style="color: #CE9178">&quot;href=</span><span style="color: #D7BA7D">\&quot;</span><span style="color: #CE9178">http://contoso.com/sites/OldSite/&quot;</span><span style="color: #D4D4D4">))</span></span>
<span class="line"><span style="color: #D4D4D4">                    {</span></span>
<span class="line"><span style="color: #D4D4D4">                        </span><span style="color: #9CDCFE">wikiContent</span><span style="color: #D4D4D4"> = </span><span style="color: #9CDCFE">wikiContent</span><span style="color: #D4D4D4">.</span><span style="color: #DCDCAA">Replace</span><span style="color: #D4D4D4">(</span></span>
<span class="line"><span style="color: #D4D4D4">                            </span><span style="color: #CE9178">&quot;href=</span><span style="color: #D7BA7D">\&quot;</span><span style="color: #CE9178">http://contoso.com/sites/OldSite/&quot;</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">                            </span><span style="color: #CE9178">&quot;href=</span><span style="color: #D7BA7D">\&quot;</span><span style="color: #CE9178">http://contoso.com/sites/NewSite/&quot;</span><span style="color: #D4D4D4">);</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">                        </span><span style="color: #9CDCFE">item</span><span style="color: #D4D4D4">&#91;</span><span style="color: #CE9178">&quot;WikiField&quot;</span><span style="color: #D4D4D4">&#93; = </span><span style="color: #9CDCFE">wikiContent</span><span style="color: #D4D4D4">;</span></span>
<span class="line"><span style="color: #D4D4D4">                        </span><span style="color: #9CDCFE">item</span><span style="color: #D4D4D4">.</span><span style="color: #DCDCAA">Update</span><span style="color: #D4D4D4">();</span></span>
<span class="line"><span style="color: #D4D4D4">                        </span><span style="color: #9CDCFE">site</span><span style="color: #D4D4D4">.</span><span style="color: #DCDCAA">ExecuteQuery</span><span style="color: #D4D4D4">();</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">                    }</span></span>
<span class="line"><span style="color: #D4D4D4">                }</span></span>
<span class="line"><span style="color: #D4D4D4">            }</span></span></code></pre></div>



<p class="wp-block-paragraph">That’s it! After running this program, every wiki page in the list will have an updated URL, saving you the time and effort of manually replacing each one.</p>



<p class="wp-block-paragraph"><strong><a href="https://static.dmcinfo.com/services/digital-workplace-solutions/microsoft-consulting-services/sharepoint" target="_blank">Learn More About DMC&#8217;s SharePoint Consulting Services.</a></strong></p>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://static.dmcinfo.com/blog/24203/how-to-batch-update-text-on-a-sharepoint-wiki/">How To Batch Update Text on a SharePoint Wiki</a> appeared first on <a href="https://static.dmcinfo.com/">DMC, Inc.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
