Tag Info

Hot answers tagged

5

If you can whip up a console app and schedule it and it does the job - then great. I probably would rely on PowerShell. I prefer being able to monitor and alter scripts if needed without having to recompile or open up VS to make the edit. When working with data I've also used SSIS packages on SQL server. If you are running SharePoint locally you have an ...


3

If you want to change file name of an already uploaded document try below code: Get the uploaded file object using ID/ URL or which ever way suits you, then try this: ListItem item = uploadedFile.ListItemAllFields; item["Name"] = "NewName"; item.Update(); // use OverwriteCheckIn type to make sure not to create multiple versions ...


2

You can't delete the copy because it is associated to the Seattle.html file. What you have to do is create a copy of the Seattle.html file to. This will create a copy of the html file (Seattle_copy(1).html) that you need to rename to anything you want, maybe "delete" as an example. Doing this will give you a dialog that asks if you would like to update the ...


2

If you use file system then during system backup those files will not get backed up. This is the same case with system migration. All files in file system needs to be moved separately. On the other hand if you use libraries then those files will be placed in the content database and will be included in backup as well as system upgrade etc. If you place ...


1

The problem was related to a automated Visual studio function when adding the Content Type to the List Definition using Visual Studios Interface. Somehow a missmatch was created. Although recreating the list definition solved my issue it dosnt explain why there was a problem when I add the Content Type to Manually created Custom lists.


1

Audience is not equal to Security! Audience on pages is mainly for showing / hiding the page from for example the current navigation, users will still be able to find and edit the page through links and site content for example


1

Considering you are not interested in the whole document library VS mapped folder discussion, I believe that the main reason for placing branding elements (aka CSS) in the "Styles" mapped folder, instead of the parent, "Layouts" is mainly when you want to use the Themable engine. Whether you want to host your resources in a site or directly reference them ...


1

John, if you are creating the site columns from the visual studio use the DisplayName property of the field for your case <Field ID="{2690E8BF-0801-408A-8445-93D816DF5D29}" Name="LastName" DisplayName="Last Name" Type="Text" Required="FALSE" Group="Custom Site Columns"> </Field> <Field ...


1

I think we can use Closure to fix the problem. javascript:function sendingURL() { var ctx = SP.ClientContext.get_current(); var items= SP.ListOperation.Selection.getSelectedItems(ctx); var url = ''; var wnd; for (var i in items) { url += document.getElementById(items[i].id).getElementsByTagName('a')[0].href + '\n'; wnd = ...


1

Because you do it for each item. For each item you assing the created window to the variable wnd. So at the end, wnd is the last opened window. However, for each item you want to close wnd after 3 seconds. that works for the first time, but then wnd is already closed. You would have to assign a unique variable for each item (or do it in the itemĀ“s scope)


1

You have two options: Create a timer job. Is is similar to console application, that is run on periodic basis and is managed by SharePoint. Here is a tutorial how to create one. Cons: you will have to implement custom logging if you need one; it is not friendly to start it manually, etc. From architecture perspective: timer jobs are global artifact on ...


1

The problem lies as you are updating Title with Name, the .aspx extension is also getting appended. Try updating the page name to something else and if it works then do a string manipulation in the workflow so that .aspx doesn't get included when you are copying the Name to Title. Please share your results for the solution, maybe I can help you better if it ...



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