.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
ASPEvil
david stephan
Santhakumar Munuswamy
Fauzul Azmi
Post New Web Links

Update Approval Workflow task status

Posted By:      Posted Date: September 27, 2010    Points: 0   Category :SharePoint
 

Hello All

I am trying to update the task status automatically after a list item is approved without much luck. I need to set the task status to "completed" without having to manually hitting the "complete task" button, so the next person in line can approve the list item.

How can I change the status of a task using SharePoint Designer 2010?

In my SharePoint Designer task editor I have:

<code>

if Current Item:Approval Status equals 0;Approved

---I need to add a line in here that updates the task status to "completed"

Assign Approve list item to User2

</code>

 

Thank you all in advance.

Regards

Yoshi




View Complete Post


More Related Resource Links

Approval Workflow does not update the Content Approval status if started automatically

  

Hi,

I’m using a simple Approval Workflow associated with Content Approval on site pages. It works fine when I set it to be started manually (by using Allow this workflow to be manually started by an authenticated user with Edit Item permissions  option) and on the completion of the workflow the Content Approval status is updated accordingly. But when I set it to be started automatically (by using Start this workflow when a new item is created  / Start this workflow when an item is changed options), it does not updates the Content Approval status. Note that I’ve set the Update the approval status after the workflow is completed (use this workflow to control content approval) option to true.

Regar

Approval Workflow does not update the Content Approval status if started automatically

  

Hi,

I’m using a simple Approval Workflow associated with Content Approval on site pages. It works fine when I set it to be started manually (by using Allow this workflow to be manually started by an authenticated user with Edit Item permissions  option) and on the completion of the workflow the Content Approval status is updated accordingly. But when I set it to be started automatically (by using Start this workflow when a new item is created  / Start this workflow when an item is changed options), it does not updates the Content Approval status. Note that I’ve set the Update the approval status after the workflow is completed (use this workflow to control content approval) option to true.

Regards

Approval Workflow does not update the Content Approval status if started automatically

  

Hi,

I’m using a simple Approval Workflow associated with Content Approval on site pages. It works fine when I set it to be started manually (by using Allow this workflow to be manually started by an authenticated user with Edit Item permissions  option) and on the completion of the workflow the Content Approval status is updated accordingly. But when I set it to be started automatically (by using Start this workflow when a new item is created  / Start this workflow when an item is changed options), it does not updates the Content Approval status. Note that I’ve set the Update the approval status after the workflow is completed (use this workflow to control content approval) option to true.

Regards

How to make the Workflow Status remain "In Progress" when a task is "Rejected"

  

Hi Sir/Mam,

I have a work flow running on a list, when a task is Rejected at a stage then the Workflow status is set to "Completed". Instead of this I want the Status to remain as "In Progress", so that in future after the modification of the document the Approver may Approve it and then take it to the next stages. This is not possible if the Workflow is set to "Completed".

Can you please suggest an easy way to do this

Thanks in Advance

Sai


Update workflow task

  

Hello guys,

 

I created a timer job service to send reminders when a task is overdue, now I am looking at how visible it is for reassigning the task to some one else within the timer job service itself.

 

Is this possible?

 

Thanks


OOTB Approval Workflow - Approval status could not be updated

  
I've setup up a standard OOTB (out of the box) approval workflow on a Pages library, in order to manage the approval of all pages created and updated.  This operates as expected, and the users are mostly happy, execpt for one scenario: Once a page has been submitted for approval, if the approver wants to edit the page, it stops the workflow (after prompting) which then requires the workflow to be started again.  They would like it so the approver can edit and then approve, without restarting the whole workflow process. There is a setting in the approval workflow configuration of the 'Complete the Workflow' section in the 'Cancel this Workflow when the' area, and by unchecking the 'Document is changed' option, I believe this should enable approvers to edit the page and then approve the page, without stopping the workflow  However, the workflow appears to operate as expected, except the page does not automatically get approved.  By looking in the workflow history, I can see the following error: Post-completion activity performed. Approval status could not be updated. I've tried this on two separate MOSS 2007 Enterprise farms, both are publishing sites and I'm running as a site collection administrator, both with the same results. Is anyone else getting this, is this normal?! Is there another way to approach this, without having to go

Approval workflow is not passing task instructions to workflow task page (WrkTaskIP.aspx)

  
Hi, Very weird issue. Never happened before. I have Document Approval workflow, based on built-in approval workflow, which is available in document libraries of every site in the site collection. You might know that when you kick off approval (even collect feedback) workflow, you can enter task instructions, which will be passed on to the workflow task page (WrkTaskIP.aspx), and also included in the email, which will be sent to approvers (reviewers in case it is a collect feedback workflow). I know that the users used to enter task instructions, and before, it was appearing in the workflow task page where you approve/reject it. Recently, they noticed that the task instructions textbox was being empty, though the instructions were being entered when the workflow was started. Moreover, it stopped showing task instructions for other tasks that existed for a long time. BTW, this is not the same in every environment we have, but I could not find any difference in the settings when I compared them. Has anybody faced this problem? Please help if you know the solution. Thank you!!! Regards, R.D.M.

OOTB Approval Workflow SharePoint 2010 - Blank "Requested By" field appears in Task Item edit/view f

  

Hi,

I am having a simple OOTB  approval worflow associated to the simple document library. Task is created when an document is uploaded to the library.  When I click the task item in task list, I see a blank field "Requested By"  right below the "Status" column and I am unable to understand from where this field is coming and how to populate this field. Any help would be great...


Approval Workflow : Getting the name (or unique ID) of the item being approved in the infopath Task

  

