Hot answers tagged

8

Check out this excellent article where the performance of both is tested: Deep Dive – REST and CSOM Comparison I tested a series of pretty common operations in both REST and CSOM: Creating Lists (10) Creating List Items (100 per List, for a total of 1000) Reading List Items by ID Querying for List Items (retrieving 50 per List) Deleting List ...


4

Make sure SharePoint server have the WorkFlow Manager installed and configured. WorkFlow Manager also requires ServiceBus to be installed Then run the following commands in the SharePoint Management Shell: Register-SPWorkflowService -SPSite 'http://localhost:24000' -WorkflowHostUri 'https://localhost:12290' -AllowOAuthHttp -Force $WmsSap = Get-...


4

You cannot change the parent content type of a content type: The Parent property is read-only. The content type ID is prefixed with the parent content type's ID. See explanation here which is for SP2010 but it works the same for SP2013. You have to basically re-create the content types using the correct parent from the start.


3

You can do it in SharePoint 2010 by querying following end-point. /_vti_bin/ListData.svc/UserInformationList Add your required properties in $select operator. /_vti_bin/ListData.svc/UserInformationList?$select=Id,Name,.. Example using jQuery function getUsers() { $.ajax({ url: "/_vti_bin/ListData.svc/UserInformationList", type: "...


2

Yes it is possible through SPD 2013 workflow along with REST Webservice call. Follow the steps below, Create a list workflow for the list where Column1 is present Configure the workflow to get triggered on Item Adding and Item Edit Edit the workflow Build a dictionary with below parameters and set output variable as Request Header accept : application/...


2

Change your CreateNewRow function with below code. public partial class OrganizationChartUserControl : UserControl { //Get the List name to fetch the data from string listName = "OrgChart_Demo"; int iRowCounter = 0; string sAllNewRows = string.Empty; protected void Page_Load(object sender, EventArgs e) { //Fetch the data (...


2

Nice question, "Which one is faster CSOM or JSOM for CRUD operation?". But the fact to determine which API to be used for performing a certain operation in SharePoint depends on various factors like type of application, operating system, what kind of operation is to be performed in which system and so on. Based on the MSDN reference, I would say, go with ...


2

If you want to display a content to the user only with 'Full Control' permission level use the below snippet <Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="FullMask"> <div id="s4-ribbonrow" > </div> </Sharepoint:SPSecurityTrimmedControl> Different base permissions EmptyMask : Has no permissions on the Web ...


2

Design Manager (feature which enables HTML to masterpage conversion) is not available in Team Sites as it requires Sharepoint Server Publishing feature to be enabled. If you want to enable it: Open Site Settings, Click on "Site collection features" under Site Collection Administration. This will open Site Collection Features page. Search for "SharePoint ...


1

Please see the below example, you can use the "and" operator, to meet multiple conditions, http://{server_name}/_vti_bin/listdata.svc/UserInformationList?$filter=((ContentType eq 'Person') and (substringof(Name,'{query}')))&$orderby=Name Also, shared by Atish, on the following page, it shows you multiple other operators, you can use in your ...


1

My first instinct whenever I see that type of error is that you don't have the site set as trusted. Adding the site to the 'Intranet' zone will allow for automatic logins, and usually handle client applications like Dashboard designer also.


1

I had also same problem. Open your site in Internet Explorer and then click on "Dashboard Designer". It will open. NOTE: Try on machine where you SharePoint server is installed.


1

In your database, one of your accounts (SPInstall, SPSetup, SPService...) is holding the dbo user, with the default schema dbo. Like the following table: Database User Default Schema ======== ==== ============== Sync_DB dbo dbo Now, there can only be one account holding the dbo user in SQL Server, and you need to find out which user that ...


1

If you do not wanna go with Content Search Web part you may try Content Query Web part, this would help you achieve your required functionality. Displaying Custom Fields in a SharePoint 2013 Content Query Web Part Customizing the Content Query Web Part and Item Style How to Display Custom Fields in Content Query WebPart in Sharepoint 2013 Also there are ...


1

if you customized using save as template method then you cant update the existing sites to get new changes. This will only work with the new site collection created on that template. But if you develop it using the solution, then you have to update the existing solution to reflect the changes to existing sites. https://social.technet.microsoft.com/Forums/...


1

A site template is a package that contains a set of differences from a base site definition. Site templates let you use a browser to easily create a template site from an existing SharePoint site. The site, including pages, lists, libraries, and contents, is archived into a single .stp file. Site Template Pros. Site templates enable administrators to create ...


1

When you are working in visual webpart, you can add css & javascript in following ways. Option 1: Open your ascx file in the webpart. Add <style type="text/css"> </style> tag Add your css properties into this style tag. Use the classes in you html block. Option 2: Create a text file. paste entire css code in it. Do not add <style>...


1

If you want to apply the CSS to your Google Organization Chart webpart than you can just apply it from the ASPX page like (Usual way) below. <style type="text\css"> .google-visualization-orgchart-node { text-align: center; vertical-align: middle; width: 139px !important; font-family: arial,helvetica; font-size: 12px !important; cursor: default; border:...


1

Because Microsoft did not introduce CompatibilityLevel 16, yet. Therefore, the currently highest CompatibilityLevel is 15.


1

My guess would be that the Assigned to field won't accept the user group's ID and would need another property. So I would suggest this: After the GetDynamicValueProperties activity, add a LookupSPGroup activity In the Properties of this activity in the GroupPrincipalId property add your OwnerId variable. Set the result property to any variable of your ...


1

We need to run this script in SharePoint Management Shell $WmsSap = Get-SPWorkflowServiceApplicationProxy $WmsSap.RegisterWorkflowLifecycleManagementEnvironment() Reffered from this link and it worked for me.


1

Try something like this. You will need to add this JavaScript and a reference to jQuery on your page. It uses jQuery deferred/promises to wait for three REST calls to return successfully before showing the list counts on the page. Note I haven't tested this so you may need to debug. var listCounts = []; $.when( RestGet("listname1", "yourErrorDiv", "...


1

Use Metalogix or Content Matrix tool for the migration..its free for the 15 day. we have done lots of migration POC using this with these tools.



Only top voted, non community-wiki answers of a minimum length are eligible