SPWeb object has 2 different properties for work with groups. There are Grops and SiteGroups. Inspite of the fact that they look very similar, they are different.
SPWeb object has 2 different properties for work with groups. There are Grops and SiteGroups. Inspite of the fact that they look very similar, they are different.
Information about files in document libraries is strored in the table "AllDocs" of Site's content database. Of course, Microsoft doesn't allow to make queries to SharePoint databases directly. But I can't but agree with inserts and updates are not allowed, but select query in the worst case will make just some locks in database. So I guess that in some cases it's much better to execute select query than powershell script.
The code below is my solution in creating a custom SharePoint List form. The list has a lookup column, the column is filled with Name (Fullnames) of employees. The task is to mark option with user Name as selected. Variable 'user' is equal to Name of employee.
Once I had to add about 3 thousand users to SharePoint group. Usually when I have to add about 100 users, I use Excel function 'CONCATENATE' to add user login and ";" separator to generate a list of users. And then I manually enter them. But 3 thousand users – it's too much for manual.
I have a table in SharePoint list view which ID contains curly brackets '{9C48B48F-AA4E-4B34-8CE6-37E4C0EBAD8B}-{9B1EEE61-5E3C-4CA1-96CD-DB15199EDC83}'. I tried to select the table using jQuery but on the brackets I've got a Javascript error about a sequence of characters.
You can initialize and fill multidimension hashes (arrays) in powershell this way:
This is an manual how to work with arrays in PowerShell - how to create them, fill and read.
You can initialize array this way:
My code in C# console application used to download an image from web service and store it in SharePoint library. But some why the code always returned an error "(401) Unauthorized". The requested URL has been successfully opened in browser on the same machine.
If you want to set the same action for several elements, you can write IDs of elements separated by comma. This way:
You can set multiple attributes for HTML element with jQuery.