Skip to main content

Posts

Showing posts from September, 2018

Difference between 2 utc datetime ax 2012 x++

Hi, In this post I am going to show the difference between 2  utc datetime and it will return the Days,Hours,Minute,Second in Microsoft Dynamics AX 2012.  utcDatetime PreparedOn ;  utcDatetime DispensedOn ;  str diffTime ;  int time; if(DispensedOn !=utcdatetimenull() && PreparedOn!=utcdatetimenull())  {      time           = DateTimeUtil :: getDifference(DispensedOn,PreparedOn);      diffTime    = strFmt('%1d:%2h:%3m:%4S',(time div 86400),((time Mod 86400) div 3600),((time Mod 3600) div 60),((time Mod 3600) Mod 60));   }

grid sort by descending order ax 2012 X++

You can add this code in the init method of the datasource : super() this.query().dataSourceTable(tableNum(InventTable)).addSortField(fieldNum(InventTable, RecId),SortOrder::Descending);

AX 2012 Table all fields and Label in lookup field

I have a requirement to pull all the field of Inventtable and store in table to show in Lookup field.First of all we will create a table ( TableFieldLookupTmp ) that will store all the fields detail of InventTable ? Lookup Code: public void lookup() {     SysTableLookup                SysTableLookup;     TableFieldLookupTmp    TableFieldLookupTmp ;     QueryBuildDataSource       queryBuildDataSource;     QueryBuildRange               queryBuildRange;     Query query                     = new Query();     tableName                        tableName = 'Inventtable';     int                                    tmpTableid = tablename2id(tableName),i;     DictField                           dictField;     DictTable dictTable            = new DictTable(tableName2id(tableName));     if(!(select TableFieldLookupTmp where TableFieldLookupTmp.TablenumId == tmpTableid).recid)     {         ttsBegin;         if (dictTable)         {             for (i=1; i<=dictT

4 Reasons to migrate from NAV to Dynamics 365

4 Reasons to migrate from NAV to Dynamics 365? Dynamics Navision and AX are both used around the world. Both were developed by Danish companies, Navision and Damgaard (Axapta). The companies merged 2000 and were sold to Microsoft 2002. Microsoft rebranded both ERP systems: Axapta became Dynamics AX, Navision became Dynamics NAV. Both systems are quite successful. Dynamics 365 for Financials and Dynamics NAV are business management ERP for small and midsized organizations that automate and streamline business processes and help you deal your business. Microsoft Dynamics NAV and Dynamics 365 for Financials are very similar products. These two solutions are not really competitors. They target different markets and cover different needs. Dynamics 365 Financials is a complete cloud SAAS solution based on the NAV platform. Therefore, two ERP systems have more things in common than things that set them apart. Deployment Most likely the biggest difference between the two sol

Top 10 Myths about Dynamics 365

Myth 1: Microsoft Dynamics MICROSOFT DYNAMICS CRM is slow. Microsoft has committed a great deal into its server farms and into the technology supporting the environments. Users will find an immediate response time with MICROSOFT DYNAMICS CRM whether in their browser, mobile app, or outlook. Speed is only subject to the user's local internet bandwidth and computer specifications. Myth 2: A company cannot have separate environments with MICROSOFT DYNAMICS CRM. MICROSOFT DYNAMICS CRM can be deployed online just as it is on-premise. For instance, organizations can have development, staging/testing, and production environments. Microsoft includes additional environments at different tiers based on the number of user licenses. The first tier starts at 25 users in which a development environment is included at no additional cost. There are capabilities to copy configurations from one environment to another enabling classical developmental methodologies. Myth 3: Data is not se

Dynamics 365 Enterprise Field Service

What is Field Service and why people use? What is Field Service? Microsoft Dynamics 365 Field Service is a component used to manage a workforce while delivering products services to customer locations in well-timed, all from within Microsoft Dynamics 365 environment.  It accommodate to changing needs as your organization extend and to new markets and geographies and could add more workflows and detailed scopes to your services.  A large number of factors that are constantly changing make Field Service management a real challenging task.  Every job assignment decision must consider all the factors to make sure you get the right person with the right resource at the right time.  Some of the factors may include field resource, current location, customer availability, parts, job duration, the promise date and a time window, and the Service Legal Agreement among many others.  The goal is to pick the right person with the right skills in the right place at the right time.  The way Micr

Web Api function in CRM 2016 C#

This is webapi C#    public class EntityRepository : Repository where T : Crmbaseentity     {         public async Task Add(T entity, string EntityName)         {             using (HttpClient client = new HttpClient(new HttpClientHandler() { Credentials = new NetworkCredential(this.UserName, this.Password, this.Domain) }))             {                 HttpResponseMessage response = await HttpClientExtensions.SendAsJsonAsync (client, HttpMethod.Post, this.CrmHost + EntityName, entity);                 if (response.IsSuccessStatusCode)                     return true;                 else                     return false;             }         }         public async Task Get(string EntityGuid, string EntityName)         {             T item = null;             using (var client = new HttpClient(new HttpClientHandler() { Credentials = new NetworkCredential(this.UserName, this.Password, this.Domain) }))             {                 client.BaseAddress = new Uri(this.CrmHost);