SharePoint 2010 Setting Max Versions on Existing List

I’ve got a SP2010 list that’s had no cap limit set to the versions. I want to reduce the number of versions kept to 10 so I set the “Keep the following number of versions” option to 10. It looks like SP doesn’t go ahead and remove all the extra versions on the list items. For example, a list item has 24 versions – still has 24 versions after making this change.

What’s the best way to clean up a list and remove all versions over the past 10 versions?

Trying to send email to all people in a list in a SharePoint workflow 2010

I am trying to send a email to each person in a SharePoint list in a workflow. The list includes a column for the email. It doesn’t matter if I send one email to all the people in the list or a email to each member, but I need everyone to receive a email. The site is using 2010 workflows. Is there a way to do this in designer 2010?

SharePoint 2010 to SharePoint 2016 Upgrade or Migrate

I am in the process of upgrading SharePoint 2010 to SharePoint 2016. What I’ve done so far is attach the SharePoint 2010 db into Sharepoint 2013 environment, completed the mount and upgrade. However, it looks horrible in SharePoint 2013. The company template, web parts are broken, etc. What are the benefits of upgrading vs. migrating? Is it better to redesign/build the site in SharePoint 2016 and use a third party tool to migrate the data? I haven’t looked at the workflows yet. Can Workflows and MySites be migrated or is that an upgrade?

Any recommendations, tips, best practices?

Thank you.

SharePoint 2010 show subsites dropdown menu link broken

enter image description here

I have a main site (Planning) that has the “Show subsites” option enabled in the navigation settings. All the links work correctly except for one of the subsites comes up with a “website cannot be found”, “http 404”. However, if I click on the parent site and select all site content, the link under sites and workspaces works just fine. I do notice the link on the drop down menu has /sitepages/home.aspx after the subsite name, versus the link under sites and workspaces ends with just the subsite name. Is there a way I can manually edit the dropdown menu link to match the sites and workspaces link? I’ve been through all the settings and still can’t find anything that will allow this. Thank you in advance!

Custom endpoint failure after 2010 to 2016 migration

I’ve upgraded sharepoint 2010 app to 2016, it has 3 custom endpoints, and one of them is this one:

namespace AuthenticationWebService {     [BasicHttpBindingServiceMetadataExchangeEndpoint]     [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]     [ServiceContract]     public class AuthenticationService     {         [OperationContract]         [WebInvoke(Method = "POST",          BodyStyle = WebMessageBodyStyle.Wrapped,          ResponseFormat = WebMessageFormat.Json)]         public bool AuthenticateUser(string userName, string password)         {             return IsValidCredentials(userName, password);         }          internal static bool IsValidCredentials(string userName, string password)         {             bool isValid = false;              if (userName.IndexOf(@"\") > 0)             {                 userName = userName.Substring(userName.IndexOf(@"\") + 1);             }              string domain = SPContext.Current.Site.RootWeb.AllProperties["Authentication_Domain"].ToString();              using (PrincipalContext pc = new PrincipalContext(ContextType.Domain, domain))             {                 isValid = pc.ValidateCredentials(userName, password);             }              return isValid;         }     } } 

Simple really, just authenticates user in a few forms in order to confirm given action. This code was written for 2010 Sharepoint, and migrated to 2016 via visual studio upgrade.

Problem is, I can’t seem to properly call this endpoint in 2016, the same requests that work in 2010 gives me “400 bad request” in 2016. Any ideas?

Web Service Call InfoPath 2010

I am literally fighting infopath right now. I am trying to populate MySites information into infopath via web call.

Here are my steps:

Data (Get External Data) > From Web Service > SOAP Web Service > Entered the location of the SOAP Web service > Selected GetuserprofilebyName > Home > Calculated Value (Controls) > fx > Insert Field or Group > Change to new data source > value > filter value > name = FirstName and ok.

When I hit Preview thats when it all goes wrong. I get error messages from Infopath saying I “Some external data was not retrieved. The form will load without the requested data” Show Detials >> “The SOAP response indicates that an error occurred on the srver. Operation Failure —> Attempted to perform an unauthorized operation”

Then in the SharePoint list I get the error:

An error occurred while trying to connect to a Web service.

An entry has been added to the Windows event log of the server.

Log ID:5566

Correlation ID:04d6d068-dc49-41c7-8404-4400d9a20fcb

InfoPath design checker says Unsupported HTML, Information will not be shown to user…arg!

How to update a SharePoint 2010 list via an InfoPath 2010 client form using code?

I tried to follow in Sharepoint Server 2010 and Infopath 2010 the article:

  • How to update a SharePoint list via an InfoPath browser form using the SharePoint Object Model

which is for Sharepoint/Infopath 2007 adjusting it for 2010

Upon completing step 7:

  • “7. On the Button Properties dialog box, select Update Form from the Action drop-down, and click OK

I observe the warning:

  • The button control will only be visible when the form is edited in a Web browser

enter image description here

Pressing F5 (or Preview) button (which, as I believe, corresponds to running a form in “Infopath Filler 2010”?) confirms it and shows the form without this button.

How should I interpret the msdn’s comparative table of differences between Infopath 2010 List and Form Library templates from which one can understand that:

  • custom code support is available only for Infopath 2010 Form Library Template but not for List Template while I have a custom code in List template?

Should I understand that it is impossible to update a list form from client form through SharePoint Object Model?

How one should proceed in order to update a Sharepoint 2010 list from an Infopath 2010 client form (i.e. in Infopath Filler 2010 or other clients like Outlook) through code?

SharePoint 2010 Approval Work Flow Form – Link to Attachment

I have created a custom approval workflow that works as expected. However I am trying to add a link on the approval form to any attachments that were assigned during the creation of the list item.

The steps that I have taken so far: Added a workflow variable Set the workflow variable to the value of the current item attachments Added a Task Form Field of type string Set the Task Form Field value to the Value of the Work Flow variable in the Before Task is Assigned Step

There are no errors within the workflow, but when the workflow is initiated (automatic or manual), no task notifications are sent. If I removed the Set Task Form Field value, the workflow will start sending notifications again. I’m assuming it has something to do with how I am trying to build the link to the attachment within the form.