I need to display the name/title of the item being approved in the infopath task form that is viewed by the approvers. How can I achieve this? The data fields in the Primary data connection seem to correspond to task item and not the item being approved itself.

Thanks in advance!


Workflow Approval Process not setting item's Approval Status

  

Hello,

I've been pounding my head against the desk about this all afternoon.  I have a simple workflow attached to a document library that runs on item creation.  All it does is start the approval process on the current item and emails me and a few other people a task (in parallel).  I have another workflow attached to the document library that runs on modify and it looks to see what the Approval Status of the Current Item is.  If the Approval Status is Approved, the workflow copies the item to another library then deletes the current item.  Same with rejected (only sends it to another library).  Pending does nothing.  I modified the Completed step in the approval workflow to modify the item (to make sure the second workflow triggers)

All that works except, no matter what the Approval Status is alway Approved!  Even when first create the item and run the approval process, the item comes out as approved.  I even explicately set the Approval Status to Pending at the beginning of the first WF, but right after that, the item reverts back to being Approved.  How do I make the item be Pending until everyone has responded to the approval task?  I kinda thought that was the default procedure...

Thanks!


SharePoint 2010 Approval Workflow email is not showing link to Workflow Task list

  

Hi,

I have created an out of box Approval workflow in SharePoint 2010. I am receiving email with below information

Task assigned by Chinna Malipedu on 10/7/2010.

Due by 1/1/0001

Approval started by Chinna Malipedu on 10/7/2010 11:43 AM
Comment: Approve

 

__________________________________________________

To complete this task:
1. Review SharePoint2010.
2. Perform the specific activities required for this task.
3. Use the Open this task button to mark the task as completed. (If you cannot update this task, you might not have access to it.)

But I need to go to Workflow Task List by clicking 3 item "Use the Open this Task" , this is not a link here

or I want like "Edit this task to mark the task as completed."  Edit this task should link to Task List

How to do this? do i missing any configuration?

I have successfully done the same  in MOSS 2007.                                                               Is there  any extra&n

How to update workflow status in a custom workflow using SharePoint Designer

  

We have created a two-level custom workflow using SPD as follows:

Submitter submits request form in a form libraryàApprover A approves/rejectsàApprover B approves/rejectsàSubmitter receives an email and workflow stops

Exception: If Approver A rejectsàsubmitter receives email and workflow stops

Question: Users may have noticed that the default view of the form library has a column with the same name as the workflow. Let us call our workflow as “WF1” So the default view of the form library would show a column named WF1. When yo

Sharepoint 2010 Approval Workflow "Open this task" link not functioning

  

When I am clicking on "Open this task" link in outlook 2010 i am getting error as "Access to the floowing form required". Please help me out to resolve the issue..

 

Thanks,

Basavaiah 

 

 


Copying approval from Workflow task to List Item.

  

I have a system for entering info into sharepoint.  When the info is first entered, the list info is sent to the manager for approval using the workflow approval process.  This work, the email goes through, and then is approved on the workflow, but we have the require content approval checked, and this approval stays on pending.  I am trying to do a look up on the task list, and then approve or reject based on that.  It is not working.  The If statement always is ok, and then it is approved, even if i set reject.  Can anyone help me with this?

 

For the workflow lookup, the Field Data to Retrieve is

DataSource is the Tasks list for the workflow

Field from source is Approval Status

 

The Find the list Item is

Field is Workflow Item ID

Value is Current Item:ID

 

I am using this info to try to pull the approval status of the workflow and then based on

that set the approval of the list item.

 

Thanks


a error when update a workflow task item

  

I get a error when I want to update a task.

code

 

               Hashtable taskHash = new Hashtable();
               taskHash["TaskStatus"] = "1";
               SPWorkflowTask.AlterTask(m_task, taskHash, true);

error message:

Object reference not set to an instance of an object.   at Microsoft.SharePoint.SPListItem.PrepareItemForUpdate(Guid newGuidOnAdd, Boolean bMigration, Boolean& bAdd, Boolean& bPublish, Object& objAttachmentNames, Object& objAttachmentContents, Int32& parentFolderId)
   at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents)
   at Microsoft.SharePoint.SPListItem.Update()
   at Microsoft.SharePoint.Workflow.SPWorkflowTask.AlterTask(SPListItem task, Hashtable htData, Boolean fSynchronous)
   at SSC.SAM2.Workflows.TaskPages.TaskPageCode.BtnComplete_Click(Object sender, EventArgs e)
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.

How to update workflow task and terminate workflow using silverlight client object model.

  

Hi,

I have created a sequential workflow using visual studio. I also created a content type inherited from the workflow-task content type. Workflow creates a task-item in the task list. I want to update the workflow task using the silverlight client object model. I find on the internet and WorkflowTask.AlterTask() method to update the workflow task item. But I didn't find the equivalent of WorkflowTask.AlterTask(). Can any one help me to update the workflow task from the silverlight client object model?

I also want to terminate the workflow instance using silverlight client object model, but i didn't find any way to terminate the workflow using client object model?


how to get the status of an approval workflow of item using sharepoint object model ?

  

Hi,

There is a list on which an approval workflow is associated,workflow starts when an item is added.The list is having anonymous access so anyone can enter an item,but the item needs to be approved by an approver.Hence,each item will have a status(e.g. approved,rejected etc.).

Now,I am creating a visual webpart.I want to display the list items in a grid.But I need to display only those items which are approved.I am using sharepoint object model,How can I filter the items based on the approval status.

Thanks


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend