Monthly archives: November, 2017

Powershell script to copy a value from one field to another

When I try to run the following powershell script: Add-PSSnapin Microsoft.Sharepoint.Powershell [System.reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”) $site = new-object Microsoft.SharePoint.SPSite(“http://servername/sites/contoso”) $web = Get-SPWeb -Identity servername/sites/contoso $lista =$web.Lists[“somelist”] $items = $lista.items foreach ($item in $items) { $user = $item[“A”] write-host $useracc $useracc = $web.EnsureUser( $user); $item[“B”] = $useracc write-host $useracc $item.update() } $lista.update() I get the following error: The source …

Excel Web App dropdown control issues

Happy New Year everyone, I am having some strange issues with our on-prem SharePoint 2013 environment. When a user opens an excel document in Excel Web App in IE, the dropdown controls (edit workbook, share, data) do not work properly (when you click them they do not respond). I am able to replicate the issue …

What happens if I check “Require Content Approval” as “Yes” and then I create a “Publishing Approval” workflow on it?

I checked the option “Require Content approval ” in list setting and then I created a “Publishing Approval ” workflow for adding a item in list . But I was not able to see the added item in approver’s list until the creator approves the item. ================= ================= 1 Answer 1 ================= When you add …

How to check if title contains character

how could i check for all titles that contains 3 characters that the user types in var query = $(“#subSiteTitle”).val(); The value that the user types in must be length >2 So if the user types for ex Sub, i want to filter items that first contains S and then u and then B My …

Why doesn’t appear second user control in Sharepoint 2013?

I designed user control for my project. I added this user control in page twice. I can see first user control in page but can’t see second user control. Why? Thank for your help. ================= ================= 1 Answer 1 ================= Please add “?Contents=1” at the end of page URL. and verify if second control exists …

Create keyword link

I’m newbie in SharePoint development. I would like to ask, is it possible to create a link on SharePoint that will shows all document library and list based on the keyword just like label widget in blog. A document can has multiple keywords. For example, a document name BMW has multiple keywords such as Transportation …

User Profile Service Application Issue

I have a farm that consists of 2 WFE and 2 APP servers. I have the User Profile Service running on both APP servers and User Profile Sync running on APP01. For some reason when I access the User Profile Service Application on APP01 I get a “Requested registry access is not allowed”. When I …

Restore content db sp 2010

I am new to SharePoint, I recently added a content db to a web app. The db was a backup from another server. On adding the content db, a site was automatically added, although i still had to deploy the solution. I am trying to understand how add a content db, automatically added a site. …