Home » SharepointRSS

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 you create an out-of-the-box (OOB) workflow, this columns WF1 shows the one of the following values: In Progress, Approved, Rejected, Cancelled.

But, in the custom workflow created using SPD, this column (WF1) shows only two values: In Progress, Completed. How can we update these values to the same as the four values when OOB workflow is created?  That is, when any approver rejects, the WF1 column should show “Rejected”, if Approver B approves, the WF1 column should display “Approved”, if a user manually cancels the workflow, the column WF1 should display “Cancelled”, and in all other cases, the column WF1 should display “In Progress”.

Thanks.......

 

7 Answers Found

 

Answer 1

Hi,

did you try to create  another column  in your list let's say workflow  status, and update  this column from your workflow as you want.

 

Regards

Jaafar

 

Answer 2

Hi,

Using SPD, you can never change the status  of the workflow  column. The only option is to create  a column  and update  its value as your workflow progresses, as Jaafar has suggested.

If you want to change the values  of workflow column and provide the custom  values then the only solution is to use Visual studio for designing workflows. Just check the below post for setting custom status of a workflow :

Custom Workflow Status

Regards

Ginni [My sharepoint  Blog ]

 

Answer 3

Hi,

@Jaafar : You cannot mark your own reply as an answer. Let others do this for you.

Regards

Ginni [My sharepoint  Blog ]

 

Answer 4

Jaafar/Ginni,

If I create  a new column  per your advice, then: How can I design a form  to respond to a workflow  status of a Custom worklow (not OOB workflow)

Thanks.....

 

Answer 5

By creating a data connection in your form  (assuming you mean InfoPath form), and read the value of that column  for the current record.

 

Answer 6

i answered first :(
 

Answer 7

Per your advice, I created a new (hyperlink) column. But, How to get the WorkflowInstanceID of a custom Workflow in SharePoint Designer

Thanks......

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Tech Videos   |   Follow us on Twitter