4 Jul’17

D365 Business CentralTo run a batch to check for visa expiry date of employees and send an email if visa expires in a month in Dynamics NAV

Introduction:

This article focuses on to creating a batch to run everyday to check for employee’s visa expiry date. If the visa expires in a month an email notification is sent to the HR Manager about the visa expiry of the respective employee.

Pre-requisites:

Microsoft Dynamics NAV 2017

Steps:

  1. Create a new codeunit with id and name.
  2. Set up the SMTP mail setup in NAV.

3. In the Globals (Ctrl+G),create a record for employee table.

4. Create a function and call it on run.

5. Here in the above code calculate the previous months date of the visa expiry date and if the the date is today then an email is send using smtp mail

6. Create a job queue to run every day. Set the start time and end time.

7. An email is sent if today’s date is the previous month date of visa expiry.

 

Written by

Chris D'Silva

Software Developer

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.

Want to streamline your business processes?

  • This field is for validation purposes and should be left unchanged.

Recent Articles

  • Reading more then 10K records in D3FOE OData API

    11 July’ 2018

    Introduction: We all know Dynamics 365 Finance and Operations has limitation of 10K records to be fetched at a time usi...

    Read more
  • Paging in D365 Customer Engagement v9.0

    10 July’ 2018

    Introduction: The Xrm.retrieveMultipleRecords method is used to retrieve a collection of records in Dynamics 365 Custom...

    Read more
  • Set up Dynamics 365 connection in Microsoft Social Engagement

    10 July’ 2018

    Introduction: This blog explains how to Set up Dynamics 365 connection in Microsoft Social Engagement. Steps to be follo...

    Read more
  • Voice of the Customer failed to install

    10 July’ 2018

    Introduction: Many people face issues in installing Voice of Customer solution on v9 environment and trying repeatedly ...

    Read more
  • Scribe Insight AX as a Web Service Find Block issue

    10 July’ 2018

    Introduction: If we need to look up for any value from AX then we do it by using a Find Block in Scribe Insight Eg: Basi...

    Read more