I have a workflow defined in Sharepoint which collects user data. The workflow generates a form with a simple user input text box and three buttons: Cancel, Complete Task, Save draft. How can i complete this task using the workflow webservice? I can change the text box's content, the percent complete, the status etc. via the workflowservice.AlterTodo method, but I can't accomplish completing the task.
Any help is really appreciated!
Related
I've been trying to find answers to this situation in other threads/sites, with no success.
Just starting with SharePoint 2013 and using SPD, I created a very basic list with a text field and a date. If I create and assign a SharePoint 2010 workflow, and have the following as a workflow step:
Log STARTED to the workflow history list
then Start Approval process on Current Item with <my email>
then Log FINISHED to the workflow history list
An email is sent to me with a button Open this Task in Outlook's ribbon - this is what I want, so far so good... FYI, all options to start approval process are default, and workflow is expected to pause until task is approved/rejected.
If I delete the 2010 workflow and create/assign a 2013 workflow with these steps:
Log START to the workflow history list
then Assign a task to <my email> (Task outcome to Variable:Outcome| Task ID to Variable:TaskID)
if Variable:Outcome equals Approved
Log APPROVED to the workflow history list
Else
Log REJECTED to the workflow history list
Go to End of Workflow
I receive an email without a Open this task button, and users need to open the task that was created, edit it and then click on [Approve]. Too many additional steps.
Both workflows (2010/2013) are set to start automatically on any changes.
Apologies, can't copy/paste screenshots here, since I'm posting from my personal laptop. Any help is really appreciated here.
Thanks!
You should have Task outcome as the last column in the column order to get the outcome as buttons
To do that, you need to goto
List settings-> click on the content type name(workflow task 2013) ->
click on column order -> Make the task outcome as last column and
click ok
Now if you refresh your task edit page, you should be able to see the Approve/Reject as buttons
I'm a relatively new sharepoint user using 2007!
I have a built a list, and using designer customised a user input form for completion. The data submitted on the form is built over a period of time and when complete, needs to be used different activities which need to be manually triggered by the user.
My user process is as follows: user completes info on new form at stage one, user updates information and completes information on edit form at step 2 (this step may be repeated if not all data available) which links to a display form to review before submission of workflows. It's from this form I need to link to the workflow initiation screen.
I have 2 x oob approval workflows set on the list, and want to navigate the user from the form to the workflow initiation screen so that they choose which workflow they want to send and when. using one of the list fields, I have populated the URL to this screen for each list ID.
However it has a & within the path so when I try to pull this data through to the form it changes this to &, and breaks the link! any idea of how I can work around this?
I would add, I have very little knowledge outside of sharepoint.
& is the html representation of an &, it wouldn't translate in the URL.
When you populate the URL, you can try replacing the & with %26 as that is the ASCII Hex code for &, it may work.
Hope this helps?
I am trying to write a workflow using SPD 2010 that is triggered upon item creation in a document library.
I want to set up a task that is mailed to the user in a task-mail with a subject like - Tasks - ... has been assigned to you
(which is the default task-mail that you get in case of collect data from user form).
Is there a way to present the user with values of fields of the Current Item (the creation of which triggered the workflow) in the task form, the button to which task form is provided in the task-mail?
I understand that the workflow start will first create the task for users in task list.Get the task ID and task list ID that was created for this workflow instance, and construct an URL like - http://SITE_URL/_layouts/WrkTaskIP.aspx?List=LIST_ID&ID=TASK_ID&Source=http://redirect_url_once_task_completed.aspx where WrkTaskIP.aspx is the task edit form.Send this as a href link for text in the mail body.
It would be better if you have a data entity class to store information about your object(the item field values).You can use this in your email for information.
How to automatically print a form when a new item is posted to a list in SharePoint?
I created a list in SP, with customized Entry and Edit forms and a workflow that connects them. Every time a new item is posted the Entry form needs to be used, but when I click submit I need the workflow not only to post the item to the list, but also generate a 'Print form' that can either saved or printed.
Considering the event, adding an item triggers an SPItemEventReceiver.ItemAdded. You would call your printing code from within this event, and deploy the functionality through a Feature.
To give a really specific answer, you'll need to explain a bit more - where should the printing occur? On the machine from which the list was modified, or some central printing location?
More generally, Sharepoint can trigger a variety of events. Ishai Sagi's blog has a user-triggered solution that may give you some ideas. You could use a Javascript event as explained here. You could even send a specially-formatted email to a computer with Outlook running, with a rule that triggers a print.
A customer of ours has an Access 2007 application with a form for creating tasks for upload to a Sharepoint Task List. The user fills in the form (title, status, priority, start date, due date). The user then places check marks next to the sharepoint user names that this task must be assigned to (one task per sp user selected). This data is aggregeated into a TaskQueue table and the tasks are added to the Sharepoint list successfully (through a linked list - i think). The problem is that we need to include zero or more attachments for each task item. Is there a way to do this through a macro, VBA, or some other built in functionality that I haven't learned about yet?
My initial idea was to use a C# windows service that monitors this taskqueue table then uses the Lists.asmx Shareopint web service and the AddAttachment method when given the List item ID and NTFS path to the attached file to add the attachments to the task list item in Sharepoint.
After playing around with Access and setting up a linked table to a Task List in Sharepoint, I found that you can add attachments through the Access 2007 datasheet view. The problem is that you can only select one user or SP group in the Assigned TO field. They have a lot of repetitive tasks to assign to a bunch of separate people.. That's why they developed this form. If anyone has an idea on how to solve this issue please let me know. Also does anyone know of any good Access 2007/Sharepoint integration resources?
Thanks in advance!
have the attachments upload as part of the Access form.
load attachments into a Document Library
Check off users like they are currently being done
Add hyperlinks to the attachments uploaded in step 2 to the Description (rich text) field. (maybe done automatically in steps 1-2)
Leave TaskQueue table alone.
This way, 0..n documents can be included. The task list just stores structured data, and the documents are stored in a document library once, and you don't have runaway growth when attaching 1 document to 5 different tasks (resulting in 5 copies of the document).