Tag Info

New answers tagged

0

When you create the Library at the end of that you can break inheritance and apply the unique permission. Check this post, it will explain how to set the item level permission, may be help you http://maiomardesouki.com/2011/07/20/dynamic-item-permissions-from-sharepoint-designer-workflow/ Also check this powershell: ...


0

You can use a Site Workflow which handles every list creation and do all the staff that you want to do.


0

Assuming 2013, you can expose your Java class in a web service, and call that from your workflow. That's the only way I can think of.


0

Create a single line of text column named Position. In this column, you will enter in the position you want for that list item's group in this column. 1 for all items in the first group in the list, 2 for the second, etc. Create a calculated column that you will use to group your list, e.g. Calculated Choice In the formula section, enter the following: ...


0

I think the Quick Edit option allows you to update the links in a spreadsheet format easily. Let me know if my understanding is wrong.


0

You can add columns to your document library in two ways. Either via document library settings and proceed to add columns, or you can create a new Content Type. Creating columns in a document library is effectively giving you the ability to add metadata for every document in a document library. If you create a Content Type you then need to associate it with ...


2

SharePoint opens document using SharePoint.OpenDocuments.ActiveX by design. Text Documents are opened by notepad.exe, and for security reasons only Office Applications are allowed to use the ActiveX control. You can still upload and download text document to and from the library, but not from SharePoint. You need to edit text documents outside of SharePoint ...


0

Try with JShare. It is easy to use Java API for SharePoint


0

This has happened to me several times in SharePoint Online (2013). I will describe below my scenario and my solution which worked instantly. Scenario: User has a SharePoint file open in edit mode. User disconnects from the network or restarts computer without properly closing the file When user tries to edit the same file after rebooting they receive a ...


0

Yes folders inside document sets are not supported but in share point 2013, it has changed https://sergeluca.wordpress.com/2014/06/04/sharepoint-2013-and-folders-in-document-set-why-i-needed-it/


1

