Tag Info

Hot answers tagged

6

I solved this by using a CamlQuery directly after creation to return folders with the same name as a ListItemCollection: SP.CamlQuery query = new SP.CamlQuery(); query.ViewXml = "<View Scope='RecursiveAll'>" + "<Query>" + "<Where>" + "<And>" + ...


5

Even though the CSOM ListItem class does not have a ModerationInformation property, I was able to access this value through the field's internal name: ListItem item = file.Item; clientContext.Load(item); clientContext.ExecuteQuery(); int status = Convert.ToInt32(item["_ModerationStatus"]); And the enum is defined as: public enum SPModerationStatusType { ...


5

I answered something similar to this the other day, as it relates to #2 anyway. Creating Sharepoint Alerts only for published documents ...and don't be concerned that it doesn't have any upvotes or isn't marked as answered. I've used/tested this in the past, so I know it works. :) Just add: <FieldRef Name=\"_Level\" /><Value ...


3

You can remove the Workflow and Approval Process from the pages Library. To do so Site Actions - > View All Site Content - > Open Pages Lib and In the Pages Library select Settings -> Document Library Settings -> Versioning settings Select the Following Say no to Require content approval for submitted items? Select No Versioning And In Workflow settings ...


3

a) Not without creating a dummy user, no. b) Yup, not that complex either, just need to check the SPListItem.Level property of each version of a file, and look for the Published level. See here for more info: http://mysharepointwork.blogspot.com/2011/03/get-published-version-of-list-item.html Or here: ...


3

According to this, the Approval Status field is a lookup field and not applicable for calculated fields. My approach to the issue would be to create a separate calendar view of items with a filter of Approval Status = Pending. This way, approvers can toggle between the approved and pending data and easily distiguish what needs to be approved.


3

Not really, if the user is going to be creating and managing permissions, then that comes with the territory. Full Control grants this right so being listed as such gives them the trust that the permissions changes they are doing are desirable. If you're really that concerned, then give her Contribute or Design rights on the site and manage the security ...


2

The survey list can handle this out of the box. If that doesn't suit the need, then you can create a custom list with all your form fields and create a custom InfoPath form to show/hide content or use javascript/jQuery on the form pages to show/hide infomation. If you want it to be a document, then you can use a form library and create your own InfoPath ...


2

If you go to the library that holds your file(s), you should have an Approve/Reject view you can use to view the item(s) needing approval and approve them. Or you can just find the item in the library and approve it. Clicking on the tick box by the item should expose a option to Approve/Reject in the UI. You might want to try repairing Office and ...


2

My first thought here is: use the SharePoint Search. If there are documents/pages waiting on approval, there usually is a task assigned to an author for approving. Use SharePoint Search to search for Content Type Task and then filter for the current user. This way you use the info already stored by search. Easy and fast! Ans you can create a very powerful ...


2

It will display a month layout, with each day being clickable. SharePoint calendar default behavior When a day is clicked, a popup would allow someone to select a two-hour time window from a range of hours, if no one else has taken it. Some custom event receiver needed to check if time window is free. Trick part is how to allow only two-hour ...


2

So while writing the question i answered my own question. "Draft Item Security" setting says "Only Users who can EDIT". So we must change to the permission-level from Full Read to Full Control, not the cleanest way to solve this, but it works. Have any input please let me know :)


2

Set the Draft Item Security in the Announcement List in Child site to either "Any user who can read items " or "Only users who can edit items" while setting the versioning settings. This way users can see every announcement item in the child site. In the parent site set the logic for seeing Approved items only in a webpart like COntent Query Webpart. EDIT ...


2

If you enable the content approval you also need to enable major and minor versions in order to work. Doing so will create a new view on the Pages Library that is called "Approve / Reject" where all the wiki pages are listed that have pending approvals or have been rejected. For the permission level: There is one permission level that is called approve. ...


2

