Quantcast
Channel: Microsoft Dynamics 365 Community
Viewing all 10657 articles
Browse latest View live

Ax7 event for Clicked and retrieve form DS example

$
0
0
1. Copy event from Button-> OnClicked​. 2. Past this code in new class. [FormControlEventHandler(formControlStr(CaseDetailCreate, OK), FormControlEventType::Clicked)] public static void OK_OnClicked...(read more)

AX7 - CRM online (Dynamics 365) cloud Integration made easy

$
0
0
Get access to portal.azure.com/Azure subscription. 2. Craete CRM-AX Flow 3. Create record in CRM onlie, thats it ligic app flow will trigger from resource group and record will create in AX7.(read more)

Discontinuation of Dynamics Online Payment Services

$
0
0

A notice was recently released on the discontinuation of Dynamics Online Payment Services.  Please review this notice using either the PartnerSource and CustomerSource links or the verbatim below: 

PartnerSource
https://mbs.microsoft.com/partnersource/northamerica/news-events/news/onlinepaymentservdisnotice

CustomerSource
https://mbs.microsoft.com/customersource/northamerica/news-events/news-events/news/onlinepaymentservdisnotice

Discontinuation verbatim:
Effective January 1, 2018, Payments Services for Microsoft Dynamics ERP (Payment Services), available with any versions of Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP, Microsoft Dynamics RMS, Microsoft Dynamics POS 2009, and Microsoft Office Accounting, will be discontinued. Customers of the Payment Services will not be able to process credit or debit card transactions after December 31, 2017.

To mitigate the potential business impact of the Payment Services being discontinued, customers should consider payment solutions provided by Dynamics Independent Solution Providers (ISVs) by searching by searching Microsoft’s AppSource or Solution Finder, or work with their Dynamics implementation partner to determine options.

Customers who have not cancelled their subscription to the Payment Services and whose subscription is due for renewal before January 1, 2018 will receive the annual, automatically generated, 12-month subscription renewal notice for this service.  Subscriptions to the Payment Services will be renewed only for the period beginning on the date specified in the renewal notice and ending on January 1, 2018.  A customer’s subscription to the Payment Services may not be renewed for 12 months depending on the date it expires.  The notice supersedes any subscription renewal a customer receives. If you have any questions, please email dops@microsoft.com.

A Useful Report for Dynamics AX 2012 Security that You Already Have

$
0
0
If you are more of a functional user in AX 2012, you may not have had the opportunity to “play around” in the Application object (AOT) to find out what can be of use to you there. You may be restricted...(read more)

Awareness | Worldwide | Payments | Planned Maintenance for Dynamics Online Payments | January 4th-January 6th, 2017

$
0
0
The Service Engineering team will be doing planned maintenance on the Payments Service. The maintenance will start at 10:00 PM PDT on January 4th through 8:00 AM PDT on January 5th and 10:00 PM PDT on...(read more)

Deploying Dynamics AX 2012 at your company

$
0
0
Many businesses rely on an enterprise resource planning (ERP) solution to gain control and visibility throughout their operations, from the front office and into the back warehouse.(read more)

The merger between ERP and the cloud: Dynamics AX 7

$
0
0
Enterprise resource planning (ERP) solutions have evolved over the years to address changes in business functions, marketplace conditions, and customer demands.(read more)

ERP 101: What is ERP?

$
0
0
Although there are many different types of business software in the marketplace, enterprise resource planning (ERP) solutions are favored by businesses of all sizes and in nearly any industry sector.(read more)

Dynamics AX vs Sage

$
0
0
Choosing a new ERP system entails a significant investment of time and resources. Excellence in the following three areas have convinced businesses to choose Dynamics over Sage.(read more)

Dynamics AX vs Oracle

$
0
0
Choosing a new ERP system entails a significant investment of time and resources. Excellence in the following three areas have convinced businesses to choose Microsoft Dynamics over Oracle applications...(read more)

Business Intelligence in new Dynamics AX 7

Peripheral Simulator in new release of Dynamics 365 Operations

$
0
0
Extremely helpful. This is surely going to help. Looking forward to configure and use this. axology With one of the latest releases of Dynamics 365 Operations we have the option of simulating hardware...(read more)

How to find AOT objects in AX

$
0
0

