Tag Info

Hot answers tagged

7

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

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 ...


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 ...


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

Since Content Approval status is stored in List Item (_ModerationStatus) I would recommend to leverage any client APIs (JSOM, REST or SOAP) for that purpose. How to retrieve content approval status using client APIs JSOM function getListItemModerationInfo(listId,itemId,success,error) { var ctx = SP.ClientContext.get_current(); var web = ...


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

Any chance you could use a Survey list? The Survey list type allows for conditional questions, which sounds like what you are looking for. Answers to a given question can be evaulated and then used to serve up matching questions in resonse.


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

You need to get the association ID of the workflow and set following property to set it programmatically. SPList.DefaultContentApprovalWorkflowId


2

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 ...


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

I think you have to go into every page / image / doc library - Settings, Versioning settings and set content approval to no.


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

check this out: WorkflowContext.AllowDefaultContentApproval http://msdn.microsoft.com/en-gb/library/microsoft.sharepoint.workflowactions.workflowcontext.allowdefaultcontentapproval.aspx SPWorkflowTemplate.AllowDefaultContentApproval http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflow.spworkflowtemplate.allowdefaultcontentapproval.aspx ...


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

If the workflows aren't showing up, I'd make sure that the Workflows feature is activated for your site collection. Site Settings -> Site Collection Features -> Workflows


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

There's an attached property SPWorkflowActivationProperties WorkflowProperties. You can get the source item via it's Item property: SPListItem item = WorkflowProperties.Item;


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 ...



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