Latest Microsoft Dynamics 365 Blogs | CloudFronts - Page 170

Creating Sales Order with address in AX 2012 R2 via AIF through .Net

Posted On May 28, 2015 by Posted in

Creating Sales Order with address information in AX 2012R2CU7 via AIF through .Net Code Please see the below .net code static void Main(string[] args)         {             // Instantiate an instance of the service client class.             SalesOrderServiceClient proxy = new SalesOrderServiceClient();               // Create an instance of the document class.             AxdSalesOrder salesOrder = new AxdSalesOrder();               // Create instances of the entities that are used in the service and             // set the needed fields on those entities.             AxdEntity_SalesTable salesTable = new AxdEntity_SalesTable();             salesTable.CurrencyCode = “USD”;             salesTable.CustAccount = “C846456”;             salesTable.ReceiptDateRequested = Convert.ToDateTime(“4/21/2015”);             salesTable.Payment = “PP”;             AxdEntityKey_LogisticsPostalAddress LPA = new AxdEntityKey_LogisticsPostalAddress();             LPA.Location_LocationId = “5637282089”;               AxdExtType_EffectiveDateTime date = new AxdExtType_EffectiveDateTime();             date.timezone = AxdEnum_Timezone.GMT_COORDINATEDUNIVERSALTIME;             DateTime dateValue = new DateTime(2015, 4, 29, 14, 10, 53, 001, DateTimeKind.Utc);               date.timezoneSpecified = false;             date.localDateTimeSpecified = false;             date.Value = dateValue;              LPA.ValidFrom = date;              salesTable.DeliveryPostalAddress = LPA;               AxdEntity_SalesLine salesLine = new AxdEntity_SalesLine();             salesLine.ItemId = “10-009”;             salesLine.SalesQty = 9;             salesLine.SalesUnit = “ea”;               CallContext callContext = new CallContext();             callContext.Language = “en-us”;             callContext.Company = “KTEC”;             salesTable.SalesLine = new AxdEntity_SalesLine[1] { salesLine };             salesOrder.SalesTable = new AxdEntity_SalesTable[1] { salesTable };               try             {                 // Call the create method on the service passing in the document.                 EntityKey[] returnedSalesOrderEntityKey = proxy.create(callContext,salesOrder);                   // The create method returns an EntityKey which contains the ID of the sales order.                 EntityKey returnedSalesOrder = (EntityKey)returnedSalesOrderEntityKey.GetValue(0);                 Console.WriteLine(“The sales order created has a Sales ID of ” + returnedSalesOrder.KeyData[0].Value);                 Console.ReadLine();             }             catch (Exception e)             {                 Console.WriteLine(e.ToString());                 Console.ReadLine();             }         } Error Details in AX exceptionlog : “The value in field DeliveryPostalAddress is invalid.”

Share Story :

What’s New in Power BI?

Posted On May 28, 2015 by Posted in

Key Technologies: Microsoft Business Intelligence, Power BI Note: This article assumes experience on Power BI for Office 365 using Excel 2013 and the Microsoft BI stack Power BI transforms data into rich visualizations independent of Office 365 and SharePoint Online. Newly available features: Powerful Dashboards using HTML5 without the need to install Silverlight New Visualizations =:Combo Charts =:Filled maps =:Radial gauges Support for popular SaaS Microsoft Dynamics CRM Online Salesforce Zendesk Marketo SendGrid GitHub Connectivity to on premise SQL Server Analysis services tabular models Available for iPhone, iPad & Windows tablet Q&A using Natural Language Processing Power BI Designer Tool Power BI Designer puts visual analytics at your fingertips with intuitive report authoring Drag-and-drop to place content exactly where you want it on the flexible and fluid Designer canvas Quickly discover patterns as you explore a single unified view of linked, interactive visualizations Includes data import using “Get Data”, Data modelling using “Manage” and creating reports using “Report” With “Get Data” option we can import data from different sources such as databases, web pages, data files like text, csv, xml, etc. Click on “Manage” to create relationships between different tables Create reports using different visualizations available Save the file and upload it to www.powerbi.com

Share Story :

SEARCH BLOGS:

FOLLOW CLOUDFRONTS BLOG :


Secured By miniOrange