I may not fully understand what you are trying to achieve. You want to display a 100x100 thumbnail of the Image in a Document Library and the image name is in the Title field? You can achieve this with a Calculated Column (set to datatype=Number): ="<IMG height=""100px"" width= ""100px"" src=""" &[Title] &""">" datatype Number wil be ...


0

You can also write a workflow to do this. Create a workflow to set each field in the new library to same value in the field in the old library, linked by the name of the document. You may want to create the workflow first so that when you do the copy through explorer it will trigger the workflow to automatically update fields from the source list.


0

@paul-strupeikis has the correct answer here IMHO, but I would like to point out a straight forward alternative (albeit not as pretty): Consider using PowerShell in a Scheduled Task. It depends on how instant you need the transferring to occur, but if you could let it wait 2-5 minutes then this approach could be a good enough solution for you. We find ...


1

Your best bet would be using Event Receivers. That, though, requires developing a custom component. Here is a simple HOW-TO What you need is an ItemAdded event receiver, which would check the value of Management column and if it's true, the document would be copied to a different library. You can handle ItemUpdated event as well, if someone decides to ...


1

The upper boundary for documents is 30 million documents in a library. If you are anticipating this type of growth, you will need to leverage column indexes and ensure you are using filtered views. If you try to render a view that will return more than 5,000 items, you'll throw errors. So don't give out an unfiltered All Documents view. Carefully plan how ...


0

I've found that if you use enable the minor-version functionality it will keep documents that are dropped into the library checked-out until all required metadata is entered. This prevents other users from seeing the document


0

From the Library Menu if you select Modify View and change 'Style' to 'Shaded' it will remove the drag and drop. You end up with more of a list view.


0

After following this (Run JavaScript after "group by" in list has been clicked on and list data loaded) article I was able to get the following code working. <script type="text/JavaScript" src="/_layouts/jquery/jquery-1.11.0.min.js"></script> <SCRIPT type=text/javascript> $(document).ready(function(){ var oldExpand = ProcessImn; ...


0

You can add that column directly from the Sharepoint list itself However to add it using Visual Studio refer following code using (SPSite oSPsite = new SPSite("http://Web-URL")) { oSPsite.AllowUnsafeUpdates = true; using (SPWeb oSPWeb = oSPsite.OpenWeb()) { oSPWeb.AllowUnsafeUpdates = true; /* get the SPList object by list ...


0

You can use SharePoint designer to quickly and easily add columns to a list, if you have it installed. Open your site in SharePoint Designer From the left click Lists and Libraries Select the relevant list Click Edit List Columns under the Customization section From the ribbon at the top choose Add New Column


0

You can create column in List without Visual Studio. from GUI you can follow these steps: In the ribbon, click the List or Library tab. In the Manage Views group, click Create Column. In the Name and Type section, type the name that you want for the column in the Column name box. Under The type of information in this column is, select the type of ...


1

I have faced almost same issue due to list threshold limit when my items exceeded the limit to 50K while limit was only 5K (as by default). You have two options here. Disable throttling for the library. Create an indexed column and then use that column in your custom view as a filtering column. Creating index column may take some time based on data ...


1

Include this Paged="TRUE" into RowLimit tag, that would be like as <RowLimit Paged="TRUE">30</RowLimit>.


2

Working with lists and list items with REST url: http://site url/_api/web/lists method: POST body: { '__metadata': { 'type': 'SP.List' }, 'AllowContentTypes': true, 'BaseTemplate': 100, 'ContentTypesEnabled': true, 'Description': 'My list description', 'Title': 'Test' } Headers: Authorization: "Bearer " + accessToken X-RequestDigest: form digest ...


0

You can consider the approach of Creating Content Type and then associating content type to document library. In this approach, however, you will have to create document libraries for each clients and then associate content type to document library. But the benefit here will be that once when you have created content type, change management will be easy ...


0

I solved it so ill answer my own question: public void addItem(String itemUrl, File file) throws IOException { TempFiles tf = new TempFiles(); HttpPut request = new HttpPut(itemUrl); request.setEntity(new FileEntity(file)); System.out.println("ITEM URL: " + itemUrl); CloseableHttpResponse response = httpClient.execute(target, request, ...


0

Could be please confirm what really is the issue? I would like to assume its the error you receive in trying to create a new folder on your document library. In that case please visit advanced settings->Make New Folder option to yes. Hope this is what you were looking for !!


1

If you just want to change the toolbar type.Here is simple code for you Code Block lMgr =OpenWebPartManager("Default.Aspx"); // Get web Part wp = lMgr.WebParts[wp.ID] as WebPart; ListViewWebPart lv = (ListViewWebPart)wp; // Extract view System.Reflection.PropertyInfo ViewProp = lv.GetType().GetProperty("View", System.Reflection.BindingFlags.NonPublic | ...


2

This solution worked for me private static void SetToolbarType(SPView spView, string toolBarType) { spView.GetType().InvokeMember("EnsureFullBlownXmlDocument", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.InvokeMethod, null, spView, null, System.Globalization.CultureInfo.CurrentCulture); PropertyInfo nodeProp = ...


0

Why would you need to use another library to make CRUD operations on SharePoint? You already have SharePoint REST endpoints that you can use for all these purposes. Have a look here for Basic Operations in REST


0

This was the code in the end for the benefit of others. SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite esite = new SPSite(web.Site.ID)) { using (SPWeb eweb = esite.OpenWeb(web.ID)) { SPList eoldLib = eweb.Lists[oldLib.Title]; ...


1

The problem with your hide custom action is that the Rights attribute says that the custom action must be active for every user having the ViewListItems permission, even if they have further permissions (like EditListItems) as well. AFAIK, there is no declarative way to restrict the custom action using sime kind of exclusive OR (XOR), for example, for ...


2

The RunWithElevatedPrivileges code block has no effect in your case, as the item and web objects are created outside that scope. The folder objects you perform the MoveTo method on are received from the item, that is not "elevated". You should get site / web / list (etc.) objects you need to perform operations with elevated permissions to create within the ...


0

1) You can user Export/Import feature. Use Central Administration to export a site, list, or document library in SharePoint 2013 You can use Central Administration to export a site, list, or document library. You can only export one site, list, or document library at a time. To export a site, list, or document library by using Central Administration ...


1

Granular restore operations require the use of Powershell as no UI in Central Administrator exists. This cmdlet is used to restore sites, list, and libraries exported with “export site or list” option in central administrator or using export-spweb cmdlet. For Example: import-spweb -identity http://contosoweb/ -path \\appserver\bu\list.cmp Note: You ...


0

Try creating a group to put users in. When you create a group there are options for the different levels of permissions. One of the options is a restricted read. This may give you what you are looking for. It's at least worth a try.


0

Go to Library Permissions. Stop Inheriting Permissions. Remove All Permissions. Grant permission to your Group which has Contribute Permission. Also, check the Toolbar Type of the Library Webpart. Ensure that it is 'Full Toolbar'.


0

There are two options out of the Box. You can use "Open with explorer" functionality in the Ribbon. You can install SharePoint Work-Space and sync your data, bulk upload and download.


0

The solution to this was a lot simpler than I expected: I activated content types for the site and set the Document Status column to 'Hidden' rather than 'Optional', and now the column can't be seen from the Excel. Just thought I'd answer my own post for anyone who finds themselves in a similar situation and comes across this.


0

As per my understanding, browser simply call the default application of the system. Set Adobe Acrobat as default PDF application of the system and it should work.


0

Will this work? By updating Title in ItemAdding and ItemUpdating events, extra Updates are avoided (without DisableEventFiring), and the "Edit Properties view" will already have the Title filled in. Some code example to update title based on filename. Works for Document Library and Picture Library and should work for Assets library. For working with Title ...


0

You can actually do this in two requests. You can upload the file to SharePoint and get the returned URL. Then use the returned URL to update the Title. The example below uses JavaScript, but you can see the required headers you need to set in order to update the title. You can also see the other steps you need to take if you do not want more than one ...


0

If in case someone has the same issue, uninstalling Security patch KB3013126 fixed the error. The solution was provided by Microsoft Support.


1

There is nothing in the SharePoint REST API which allows you to create a file using a template. You will have to create new file (empty) or with at least one page. Then set the metadata including the contentTypeId. The following link shows how to do this without creating more than one version if you have versioning on. You can adjust the code to include the ...


0

@ECM4D This url works: http://industrial-ex/sites/tifdemo/_api/lists/getbytitle('enovia')/items I can see my document file but how do i then select the metadata? This is the Java Code: String url = "http://industrial-ex/sites/tifdemo/_api/lists/getbytitle('enovia')/items"; GetMethod get = new GetMethod(url); ...


0

I have found the solution to assign permission to group: using (SPSite spSite = SPContext.Current.Site) { using (SPWeb web = spSite.OpenWeb()) { web.AllowUnsafeUpdates = true; SPGroupCollection grpColl = SPContext.Current.Site.OpenWeb().SiteGroups; SPGroup spGroup = grpColl.GetByName("myGroup"); SPRoleAssignment ...


0

What version of SharePoint are you referring to? I assume in your "Public" site publishing feature turned on? Have you checked whether you have similar permission on both libraries. Do you get any error message when you try to "open with Explorer" - if so can you include a screenshot here? Thanks!


0

You can disable the "New Folder" button in Library Settings - Advanced Settings - Make "New Folder" command available?. This does not stop a user from opening in explorer view and creating folder there, like you had mentioned. As far as permissions on the library go, contribute to the library gives them access to create new documents as well as new ...


0

You can use event receivers. But it's not a good idea. Why users shouldn't be able to remove folders? If you want to create good structure, you should look to Taxonomy/Metadata feature. You can find a lot of articles with Folders/Metadata comparison. For example: ...


0

Best approach would be to use some powershell script which will first create a lookup column in list (say A). Then iterate through items in list A and query list B to for specified value. Add this value to lookup and update item. Based on the number of items you can do performance upgrades to the script: store IDs of items from list B in cache to avoid ...



Top 50 recent answers are included