A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

0

In general, this won't be an issue but you may run into support problems if you open a case with Microsoft if you cannot demonstrate that level of response time. The general recommendation is to not stretch farms, instead implementing a DR farm (though 10KM is a very short distance where a major geological event or similar would likely impact both locations)...


0

SharePoint provisions field definitions for fields specified in the SecondaryFieldWssNames attribute as read-only fields (ReadOnly="TRUE"), and does not add any of the ShowIn...Form attributes to the field schema XML. This effectively makes the secondary fields invisible in the list forms. One can use PowerShell to add the necessary ShowIn...Form ...


0

Try following steps: Create a SharePoint Designer workflow. Add IF condition in your workflow. Check if your column (CAB Advisory to Release Manager) is empty or is not empty. If the field is not empty that means the decision has been made and then you can send an Email to your targeted users. Example: Considering my column name is "Approval Status".


0

We can achieve this with the help of itext sharp dll and http handler configuration in the web.config file. Long back I had implemented this using this approach. You can refer the below sample code: private string AddWaterMark(string watermarkText, SPFile file, SPFolder documentLibrayName)         {             string NewURL = string.Empty;                ...


0

if your links need to be displayed on all pages you can add them to the master page


0

all that was mentioned by Mike are valid tips and should be deferentially checked and considered other thing I would check which may have a huge performance impact is the way You query items from SharePoint. Using SPQuery and GetItems() method is not the best way. First of all it does not provide any caching and returns SPListItem objects that have all ...


1

Assuming that your current workflow is set to trigger on item update, you can change your trigger so that the workflow will only run on item creation. This way the workflow will only fire once, when the item is created, instead of every time the item is edited.


1

Several things to try: Instead of foreach loops, switch them out for 'for' loops, they have been proven to be faster: https://www.c-sharpcorner.com/article/for-vs-foreach-in-c-sharp/ I'd look into concatenation of string more efficiently: https://stackoverflow.com/questions/21078/most-efficient-way-to-concatenate-strings I'd replace all instances of ...


2

You need update folder metadata for the root folders after run the MoveTo method, modify the code as below. if (currentItem.ContentType.Name.ToLower().Contains("project")) { Console.WriteLine(currentItem["ID"]); SPFolder folder = omsWeb.GetFolder(omsWeb.ServerRelativeUrl + "/Shared Documents/"+currentItem["ID"].ToString()); var modified = folder....


0

If you use SharePoint Designer to set the single line of text column to store lookup column email addresses, you don't need to set the text column. In SharePoint Designer workflow, we can return the lookup field as "Lookup Values, Comma Delimited" (works in 2010 workflow and 2013 workflow). You can send email using this look up column value.


0

It is possible to move documents from one document library to another library using server object model. Use the method MoveToof SPFile to move documents from source to destination. Refer this http://msdn.microsoft.com/en-us/library/ms468280.aspx. Preserving the metadata Make sure that source and destination libraries have same set of fields/content types. ...


1

There is no direct way to navigation to edit a response and edit it. As a workaround, you can create a SharePoint Designer workflow and send an mail with the edit link to the submitter. Then the submitter could edit the response directly via the link. Steps for your reference: 1. Edit a response and copy the address link. The link should be like: https:...


0

The special characters are nothing but pound symbol and ID of that user in that site. That's SharePoint exports the user field to excel. It's by design and we cannot change it. I understand that you want to remove the number and ;# in excel file. You can use formulas to achieve this. =SUBSTITUTE(H2, ";#", " ") Change H2 to the column which contains the ...


0

You can use the PowerShell script below: $sites = Get-SPWebApplication http://intranet.contoso.com | Get-SPSite -limit all "Site Collection`t Group`t User Name`t User Login" | out-file groupmembersreport.csv foreach($site in $sites) { $sitegroup = $site.RootWeb.SiteGroups |?{$_.Name -EQ "Power Users"} foreach($user in $sitegroup.Users) { ...


0

You can achieve it by using PowerShell script. For example(original article): Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue Function GetUserAccessReport($WebAppURL, $SearchUser, [Switch]$verbos){ [Integer]$writeHostPrefixCount = 0 [String]$writeHostPrefixType = " " #Output Report location $OutputReport = ".\...


0

Please check the AppPool account for that web application configured Properly on SharePoint server IIS and SQL server


0

SharePoint 2013 Search: Missing Managed Property Value for your reference: https://blogs.perficient.com/2016/02/29/sharepoint-2013-search-missing-managed-property-value/


0

Try getting the value of WorkflowSubscritpionEventType enum in your code. According to below documentation, It will return 1 for ItemAdded and 2 for ItemUpdated trigger. public enum WorkflowSubscritpionEventType { None = 0, ItemAdded = 1, ItemUpdated = 2, ItemDeleted = 4 } Source: GitHub - WorkflowProvisionService.cs.


1

I was able to get this to work using the methods described by wjervis and Robert recommended, but only when the bool field was the first filter term like below. Another thing to note is that the bool field can be null although the odata readout may show a true or false for the field. /_api/ProjectData/Resources()?$filter=checkBool eq true & ...


0

Make sure that a FULL crawl has been run after you map the managed property. A full crawl is a requirement for the property to work as intended.


1

This is not possible from a People Picker perspective (I filed a DCR on this and it was declined by the product group years ago). You'll have to find another way to deal with this, such as use a different identity storage (e.g. AD LDS) for specific users or move the users into the same OU/sub OU structure.


0

Make sure that the column's Managed property is querable so you can search using ColumnName:value Check This


0

In case, if the current user does not have appropriate rights then also it won't allow you to update. Kindly keep your code enclosed within RunWithElevatedPrivileges which uses System User Account SPSecurity.RunWithElevatedPrivileges(delegate(){ //your code });


0

As it turns out, the issue was caused by the user having multiple/corrupted Office profiles. We removed the profiles and created a new one, and the issue is resolved.


0

Using the REST API, you would have to perform two separate queries, and use your client-side code to concatenate the two result sets together. The RowLimit parameter will restrict the number of results you get back from the search api, but it is separate/outside of your query, so it will limit the whole result set, not just one aspect of your query. You can ...


0

Open the SharePoint Workflow form that you want to hide the REMOVE and ADD RELATED ITEMS from. Then go to the browser's developer tool/page inspector (depending on which browser you are using maybe different) and inspect the two items to find their ID. Once you have the IDs go back to the SharePoint Workflow form that you want to hide the two items. Click ...


-1

From home of the SharePoint: On the left, click on Security. On the right, click on Specify authentication providers. Click on Default. There you will find it then change the authentication from NTLM to kerberos and vise versa.


0

<script> var listName = "AJAX"; var itemType = GetItemTypeForListName(listName); function CreateListItem( ) { var title = document.getElementById('title').value; var firstname = document.getElementById('firstname').value; var lastname = document.getElementById('lastname').value; var item = [{ ...


0

If your workflow is very huge, I suggest you put your actions into different steps and type a name for each step. When debugging your workflow, debug it based on different steps, like the below: In SharePoint 2013, to create items automatically, generally, we can use Event Receiver or Scheduled PowerShell cmdlet or SharePoint workflow.If you use Event ...


0

According to the below explanation, you need to call ExecuteQuery() to take effect of Update() call. To set most list item properties, you can use a column indexer to make an assignment, and call the Update() method so that changes will take effect when you call ExecuteQuery() or ExecuteQueryAsync(ClientRequestSucceededEventHandler, ...


1

you have to execute your query with clientContext.ExecuteQuery() ListItem oListItem = oList.AddItem(itemCreateInfo); oListItem["Title"] = "My New Item!"; oListItem.Update(); clientContext.ExecuteQuery();


0

Have you limited search scope in your result source? On your search results page, select to edit the Search Results Web Part->select Change query->select TEST tab->In the {searchboxquery} field enter a query->Test query-> Verify how much search result returned:


2

Instead of going with the coding approach, we can export the particular view items to excel with out of the box option. Export the SharePoint list items shown in the current view to Excel to work with the data in a spreadsheet. 1.Select Export to Excel Lists from the command bar of the SharePoint list. The classic SharePoint experience shows a ribbon ...


0

SharePoint does not natively provide rollup totals for calculated columns, but you do have some options on-prem. You can get the total number of days between the two dates for each row with the following calculated column formula: =DATEDIF(Modified,Created,"d") To emulate a rollup value, you will need to do some JavaScript trickery. This article ...


0

If you want to just one email to be sent, You need to add conditions to limit whether to send e-mails.


1

You can just edit page without Content Editor Web part. So you can add table to the page (without Content Editor Web part) then add web parts to each cell.


0

In SharePoint REST APIs we need to use the internal name of the columns. And the internal name of your column is OData__x0032_020. I can see an error you made in internal name of column in $select query. Try using it like below: https://server/sites/Estimation/_api/lists/getbytitle('list')/items?$select=ID,OData__x0032_020&$filter=Title eq `CQ`


0

Based on your JavaScript code, I test in my environment, the column validate works as expected. You can check if the steps are same with you, if not, please tell us and we can try to reproduce: Firstly, create four lists as below: Then I insert the JavaScript code in the New Item form page and check the result as below:


1

You can edit the page in Advanced mode in SharePoint Designer, find the cell of the table, insert a Data View web part and select the relevant list.


0

The first letter of the sharepoint list when passed into item should be capital letter. In this case the 'C' in the name is capital. var item = { "__metadata": { "type": "SP.Data.**C**aseListItem" }, "Title": "updated title" };


1

You can create a SharePoint Designer workflow to send the alert email like the below: Then create a Information Management Policy-retention rule to trigger the workflow when [Due Date]+ 0 days: It no needs to run the action everyday.


Top 50 recent answers are included