1

I have created a sharepoint list form where there are different levels of approvals in the sharepoint designer workflow. However, when the administrator clicks approve or reject in the task, the output which is to sent confirmation email to the users is the same for both approve and reject.

if status equals accepted, inform user through email that it has been approved

else if status equals rejected, inform user through email that it has been rejected

enter image description here

may I know what could be the reason for the same output despite putting the correct fields?

5
  • Try to log the value of variable or condition. Through that you might know if the value is reference correctly or some issue in that. Apr 28, 2016 at 4:31
  • Please attach snapshot of your workflow, So i can identify if any step is missing. Apr 28, 2016 at 4:52
  • Hi I have just updated the attached pictures. Do take a look thank you. @MonicaJagani
    – Jamietoh
    Apr 28, 2016 at 6:29
  • Your lookup box is finding the first item in the associated task lists where iFast_Approval_2 = Accepted and returning that. It isn't necessarily finding the task for the item you're trying to get approved. Since it always finds the first one that is accepted, it is always sending the "accepted" email. You need to choose a Field and Value pair that will return a unique task.
    – Erin L
    Apr 28, 2016 at 6:35
  • For the field and value pair, does that mean I take a common field from the task list?
    – Jamietoh
    Apr 28, 2016 at 6:49

1 Answer 1

0

Normally a task in SharePoint designer returns an outcome (which button was clicked) and a task ID. If there is an outcome return value, you should use that one. If there isn't one try looking up the task instance using the task ID return value. The return variables are visible at the end of the task action between brackets.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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