Received email that calls a microflow

0
Hi, this is a loaded question, but here we go: When the app sends off an approver workflow generated email (requesting Approval) to a user’s email, would it be possible for the user to reply to the email (click Reply, as if sending an email in response to the automated mendix sender), and typing in the body of the email only the word “Approve” or “Rejected”, and the receiving of this email on the mendix server side would be able to read that email (i.e., fetch the first word in the body of the email—either Approve or Reject) as the response to the workflow? To summarize: Is it possible to send to the Mendix server an email that the server can receive and translate into an action? Can some kind of logic be created to ‘read’ the email text body? Can that logic translate that text body keyword into an action (by either calling a microflow or event or a new workflow, etc)?
asked
2 answers
1

Hi James,

Thanks for your question. It is possible to read an existing mailbox. 
See for more information the Mendix E-mail connector: https://docs.mendix.com/appstore/connectors/email-connector/

If I may give you a suggestion, I think it is much easier for the recipient if the email contains two links: Approve and Reject.
The chance of things going wrong is less. And it's also easier to build this in Mendix with the help of the deep link module.

I hope, this may help you!

answered
1

Hi James,

 

Step 1. You can use the Ckeditor widget in the email template to create a customized button for “Approved” or “Rejected”.

 

Refer this template.

 

 

Step 2: I’m sharing the customized code here to create a button and access the deep link module.

 

      <td style="background-color:white; text-align:center"><a href="http://localhost:8088/link/Approved" style="background: green; border: 15px solid green; font-family: tahoma; font-weight: 10;

letter-spacing: 2px;  mso-height-rule: exactly; line-height: 10px; text-align: center; text-decoration: none; display: block; border-radius: 10px; font-weight: 10; padding:5px 20px 5px 20px;">&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:#ffffff">Approved</span>&nbsp;&nbsp;&nbsp;&nbsp; </a>. <a href="http://localhost:8088/link/Denied" style="background: red; border: 15px solid red; font-family: tahoma; font-weight: 10;

letter-spacing: 2px;  mso-height-rule: exactly; line-height: 10px; text-align: center; text-decoration: none; display: block; border-radius: 10px; font-weight: 10;padding:5px 20px 5px 20px; ">&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:#ffffff">Denied</span>&nbsp;&nbsp;&nbsp;&nbsp; </a> . <a href="http://localhost:8088/link/OnHold" style="background: #48248f; border: 15px solid #48248f; font-family: tahoma; font-weight: 10;

letter-spacing: 2px;  mso-height-rule: exactly; line-height: 10px; text-align: center; text-decoration: none; display: block; border-radius: 10px; font-weight: 10;padding:5px 20px 5px 20px; ">&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:#ffffff">On Hold </span>&nbsp;&nbsp;&nbsp;&nbsp; </a></td>

 

Step 3: Paste it into the CKeditor widget.

This is a reference for deep link URL “a href="http://localhost:8088/link/Approved”  I have configured the URL in the button to trigger the deep link microflow.

 

 

answered