11

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


10

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>" + "<Eq&...


5

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


5

You have to set the transition to End of Workflow i.e as below- Once you have finished with the approving the document set that item/workflow => Add Action => Stop Workflow Hope this will help you!


4

The following example demonstrates how to approve items selected in List View via JSOM function approveItems(success,error) { var context = SP.ClientContext.get_current(); var listId = SP.ListOperation.Selection.getSelectedList(); var list = context.get_web().get_lists().getById(listId); var selectedItems = SP.ListOperation.Selection....


4

The Document Approval workflow routes a document to a group of people for approval. The approval stage can be serial or parallel meaning approvers can do review in serial order (one at a time) or in a parallel order (all at once). Document Approval Workflows are created using out of the box workflow "Approval - SharePoint 2010" or can also be created as a ...


4

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 = ctx.get_web()...


4

If you need to approve a document, You can use a built-in approval workflow by activating Publishing Approval Workflow in Site collection features. If you need to build a custom approval workflow for list item via SharePoint designer , check the following : Open SharePoint Designer and SharePoint Site. Click on Workflows option in the left Panel. Click on ...


4

Below are the steps to configure Content Approval for list/library. Go to the library for which you want to require approval. click Library on the ribbon, and then click Library settings in the Settings group. Under General Settings, select Versioning settings to open the Versioning Settings page. In the Content Approval section, select Yes in answer to the ...


3

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 http://msdn.microsoft.com/en-us/...


3

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.


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

Make sure you have the site feature "Workflows can use app permissions" activated. Without it you will not be able to change the status of content approval. With it enabled your initial workflow will work like a charm.


3

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 :)


3

I just checked and I'm also getting the same behavior. This is happening only for the documents that are previously approved. As a workaround you can go to Versioning settings and for Draft item Security select "Only users who can edit items". That way the author can see the document.


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

I am not quite sure that if you are looking for the links to the 'Approved' and 'Rejected' radio button but I would suggest the following alternative if you know how to use SPServices: Try creating a new column (a single text field column should be fine) and named the column "isitApproved". Then create a page using SPServices that provide two button - "Yes"...


2

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


2

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]


2

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


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

Versioning can be useful in many scenarios like collaboration. Take a simple example of expense management system. A user goes in and adds the details of his expenses (travel, food etc). At this time the expenses will be in pending state. The manager of the user can then approve/reject his claims. So, it will turn into either approved/rejected. Another ...


2

As a matter of clarification for everyone, when a SPD Workflow fires, it writes the step it performed into a column on the list. This, in effect, is an item change and that change makes the built-in Approval set the "Approved" status back to "Pending" because the list item has changed and once again, needs approval.


2

Because you are using a custom workflow, I assume you have an Start Approval Process action in your workflow. In this scenario, you need to do two things: In the workflow just before the "Start Approval Process" action set the EnableContentApproval workflow variable to Yes. Note that this workflow variable is automatically created when you add the "Start ...


2

It seems you are not publishing major version, publish a major version after check in. Major version should be like 3.0,4.0 etc...


2

If you want to see standard SharePoint OOTB Approval Workflow then you need to activate "Workflows" feature at Site collection level. Below are the steps for activate this feature. Site Settings --> Site collection features(Under Site Collection Administration) --> Workflows Activate it and then check.


2

Nvm, turns out I need to check "Creating a new item will start this workflow" for Start Options during "Add a workflow" creation process (obviously you can go back and edit it too). Gosh!


2

What you are describing is the content approval process - this MS link has more info on this. From your description it sounds as though your view has a filter on it, the filter is on a Status field and is filtering out anything that does not have the value of Approved. If you remove the filter, users will see both Approved and Pending documents. Depending ...


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