How can I add a button to approve tasks to a sharepoint list? - sharepoint

I want to make the approval process easier. For this I have thought of adding a button to a column of a sharepoint list.
The user would see the list of tasks pending approval and clicking on the task button would automatically be approved.
How can i do this (workflow,javascript...)? Is that possible?
Thanks for your answers.

Using the sharepoint workflow system, the user can approve from the task detail form already.
If you want to make it more user friendly as you suggested, you may program an extra field, using JSLink technology to customize the task list rendering or to add this approval button from an other list (I assume you are using sharepoint 2013 on premise) from which you call javascript API to trigger the approval.
Read more :
JSOM Api to approve a task
JSLINK

Yes, a workflow would work. I would have a separate "Approved" column that defaults to "No" (don't show it on the form). And run a workflow (upon form submit?) that changes the value of Approved to "Yes".

Related

SharePoint 2007 Workflow Doesn't Trigger On InfoPath Form Submit

This is a follow-up question to this question.
This is what I expect to happen:
User navigates to Document Library
User clicks New
InfoPath form opens
User fills in data
User clicks Submit
Form submitted to Document Library
Workflow triggered by New Item sends stripped-down form data as e-mail
Everyone is happy
The problem is, I never reach Step #8 because the Workflow does not trigger. I have all three options selected for triggering the Workflow - Manual, New Item, Updated Item. The Manual trigger works great on items in the Document Library and the Workflow does exactly what it needs to do, but the other two triggers never seem to fire.
Any advice would be greatly appreciated...
Are you by any chance running as the system account? Have a look at this question and answer on sharepoint.stackexchange.com (where you really want to move all your SharePoint questions to)

Holiday Approval /tracking

Has anyone implemented a holiday workflow approval / tracking list in MOSS Sharepoint 2007?
Can anyone suggests other solutions? The solution below works fine but I am specifically looking for a way to lookup manager of the user who created the holiday request list item in the workflow.
I have followed this link http://www.u2u.info/Blogs/Kevin/Lists/Posts/Post.aspx?ID=39
which shows you how to create a custom workflow approval. Below are the steps outlined by the link.
User add new holiday item to list
Workflow kicks off
Wf has the manager hardcoded (need a way to look this up, maybe from AD??) and creates a Task for them to review the request. If desired, this can include an email notification of the task
Manager reviews, adds comments and approves/denies request
User is notified of completed request
Many Thanks,
Naveen
We have used a custom developed InfoPath form and a simple Approval workflow to tackle this task.

How to display list item in a workflow approval task form for the list item?

We are customizing workflow approval form to display the associated list item fields. This will help the approver to verify the list item, he is approving.
The approval form will have to be one of 2 flavors.. this is assuming that you are using Windows Workflow Foundation...
InfoPath workflow form and Windows Workflow Foundation - These are the forms that are normally used for MOSS (not WSS) workflows. In order to provide list data you will need to send the list information up to the task form using the ItemMetadata.xml and SPWorflowTaskProperties.ExtendedProperties[]. If you didn't want to send that info you can try to use VSTA in the form and retrieve said information programmatically into InfoPath.
ASPX Form - Not too many people have created custom task forms (your approval form is really a task form). This form needs to be deployed to the _Layouts directory and is quite difficult to create. I recommend searching Robert Shelton's blog as he has a great example of how to create a SharePoint aspx task form.
Ulysses

sharepoint workflow

I am new this sharepoint development and i have task in hand to do the following.
1.When a new document added to the library, the system will prompt for approvers & audience from a database table. this will be stored for future revisions for the document.
2. Upon successful completion of assigning approvers, audience the system will initiate the workflow to complete the approval process.
It would be great if anyone can point the direction to do the following:
1.is it possible to call a aspx page/form from document library insert/update event?
2.How to assign approvers to a workflow programmatically?
Thanks in Advance!
Alex
I'm not sure it is possible to explicitly call another page but you can use the "Source" url parameter to specify the page they are directed to after they press OK. Obviously, you will have to change "www.google.com" to be your new URL.
/Lists/Announcements/NewForm.aspx?Source=www.google.com
You can probably do all of this using custom workflow. With custom workflow you have two options: creating the entire workflow in visual studio or create custom workflow actions and using SharePoint Designer to build the workflow.
Building custom Workflow Actions.

Submit issues - send to 2 locations at once

How can I Submit an InfoPath form to a SharePoint library AND to an email box at the same time when the user hits SUBMIT?
I need my form to be approved by several users in a particular order; then re-submitted to the SharePoint site, and to another email box so that the next approver can see the approvals, and approve their own, then submit it and have it drop onto Sharepoint again, etc.
The email chain works (the form as an attachment), and the approvals show, but the form doesn't get updated on the SharePoint Form library.
You can add an additional DataSource for submission (send to SharePoint library) and add a rule to your submit button before the save&close rules.
BUT - I would suggest a method that is based on workflows and a form that is held on a SharePoint site. I had a very similar task, where approvals were needed in a staged manner.
If there is a fixed number of approvers, create fields for each one - if the number is not fixed you will need some replacing rules that change the current approver with the next one. Then you will need one (or more) workflows that are triggered by a flag field (or more) that you promoted before. (Make them writable from the outside during publication - the workflow will need that) This field (or fields) trigger the workflow that sends the email. After sending it should clear that flag to avoid infinite looping.
The mail should contain a link to the SharePoint library. And the approver should work on that library rather than sending the XML file through the network.
Hint: Enable versioning on that libary - and you (or the approvers) can keep track of the changes.
Hint 2: If this process will be part of the daily work, maybe a custom view and alerts will help the approvers keep track of the form's status.
Sorry for asking but have you considered using a workflow rather then emails? I'm not sure whether the basic workflows in WSS 3.0 will cater for your senario but the MOSS workflow should be more than adequate.

Resources