At some point all developers have the requirement to be able to locate a particular piece of AX object or code. AX does provide some out-of-the-box tools that you could use in order to find Application Object Tree (AOT) entries. Here are the tools and techniques available on how to find AOT objects in AX. 1. The Developer tools In...

The post How to find AOT objects in AX appeared first on DAXRunBase Consulting.

AXAPTA - Synchronize tables

$
0
0
That code works on common situation my colleauge found from web (don't know the source): Dictionary dict; int idx, lastIdx, totalTables; TableId tableId; Application application; SysOperationProgress...(read more)

Remotely controlled nightly memory cleanup on Android devices

$
0
0

Imagine you have an enterprise application running on hundreds or thousands of mobile devices in field. Your application is being used every day, and it is rarely being restarted (users prefer leaving the application in the foreground all the time).

While we all tend to create applications that are memory responsible, the reality is that there would be memory leaks. With intensive usage of the application described in the example above, even small memory leaks would eventually cause the issues (application malfunctions or breaks).

Our Android application is developed using Xamarin.Forms. Our server runs on Azure and exposes REST API developed using ASP.NET Web API. Server communicates with the mobile devices by sending messages through Azure Notification Hub and Google Cloud Messaging (GCM).

When we experienced memory related issues on devices, we started brainstorming for possible solutions. Besides fixing all noticeable memory leaks, the best way to make sure that memory is in a good state is to restart the device. This method is intrusive, not easy to implement on Android and is discouraged. But it turns out that there are a lot of applications on Google Play Store which perform “fast rebooting”. We chose FastReboot, which is lightweight and “simulates a reboot by closing/restarting all core and user processes and thus frees up memory”.

FastReboot Screenshot

Solution

Azure Notification Hub and GCM implementation is not subject of this blog post. If you are not familiar with it, you can find more info here. Keep in mind that Firebase Cloud Messaging (FCM) is now recommended over GCM, so you should use it for new implementations.

For easier understanding the code is simplified (removed try-catch blocks, filtering logic etc.).

Server side logic

We implemented simple Web API method which only job it to invoke the logic (in our case implemented inside worker task):

[HttpGet]
public HttpResponseMessage FastReboot(string upn, string token)
{
    this.SecurePublicMethod(token);

    var connectionString = this.SettingProvider.ServiceBusConnectionString();
    WorkerTaskPump.Send(connectionString, WorkerTaskPump.WorkerTaskQueue, new FastRebootTask(upn));

    return new HttpResponseMessage(HttpStatusCode.Accepted);
}

Depending on your logic, Web API method can accept other parameters. Below is simplified implementation of FastRebootTask: obtaining mobile registration records and sending message to every device. Typically, here you would implement filtering logic, so you could send messages only to specific devices.

[Serializable]
[DataContract]
public class FastRebootTask : WorkerTaskBase
{

    protected override void ExecuteInternal(IKernel kernel)
    {
        var mailboxCenter = kernel.Get();

        var mailboxRegistrationRecords = mailboxCenter.GetMobileDeviceRegistrationsAsync().Result;

        foreach (var mailboxRegistrationRecord in mailboxRegistrationRecords.AsParallel())
        {
            this.SendFastRebootMessage(mailboxRegistrationRecord.Tag, mailboxCenter);
        }
     }

     private string SendFastRebootMessage(string destinationTag, IMailboxCenter mailboxCenter)
     {
         var mailboxMessageId = Guid.NewGuid().ToString("N").Substring(1, 8);
         var fastRebootMessage = new FastRebootMessage(
             mailboxMessageId,
             ServerManager.FastRebootTaskSourceTag,
             destinationTag,
             MailboxMessageStatus.None);

         mailboxCenter.PushAsync(fastRebootMessage);

         return mailboxMessageId;
     }
}

Azure Scheduler

In Azure portal simply create scheduler job which will be invoking your Web API method URL. If you want it to be executed nightly, set recurring job:

FastReboot Screenshot

You could have filtering logic in place, you could create multiple tasks each invoking different set of devices in different times.

Mobile solution

Fast Reboot frees up the memory of all the applications in the background, leaving the one in the foreground working as expected. We wanted to make sure that the memory of our application is cleared as well, so we figured out we should close our application before executing Fast Reboot. Solution could not be straightforward, as killing Android process removes all the intents that process created. But we were able to utilize Android Alarm Manager, which purpose is to schedule some action in some time in future. So we implemented following:

  1. Schedule Fast Reboot intent at Now + 2 seconds
  2. Schedule the application intent in Now + 10 seconds
  3. Kill the application

This way we let Fast Reboot to clean all unnecessary memory left by processes (including the application which is dead by that moment), and then start fresh instance of the application.

protected override async Task ProcessInternalAsync(FastRebootMessage mailboxMessage)
{
      this.ActivityService.LaunchFastReboot();
      this.ActivityService.RelaunchApp();

      return true;
}

public bool LaunchFastReboot()
{
     var alarmManager = (AlarmManager)Application.Context.GetSystemService(Context.AlarmService);
     var intent = Application.Context.PackageManager.GetLaunchIntentForPackage("com.greatbytes.fastreboot");

     if (intent != null)
     {
 var pendingServiceIntent = PendingIntent.GetActivity(Application.Context, 0, intent, PendingIntentFlags.CancelCurrent);
         alarmManager.Set(AlarmType.RtcWakeup, SystemClock.CurrentThreadTimeMillis() + ServiceManager.FastRebootPendingIntentDelay, pendingServiceIntent);
     }

     return intent != null;
 }

 public bool RelaunchApp()
 {
      var alarmManager = (AlarmManager)Application.Context.GetSystemService(Context.AlarmService);

      var intent = Application.Context.PackageManager.GetLaunchIntentForPackage(Application.Context.PackageName);

      if (intent != null)
      {
           intent.AddFlags(ActivityFlags.ClearTask | ActivityFlags.NewTask);
           var pendingIntentId = ServiceManager.RelaunchNimbusPendingIntentId;

           var pendingServiceIntent = PendingIntent.GetActivity(Application.Context, pendingIntentId, intent, PendingIntentFlags.CancelCurrent);
           alarmManager.Set(AlarmType.ElapsedRealtimeWakeup, SystemClock.ElapsedRealtime() + ServiceManager.RelaunchNimbusPendingIntentDelay, pendingServiceIntent);
            Process.KillProcess(Process.MyPid());
      }

      return intent != null;
 }

This solution works in all cases:

  • The application in the foreground
  • The application in the background
  • Device is in sleep mode

The post Remotely controlled nightly memory cleanup on Android devices appeared first on Merit Solutions.


B2B e-commerce: Online buying trends explain what professional buyers demand

$
0
0
The dust has yet to clear from 2016. But if Forrester Research was correct in its forecast, US business-to-business (B2B) e-commerce sales topped $855 billion in 2016, and will exceed $1.1 trillion per year by 2020. Chalk it up in part to ...read more

BDO Canada merges with Etelligent Solutions, expanding BDO's Canadian footprint

$
0
0
Microsoft Gold Certified Partner BDO Canada LLP , a Canadian accounting and advisory firm, has merged with Etelligent Solutions Inc. (ESI), a Canadian consulting firm and Microsoft Gold Partner, effective December 16, 2016 . BDO Canada is a member ...read more

DIXF – AX 2012 R3 – KB3216243 – Assume service is on active SQL Server node

$
0
0

We recently released a DIXF Application Hotfix for AX 2012 R3 that you may want to take a look at if you are running a Clustered configuration / AlwaysOn configuration:

The changes in the hotfix introduce a new option of “Assume service is on active SQL Server node” on the “Data import/export framework parameters” form.

For further details, see the additional content available on LCS, where you can also download the fix.

LCS | AX 2012 R3 Application Hotfix | KB3216243
https://fix.lcs.dynamics.com/issue/results/?q=3216243

This is what the “Data import/export framework parameters” form looks like on a patched environment:

DIXF Parameters

Microsoft to sunset Dynamics Online Payment Services, points customers to ISVs

$
0
0
As of Jan. 1, 2018, Payments Services available with any versions of Microsoft Dynamics AX, NAV, GP, RMS, Dynamics POS 2009, and Microsoft Office Accounting, will be discontinued. After Dec. 31, 2017, customers of the Payment Services will ...read more

All About FEFO in Dynamics 365

$
0
0
Many are familiar with the term, FIFO, or first in, first out. First Expired, First Out, or FEFO, is an inventory management and logistics methodology used when stocked products expire. The intent is to...(read more)
Viewing all 10657 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>