It does not seem possible to approve a list item since _ModerationStatus property is not exposed by REST in SharePoint 2010. But, Approving/Rejecting could be performed with SharePoint SOAP services as demonstrated below: function approveItem(webUrl,listTitle,itemId) { $().SPServices({ webURL : webUrl, operation: "UpdateListItems", ...


1

The dumb workaround, if nothing else works, is to turn content approval on, add a dummy attachment, and then remove that dummy attachment. Dumb workaround #2: re-create the list if it's only on this one list. Make sure the advanced settings allow read access to all items, and that you can see draft items in the list. Further investigations would be to ...


1

I observed the same behaviour on SharePoint 2013 and did the following: Create a copy of the approval workflow using SharePoint Designer: Steps 1-4 in http://roykimsharepoint.wordpress.com/2011/02/15/sharepoint-designer-walkthrough-copy-modify-publishing-workflow/ Edit the workflow, edit the approval activity, and customize "Change the behavior of the ...


1

Since the Published and Draft documents have the format: {MajorVersionNumber}.0 for Published {MajorVersionNumber}.{MinorVersionNumber} for Drafts for your scenario the View could be created with the following filters: By Published documents that corresponds to [Version] CONTAINS .0 By Author [Created By] = [Me]


1

Add a column with the version number to the view and check which items are visible by approvers and regular readers. An approved item will be visible to a regular reader. If that item is changed and moves into draft state, it will have a draft version number with something other than a zero after the dot. The draft will be visible to approvers, while the ...


1

Yes - you should be able to check this if you already have the proper access. You can start with a personal view if you don't want other to see it (or use a listview webpart on a page with a custom view if you want to control access that way). You have a variety of options but they depend on the configuration of the farm. Custom listview (targeted at ...


1

You can use workflows to accomplish this. Turn on Content approval, then create a workflow that has the email and approval elements you require. Here are some resources to help you along: Get started with workflows in SharePoint 2013 http://msdn.microsoft.com/en-us/library/jj163917.aspx SharePoint 2013 workflow fundamentals ...


1

I presume you mean the AssignedTo and the ModifiedBy? Assigned to is the assigned user, and when you approve a task it gets put into Modified By. You get them like: SPListItem task = taskList.Items.GetItemById(taskID); string modifiedby = task["Modified By"].ToString(); string assignedto = task["Assigned To"].ToString(); If you want to do something that ...


1

You might try this: Create a text column and make it "hidden". Use a Designer workflow to set the value of the text column. The workflow would run both when an item is created and when it has changed. Using the workflow, you can set the text of the text column and can reference the approval status column as well as the title column.


1

I'm not sure that this is a great idea, but I expect that you could do it either with the object model or with the SharePoint Web Services. For the latter, take a look at my jQuery Library for SharePoint Web Services (SPServies). Either way, you'd need to loop through all of the sites and lists, changing the property settings.


1

Looks like you're on the right track. You can create a document approval workflow or edit the out of the box workflows via sharepoint designer (Make sure to copy the document approval workflow and start with the new copy). Add a step to the completion box to send an email if the status is approved. Check this link for more info on editing out of the box ...


1

I have the same problem as Michael in the comments section of the below solution IMO (because I am on Sharepoint online without access to Central Administration and not 100% sure what are the differences with on-premise Sharepoint Server setup) "Site Collection Features" are under "Site Collection Administration" upon navigating Site Actions > Site ...


1

If you need to enforce that kind of logic, I would suggest either to create a workflow or implement the logic using an event handler (OnItemUpdating) on the list items for the list. In either case you would check on the columns containing the status, and check if state is either Approved or Declined, and then (depending on your business needs) either reject ...


1

The scope differs, the effect should be the same. One is used in List instances (per instance of list - even when using the OOTB lists, you might want to have it created with Content Approval enabled) by example, the other is used in List Definitions, e.g. when you create a new List Template and want to enforce this by default, then you can omit it from ...


1

If dazzles me a little, it seems you did enable Approval however you get still the version 1.0. Are you sure that versioning is enabled? If you only enable Major, then every Check In and Approve will move to 1.0, 2.0, etc. if you enabled Minor (that is Drafts) then Deepu's explanation is absolutely valid Check-In - Minor would increase/overwrite Minor ...


1

Firstly, do you definitely want the workflow? Content approval on the list/doc lib may be more appropriate if you do not require delegation/cc/due dates and the other features that the workflow offers (as well as the enhanced audit). Secondly, to disable the emails, you could edit the workflow within SharePoint Designer and remove the send email actions ...



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