Custom Workflows in AL: Email Validation
I report this interesting post by Jaspreet Singh about creating a workflow using Microsoft AL, the demo is based on the use of an API to verify the correctness of an email (more or less with the same API recall mode already used in the Microsoft demo GetAddress already tested previously). The example is interesting, i report it for sharing knowledge.
“The Goal of this blog post is to demonstrate the power of workflows and how they can be incorporated into customizations we do going forward. Workflows are more than just replacement for old Approvals.”
SCENARIO: “Email Validation: Use an external API and send our Emails there to check If the Server exist. This way we can avoid lots of fake / dummy emails.
Free API to validate emails from https://mailboxlayer.com/
“The goal here is to not touch the base NAV code. That means we can’t edit any standard code unit, page or table so the custom code can remain standalone. Luckily using AL we have the ability to extend base pages and tables without doing any change in the base objects.”
Finally write the custom code in AL language using Visual Studio code and generate an extension for this functionality.
ORIGINAL POSTS HERE:
The Goal of this blog post is to demonstrate the power of workflows and how they can be incorporated into customizations we do going forward. Workflows are more than just replacement for old Approvals. I think of them as wrapper…..
Let’s see how to create custom Reponses for Workflows in the new AL environment….
Demo Files here: