I have a scenario, where i need to send email depending on condition through flex task because we are using default form for approval and rejection process.
1. When workflow triggers for the first time on new document upload i need to send email to all the users in the SharePoint group with the link for approval and rejection form in email body which can be accommodated. But ones the document approved by the SharePoint group member same document will be approved again by same SharePoint group member excluding the approver who approved the document first time.
To approve the document for the second time we will be sending the email notification with a link in the email body for approval and rejection form. To send the email for the second time i need to remove the approver who approved the document in the first time.