I create an approval workflow as below
which always return Approved outcome even if its rejected, Please suggest the correct way to return value Rejected if Approvar rejected the list item
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
How did you set the value of the workflow variable temp? It will be better to check it as it seems to get value in the approval process.
For troubleshooting you issue, I will suggest to add some log actions to output the value of variables like the approval status and the temp in before and after the approval and if condition. It will help us to see where the workflow starts to get a wrong value.