Questions tagged [properties]

In SharePoint properties are name/value pair assigned to Site Collections, Sites, Webs, Lists, Libraries, Pages and Web Parts. Properties can be changed programatically or by using PowerShell.

Filter by
Sorted by
Tagged with
11
votes
1answer
1k views

Custom properties for app part

I am developing a provider hosted SharePoint app part. I have defined some custom properties for the app part. I am testing the app in a SharePoint online tenant. On a developer site when I edit the ...
10
votes
6answers
39k views

How to use relative URL for image in Master Page?

I am using a logo in my Master Page which will be displayed on all pages. How do I use its relative URL? Currently it is written as: <img src="/sites/Style Library/Images/logo.jpg"> But it is ...
10
votes
2answers
3k views

How do I set a list to not be valid for search through the object model?

In WSS 3.0, there's an option under "Advanced Settings" for a List as follows: Search Specify whether this list should be visible in search results. Users who do not have permission to see ...
7
votes
4answers
6k views

SPO Retrieve HasUniqueRoleAssignements property using Powershell

I am trying to retrieve HasUniqueRoleAssignements property for multiple SharePoint Online lists using Powershell. I can do it for each one in SharePoint on-premises: $ctx.Load($list....
7
votes
1answer
874 views

SPService, multiple farm jobs, persisted property updates (SPPersistedObject locking?)

I have an SPService class. MySPService : SPService, IBackupRestore, IDiagnosticManager { [Persisted] private string propertyUpdatedByJobsOnAllServers; . . . } I also have a Job that runs ...
6
votes
2answers
3k views

Do I need to reset SPWeb.AllowUnsafeUpdates after use?

Do I need to reset the SPWeb.AllowUnsafeUpdates property after use? Seems not, but all over the web there is code like: bool allowUnsafeOrig = web.AllowUnsafeUpdates; web.AllowUnsafeUpdates = true; ...
6
votes
1answer
2k views

Update vti_author in SPDocumentLibrary item using PowerShell?

I want to update the property vti_author in an item in a SPDocumentLibrary, but it doesn't work. The items original vti_author is the same even after running this script, why? $spSite = Get-SPSite ...
5
votes
3answers
3k views

SharePoint Property Bags

Has any one worked with SharePoint Property Bags ? I found few helpful articles but that helped me only partially. I want to write a code that writes and retrieves information from Property Bag. I ...
5
votes
1answer
1k views

Change / rearrange / move user properties - Powershell

Is there a way with PowerShell to rearrange / change the order of user properties? If I create a custom user property and make it visible on the mysite I have to click like 100 times to get in to the "...
5
votes
4answers
14k views

Users unable to edit document properties

I have a document library on SP 2010 in which all users, including myself as the admin/owner, are unable to update properties of certain documents. Documents were moved to this folder from another ...
5
votes
2answers
342 views

How to dynamically generate Business Connectivity Services

We are trying to deploy a Business Connectivity Services(BCS) Model solution where the properties in the model depend on the structure of the data exposed by a web service. Ideally the BCS Model ...
4
votes
1answer
2k views

Is accessing AllProperties efficient?

I'm currently storing a few values in the SPWeb.AllProperties hashtable. But I'm thinking of adding even more data into it. Before I start using it more and more though, I wondered if using ...
4
votes
3answers
1k views

Crawled Properties missing in Powershell but show in Central Admin

I have a set of crawled properties I want to map to managed properties using powershell. But for some strange reason they can't be found when using PS, but they show up in the UI and I can make them ...
4
votes
1answer
1k views

Required permissions to read from a farm's property bag?

Which permissions are required to read from a farm's property bag? Background: The property bag needs to be accessed read-only from a .NET application which runs under a specific user account on any ...
4
votes
1answer
1k views

SharePoint 2013: Client Object Model NavigationNode properties

Can we set NavigationNode objects properties through Client Object Model [C#]? Below is the server side code of what I want to achieve through Client Object Model: var newNode = new SPNavigationNode(...
4
votes
3answers
1k views

Publishing SPWeb.Properties missing…why, how?

Has anyone ever seen a Publishing site "lose" the properties relating to the publishing functionality. Properties like PagesListId, PublishingFeatureActivated etc which actually control whether the ...
3
votes
4answers
939 views

SharePoint List / Library property bag

I'm working with sharepoint 2007 and i have a question, does a sharepoint library / list has something like property bag, where i could store some properties for the list? Like a SPWeb object. Or ...
3
votes
4answers
8k views

When does custom properties of a web part get saved?

I have a web part that contains a number of custom properties. Only one of those customer properties shall not be set by the user. This property is an int, that represent a unique identifier. I want ...
3
votes
1answer
2k views

Maximum length of SPSite Name and Description property values

Is there any reference to the maximum size for the Name and Description properties of a site collection?
3
votes
1answer
2k views

Access Denied when Adding to SPFarm Property Bag

I am trying to add a new property to the SPFarm property bag but am getting an access denied security exception. As you can see in the code below it is begin ran with elevated privileges, so I don't ...
3
votes
2answers
659 views

How to read the xml file from 14 hive

I have a custom timer job by which I need to create custom properties using an xml file (which has all the custom properties). As for the xml file, I'm thinking to create a module for it. And then ...
3
votes
1answer
63 views

How can I view the creation date (and creator) of a child site (not an admin person)

Is there any way an end user (with contribute or full access) can view the properties of A CHILD SITE...as in when it was created and by whom?
3
votes
3answers
8k views

Changing the Title of a Web Part Page

I have a page that I am unable to change the page title from the file name of the URL. I'd like to be able to change the title of the page so it is something different. I've tried editing page ...
3
votes
1answer
48 views

How to extend search count in content search Web part?

I have created the sharepoint 2013 content search web part. it shows only maximum of 50 results , i need to extent the count upto 200. is possible to do it in extended content search web part without ...
3
votes
2answers
7k views

Edit Properties does not open when uploading document

I was under the impression that if you have a column with a required value, the dialog "Edit Properties" should be displayed automatically when trying to upload a file. I distinctly remember seeing ...
2
votes
3answers
5k views

How to modify Author field of ListItem

I am building a migration tool that is migrating items from an XML schema to SharePoint list fields. Everything is working fine except when it comes to the migration of Created By fields. I need to ...
2
votes
3answers
7k views

How to identify zones in a web part page (programmatically adding WP's)

I am having trouble finding documentation on the web part zone's attributes. Can someone point me in the right direction? I have done this, and it seemed to work, but it was just a guess: wpm....
2
votes
1answer
457 views

Open web part properties panel with javascript

I'm looking in a way to open the right side properties panel of my web part with javascript. This way when the user adds the web part to a page, a message and a button are displayed. Onclick the panel ...
2
votes
2answers
556 views

Dates and times in Properties vs Fields

I'm trying to roll my own archiver for SharePoint. I always try to let the underlying object serialize itself. Only when it fails do I try to use .ToString(). Anyway, while inspecting the Properties ...
2
votes
1answer
3k views

Access ListItem.Properties from Javascript COM

Is there a possibility to access the ListItem.Properties from the Javascript COM? All I'm seeing is the possibility to read all Fields. There also is the funny [SP.ListItem.LoadExpandoFields()][1], ...
2
votes
1answer
4k views

SharePoint Designer 2013 Interface not saving or updating to reflect actual file state

I am noticing a few issues with SharePoint Designer 2013 and I am wondering if I am doing something wrong and if there are any fixes. I am working on Publishing Site Page Layout. I try to save a ...
2
votes
2answers
3k views

Document ID not showing in document properties

I have enabled the Document ID Feature, and it works just fine; in the document library, I can have a view showing the IDs. However, the ID is not visible when I check the document properties, and it'...
2
votes
2answers
1k views

Question about webpart properties

How can I access a custom property in my webpart? I have a page that contains webparts, which contains multiple instances of the same custom webpart. I wanted to use the .webpart file to add my own ...
2
votes
1answer
2k views

Get document properties.Keys value

I'm iterating all lists in a site collection trying to get all metadata, their values and eventually count them. I'm not so far yet, but I'm stuck in getting the values from a documents (file) ...
2
votes
2answers
140 views

Not pulling document properties when moving a Document Library

I'm attempting to move a very large Document Library from SP2007 to SP2010 but I cannot get the Properties of the Documents to move with the files. The library is too large to export as a Template ...
2
votes
2answers
2k views

SPSite.RootWeb.AllProperties is null Claims Authentication

I just created a new WebApplication & Site Collection in sharepoint. Note : WebApplication uses Claims Authentication mode, Custom Trusted Identity Provider for my application. In powershell ...
2
votes
1answer
690 views

how to get Custom List Item Property

I added a new column to Sharepoint Custom list which is boolean type, now each time I upload a item to list, it displays that column to check or leave it blank, by default its checked, I wanna access ...
2
votes
2answers
2k views

Activate Feature in Powershell and specify custom properties

I want to activate a feature with custom properties. It is easy to do in onet.xml by providing Properties: <Feature ID=“78277796-98D9-4276-B7D2-E3374AAC43D8“> <Properties> ...
2
votes
1answer
849 views

Is it Possible to create Client Web Part enum property dynamically?

I am creating an SharePoint Hosted App using CSOM technology. I want to set the ClientWebPart Property dynamically. I want to add enum property Dynamically. App will bring all the list name from my ...
2
votes
1answer
934 views

Access SPList.RootFolder.Properties from Client

Is there a way to access the SPList.RootFolder.Properties key/value pair collection from a client, either via Lists.asmx or the new client object model? I know I can create my own ISAPI endpoint and ...
2
votes
1answer
644 views

Setting the value of a custom web part property using object model

Let's say I have a reference to a web part that I got by using a SPLimitiedWebPartManager. How can I set the custom properties of that web part? For example, if it is a stock ticker web part, how do I ...
2
votes
1answer
106 views

Web Application property bag : returned value is wrong - SharePoint 2016

We are currently encountering a strange problem with some values stored in the property bag of our Web Applications that we cannot explain. Basically, we have two Web Applications, one for the main "...
2
votes
2answers
110 views

What is the difference between document properties and metadata?

I have been using the term metadata and properties interchangeably. This paragraph from Microsoft indicates there is a difference. Can someone explain the difference? Using metadata with content ...
2
votes
2answers
4k views

Document Library Metadata Lost when Office File replaced?

I have a Document Library with many properties on it's Content Type. After uploading many types of files and enteringtheir metadata (properties), some users may need to re-upload that file in the ...
2
votes
0answers
104 views

Why the Required property of field is changing to false?

I created site column with Required="true". Then I created site content type and added my column to it . Then I created list, selected "Allow management of content types?" to "Yes" and added my ...
1
vote
4answers
10k views

Get List by “InternalName”

I'm trying to use the SharePoint 2013 JavaScript Object Model to retrieve a List via an internal name equivalent. SPList doesn't have a Name or Internal Name property. It is referred to by the Title;...
1
vote
3answers
1k views

How to check if a item in a custom list have a property or not

I added a check Check Box to a custom list library form which works well with new files uploaded and I can check the property Value by bool.Parse(listItem.Properties["columnName"].ToString()); but ...
1
vote
1answer
101 views

Security trimmed results for custom query on property

The sites in my site collection are using a custom property to determine what "type" of site they are. E.g. web.Properties["SiteCategory"] = "SomeCategory1"; I'm planning on creating a web part to ...
1
vote
4answers
4k views

create_DialogOptions is not a function

I have a Custom Tool part on my web part that handles properties. It has a link that when clicked shows up a modal dialog but I'm getting this error: TypeError: SP.UI.$create_DialogOptions is not a ...
1
vote
1answer
2k views

Update Document Properties using C# - SharePoint Online

I have a drop off library in a site collection on a SharePoint Online tenant and I am writing a C# console application to update properties of uploaded documents, my code doesn't seem to update the ...