How to receive D365FO push notifications using Azure Notification Hubs

Azure Notification Hubs is a scalable push notification engine of Azure Cloud Platform for sending native notifications to iOS, Android, Windows, Google Chrome, Kindle and many other supported devices and notification services. In this article I will explain how it can be integrated with Dynamics 365 for Finance and Operations, setting up a sample application in Android for receiving native push notifications directly from D365FO, without using any third party applications like the Flow application.

Project demo (Visit original post if you cannot see this video demo)
Continue reading “How to receive D365FO push notifications using Azure Notification Hubs”

How to integrate D365FO with Microsoft Flow using the new Business Events

The Dynamics 365FO Business Events functionality is currently available as a preview feature since the release of Dynamics 365 Finance and Operations Platform Update 24. With the new Business Events functionality, we can finally integrate D365FO directly with workflow based cloud development tools like Flow and Logic apps.
Here in this article I will demonstrate how to create a new D365FO Business Event and use it directly from a Microsoft Flow using the new D365FO “When a Business Event occurs” trigger.

Continue reading “How to integrate D365FO with Microsoft Flow using the new Business Events”

Empowering D365 FO service endpoints with Azure API Management service

In Dynamic 365 for Finance and Operations the service endpoints are deployed automatically upon build, without the need of any additional setup or configuration we used to do with legacy AIF services. However, in the current D365FO service endpoints, we do not have many of the configuration possibilities which were provided by WCF configuration and inbound/outbound port management before.
Azure API management service is an Azure service that provides a highly configurable front end for many sorts of Azure and 3rd party web api services, as well as for our D365FO service endpoints.

Continue reading “Empowering D365 FO service endpoints with Azure API Management service”

How to connect a Native Android Application to Dynamics 365 FO

Dynamics 365 for Finance and Operations is built on open standards like OAuth 2.0, OData v4 and RESTful JSON Web service APIs, which makes it possible for us to integrate our business apps with many different platforms and environments. One of these possibilities is integration with the popular mobile development platform of Android.

Microsoft already has open source libraries and tools to integrate Android with Azure hosted services and in this example, we will see how to integrate Android mobile platform with Dynamics 365 for Finance and Operations:

(Note : video demo below is only available in original blog post in devblog.sertanyaman.com)

Continue reading “How to connect a Native Android Application to Dynamics 365 FO”

D365 FO: How to track data changes with AIF change tracking

You may need to track changes in a table or data entity for your own data staging or logging purposes. AIF framework has a change tracking feature which uses SQL server stored procedures to track data changes in AX tables, which is also the standard change tracking used by the DMF (DIXF) framework to handle incremental push of data. Implementation is as easy as below. Create a data entity (or a Query) for your source AX table and initialize DB tracking on your data entity using the code below (As of writing, in D365 FO Spring 2018 release) :

class AIFChangeTrackingInit
{
    public static void main(Args _args)
    {
        AifChangeTrackingScope scope = 'ANDVisitScheduleTrackingScope';
        DictDataEntity dictEntity   = new DictDataEntity(tableNum(ANDVisitScheduleEntity));
        boolean		isSuccess = false;
        AIFSQLCDCENABLEDTABLES  ctEnabledTables;

        new AifChangeTrackingPermission().assert();
        aifchangetrackingconfiguration::initialize();
        isSuccess = AifChangeTrackingConfiguration::enableChangeTrackingForDataEntity(scope,dictEntity,true, AifChangeTrackingType::SqlChangeTracking);
        info(strFmt("Is success : %1", isSuccess));
    }
}

Continue reading “D365 FO: How to track data changes with AIF change tracking”

Extension instance variables within static Dynamics 365 FO form event handlers

To extend a form in D365 for Operations, we can use pre-defined events and form delegates. Event handler methods on a handler class can be assigned to them to be called when the event is triggered (For more info, see my previous post AX7 Extensibility – Part 3 : Event handlers and delegates (hooks)). As you know static methods can be called without creating a class instance and cannot access its class instance variables.

What if we need to access a class instance variable within these static event handlers?Like for example, the ‘counter’ variable below within the handler class?

final class TSExtensionInstanceTestHandler
{
    private int counter;

    [FormControlEventHandler(formControlStr(TSExtensionInstanceTest, Counter), FormControlEventType::Clicked)]
    public static void Toggle_OnClicked(FormControl sender, FormControlEventArgs e)
    {
        FormRun formRun = sender.formRun();
    }
    [FormControlEventHandler(formControlStr(TSExtensionInstanceTest, Test), FormControlEventType::Clicked)]
    public static void Test_OnClicked(FormControl sender, FormControlEventArgs e)
    {
        FormRun formRun = sender.formRun();
    }
}

Continue reading “Extension instance variables within static Dynamics 365 FO form event handlers”

WebAssembly, a new era of web platform programming

Today Javascript is the most accepted client side programming standard for the web platform. Originally designed as a simple scripting language to write small logic into HTML pages (as “script” in it’s name implies), today it is immensely used in modern web projects, together with massive sized open source Javascript libraries like Angular, React, Backbone, Ember. The demand for browser based applications is getting higher everyday since creating a browser based application is undoubtedly the best option if you want to create a multi platform and multi device application. Therefore many enterprise applications today, like ERP and productivity applications target world wide web as their development platform.

Although it is pretty “the standard” technology for today’s web client programming, is Javascript alone able to handle those future requirements of heavy, functionality rich enterprise applications?

In this article we will have a quick look at one of newest technologies in browser based application programming, the new “WebAssembly” technology, and explain its potential impact for the future.

Continue reading “WebAssembly, a new era of web platform programming”

Simple server-side scripting with ASP.NET Razor

With the introduction of .NET framework and ASP.NET in the late 1990s, the legacy HTML embedded single page web application model of ASP is replaced by the Web Forms (and later ASP.NET MVC model). While the new ASP.NET models brought many new possibilities and made it easier to create enterprise web applications, the simplicity of legacy ASP was left behind.

Continue reading “Simple server-side scripting with ASP.NET Razor”