Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have created a SharePoint Designer workflow and at one step it should send an email to user if it is approved else send an email to user if it is rejected.

so I gave a condition like "If Current Item: WorkflowStatus equal to 16 send an email to user else if current Item: workflowstatus equal to 17 send an email to user"

the problem is the user is not getting any email even though the workflow is approved or rejected. please let me know why its not working. Is it due to SharePoint designer not recognizing workflow status codes (16 for approval and 17 for Rejection).

share|improve this question
add comment

1 Answer

I believe the values you are trying to use are only applicable when Versioning is using Approval - that your list/library, because these are valid only withing the context when using the Approval workflow then the return codes for this, are defined in the ReviewRoutingState enumeration within the Microsoft.Office.Workflow namespace (Microsoft.Office.Workflow.Routing assembly), as follows Canceled = 15, Approved = 0×10 (16), Rejected = 0×11 (17)

If you are not in this situation, i believe it doesn't even go through that.

I'm also wondering why didn't you use simply the Approval status of the List Item, as the Approval Workflows can change that for you.

share|improve this answer
    
Marius, I am using the Approval Status field from the List but still Its not sending an email to user –  shreyas Feb 13 '13 at 21:23
    
Tried writing to the Log for trial? –  C. Marius - MVP Feb 13 '13 at 21:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.