Override method "Clicked" is not in button methods.....these problem i face ax2012 that time i change the display target property to client .....now d365 this property is here...? please clarify my question
Override method "Clicked" is not in button methods
Could not able to access the global variable in the event handler class using reflections in ax 7
Hello!,
I couldn't able to access the global variable in the post event handler class using reflections concept in D365.
Please see the following image for further reference,
Hence I am getting an exception,
However the same process is working fine in platform update 7.
I am currently working on platform Update 10 and its not working for me in platform Update 10.
Please suggest any solutions.
Thanks,
Open model file (.axModel) with notepad is not showing information related to objects
I wanted to check how the AX objects are organised in the model file. If i open the model file with notepad i cannot see any information regards to AOT object particularly present in that model.
If i open xpo with notepad I can see all the information related to objects. is there any way I can preview the objects information while opening with system installed programs ?
I have gone through the below link but I don't want to convert to XPO from model file.
Get AX Customers and Items using ASP.NET
I am making creating a web application and I need AX Customers and Items on my ASP.NET application. The user will select the customer and item from that web application and all that data will be stored in my web app's database.
How to achieve this functionality?
High bandwidth generated by developement VM
My network admin asked me why our developement vm (D365 Update 3) is pulling so much data from the Internet. We have 5 developement VMs that pulled 232GB in the last 7 days from table.(random letters).store.core.windows.net. I have no idea what is doing that. Anyone know why a Dev VM needs to contact *.store.core.windows.net? Beside the authentication, I thought Dev VM were autonomous.
Fow now this address has been block for my VM to figure what stops working because of that.
Ledger Journal using C#
Hello,
Please help, I'm taking my first steps in AX integration with C #. I have associated in my C # project an event handler of class X ++ MyClase which is invoked by the insert () method of MyTabla.
but when I enter a record in MyTabla only the code that launches the message but not everything else is executed:
I try to generate a post in AX after a record is inserted in MyTabla.
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AXLocalizationBL { public class PostEventHandler { // Do not change the name of the event handler method. If you rename the method, the event handler will not work. [Microsoft.Dynamics.AX.ManagedInterop.XppClassDefiningEventAttribute(@"\Classes\MyClass")] static public void PostReturnId(XppPrePostArgs args) { string a; Global.info("registro #: " + args.getArg("id")); try { LedgerGeneralJournalServiceAx2012.AxdLedgerGeneralJournal dia = new LedgerGeneralJournalServiceAx2012.AxdLedgerGeneralJournal(); LedgerGeneralJournalServiceAx2012.BasicHttpBinding_GeneralJournalService service = new LedgerGeneralJournalServiceAx2012.BasicHttpBinding_GeneralJournalService(); dia.LedgerJournalTable = new LedgerGeneralJournalServiceAx2012.AxdEntity_LedgerJournalTable[1]; dia.LedgerJournalTable[0] = new LedgerGeneralJournalServiceAx2012.AxdEntity_LedgerJournalTable(); dia.LedgerJournalTable[0].JournalName = "CONTA"; dia.LedgerJournalTable[0].Name = "prueba AIF"; dia.LedgerJournalTable[0].WorkflowApprovalStatus = LedgerGeneralJournalServiceAx2012.AxdEnum_LedgerJournalWFApprovalStatus.NotSubmitted; dia.LedgerJournalTable[0].LedgerJournalTrans = new LedgerGeneralJournalServiceAx2012.AxdEntity_LedgerJournalTrans[1]; dia.LedgerJournalTable[0].LedgerJournalTrans[0] = new LedgerGeneralJournalServiceAx2012.AxdEntity_LedgerJournalTrans(); dia.LedgerJournalTable[0].LedgerJournalTrans[0].Company = "sq"; dia.LedgerJournalTable[0].LedgerJournalTrans[0].AccountType = LedgerGeneralJournalServiceAx2012.AxdEnum_LedgerJournalACType.Ledger; dia.LedgerJournalTable[0].LedgerJournalTrans[0].AccountTypeSpecified = true; /* LedgerGeneralJournalServiceAx2012.AxdType_MultiTypeAccount account = new LedgerGeneralJournalServiceAx2012.AxdType_MultiTypeAccount(); account.Account = "42121"; LedgerGeneralJournalServiceAx2012.AxdType_DimensionAttributeValue dimVal1 = new LedgerGeneralJournalServiceAx2012.AxdType_DimensionAttributeValue(); dimVal1.Name = "MainAccount"; dimVal1.Value = "5637146594"; LedgerGeneralJournalServiceAx2012.AxdType_DimensionAttributeValue dimVal2 = new LedgerGeneralJournalServiceAx2012.AxdType_DimensionAttributeValue(); dimVal1.Name = "CostCenter"; dimVal1.Value = "5637177592"; account.Values = new LedgerGeneralJournalServiceAx2012.AxdType_DimensionAttributeValue[1] { dimVal1 }; dia.LedgerJournalTable[0].LedgerJournalTrans[0].LedgerDimension = account; */ dia.LedgerJournalTable[0].LedgerJournalTrans[0].LedgerDimension.DisplayValue = "42121-002"; dia.LedgerJournalTable[0].LedgerJournalTrans[0].AmountCurCredit = Convert.ToDecimal(1200.50); dia.LedgerJournalTable[0].LedgerJournalTrans[0].AmountCurCreditSpecified = true; dia.LedgerJournalTable[0].LedgerJournalTrans[0].TransDate = Convert.ToDateTime ("12/31/2015"); dia.LedgerJournalTable[0].LedgerJournalTrans[0].OffsetAccountType = LedgerGeneralJournalServiceAx2012.AxdEnum_LedgerJournalACType.Ledger; dia.LedgerJournalTable[0].LedgerJournalTrans[0].OffsetAccountTypeSpecified = true; dia.LedgerJournalTable[0].LedgerJournalTrans[0].OffsetLedgerDimension.DisplayValue = "99999"; //dia.LedgerJournalTable[0].LedgerJournalTrans[1] = new LedgerGeneralJournalServiceAx2012.AxdEntity_LedgerJournalTrans(); //dia.LedgerJournalTable[0].LedgerJournalTrans[1].Company = "sq"; //dia.LedgerJournalTable[0].LedgerJournalTrans[1].AccountType = LedgerGeneralJournalServiceAx2012.AxdEnum_LedgerJournalACType.Ledger; //dia.LedgerJournalTable[0].LedgerJournalTrans[0].LedgerDimension.DisplayValue = "99999"; //dia.LedgerJournalTable[0].LedgerJournalTrans[0].AmountCurDebit = Convert.ToDecimal(1200.50); service.Credentials = new System.Net.NetworkCredential("Administrador", "#Gnp2016Mmxvi#", "novatech"); service.create(dia); } catch(System.Web.Services.Protocols.SoapException ex) { a = ex.Message; } catch(System.Exception ex) { a = ex.Message; } } } }
Thanks for the help!
Run X++ static method in CIL using runClassMethodIL
.NET framework 4.0 in AX 2009
Hi Friends,
We know AX 2009 is installed with .Net Framework 3.5. What if we want to use 4.0 and later.
We can install it side by side, but, how do you make sure AX code use 4.0 method.
Thanks,
River
Microsoft Dynamics 365 AX (ERP) for a small business (Restaurant). Can it be possible?
Dear Dynamics community,
i'm just a regular restaurant owner on Brazil, and i'm searching for a solution to make my life as administrator of my business more easy, and save more threes (lol)!..
What i'm facing is: I can afford the software, but i cant afford the implementation (third-party services).
Can someone give me a light?
Can a small business owner, with a lot of willpower, but without too much Money to spend (we are facing the biggest economical crysis on our country, but offcourse i can spend some Money on it) have a decente solution for his businesss ? :P
The biggest challenge for a restaurant its the POS, the dynamic of the business are diferente cause we have to sell and produce at same time, on my country we have a lot of softwares but it lacks on the management in general, no banking account integration etc), and we face the brazilian laws (you cant develop a software by yourself because it needs homologation and for it you have to be into some business).
I'm really confused, why people are using (on my country at least) high-end technology for personal use (like cellphones and stuff), and not thinking on it to use on business on a effective way ? even software companys aren't thinking too much for small business ;
We need technology too!
am i thinking too big?
(my degre are on business administration, i have some knowledge on computers in general. I started to search for a solution on 2010, when i was on high school, them my dad died from câncer on 2013 and i had to quit high school and take the front of the business. have researched open-erp on time, open bravo, some other solutions in general. )
Thank you guys, i'm sorry if here isnt the right place to discuss some more philosophic aspects of the erp use; but i guess that we need to think ahead!
ClrObject static method invocation error
Hi DAX,
I can Post Journal Lines in General Journal it can show an error "ClrObject static method invocation error"
Can Any one suggest
Regards,
Prasad
Automated customized deployment possibilities?
Hi All:
I have a quick question.
I am currently developing a form with some new AX functionality. The form uses a new customized table that I have created. I also have a custom report.
Is it possible for me to compile the customized project to some form of deployment package so that I can sell it to potential customers who can then run the install program of the customized solution and it automatically creates the AX tables, copies the forms and reports etc?
Steve
how to calculate how many Saturday && Sunday in a particular date range
hi all how we can calculate how many Saturdays && Sundays in particular date range
i am giving below date range
From date=09/01/2017(mm-dd-yyyy)
To date=09/30/2017(mm-dd-yyyy)
how we can count total number of Saturdays && Sundays
Thanks in advance
Find the Batch User
How to find the Batch user for Dynamics 365 for Operations?
state machines node in table in D3FO
Dear All,'
Can you please let me know what is the use of "state machines" in table in D3FO?
Please give me an example with scenario.
Please give me more shed on this.
Thanks!
Arpan Sen
Label ID Language issue in Dynamics 365 for Operations
I have created some Labels. It has English description as well as Japanese description also.
Now i changed the japanese language for the user who is going to run the process,
Now if we the run the class to insert the data into our journal form, all our messages are inserted into the customized table as japanese text based on our user language setup. This is correct.
But the issue is, when we run the same process using Batch, the text are inserted into the english description only.
It will not translate the description based on our language setup for the corresponding user.
How to execute code before command button (OK) press?
Hi,
how can I execute my own code using extensions before a form command button press, if the command button does not have the clicked-method overridden/available in standard code?
I need to insert a couple of records into my own table before executing the OK in form.SalesQuotationEditLines.
If I subsrcibe to the OK_OnClicked event of the button, the actual OK action is done and my records are inserted after the button's super() call if I'm not mistaken. And there's not a pre event for the button.
Consume SOAP/Rest Odata endpoint from logic apps
I am trying to call a SOAP or REST endpoint for my demo environment. According to some msdn demonstrative documents, this should be possible.
I am using the default HTTP connector with the following parameters:
Method: POST
Authentication: AD OAuth
Authority: https://login.windows.net/
Tenant: [tenant guid]
Audience: https://management.core.windows.net/
Client Id: [client id guid]
Secret: [secret guid]
The error I receive is as shown below:
{
"statusCode": 401,
"headers": {
"ms-dyn-fqhn": "demo-0-a16326fa-42f8-4ee4-b19b-a6fc657b0a1c",
"ms-dyn-namespace": "DynAXProd",
"ms-dyn-tenant": "default-lcs-a16326fa-42f8-4ee4-b19b-a6fc657b0a1c",
"ms-dyn-role": "demo",
"ms-dyn-aid": "9f1561ee-0ab3-0007-96cb-159fb30ad301",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "SAMEORIGIN",
"Date": "Tue, 08 Aug 2017 18:43:53 GMT",
"P3P": "CP=\"No P3P policy defined. Read the Microsoft privacy statement at go.microsoft.com/fwlink\"",
"Server": "Microsoft-IIS/8.5",
"WWW-Authenticate": "authorization_uri=\"login.windows.net/.../authorize\"",
"X-Powered-By": "ASP.NET",
"Content-Length": "0"
}
}
App registrations and api permissions have been setup correctly. Is there anything I might be missing?
OData Integration Services
Hi Friends,
I am trying to consume the new Dynamics AX7 OData endpoint from a .Net console applications, I can see that the authentication is going fine but whenever I try to get the results on my application it ends with an Unauthorized error. Any idea on what could be the cause or hos to get a more detailed information (logs)?
This is the code that throws the error at line,
static void Main(string[] args)
{
Uri oDataUri = new Uri(ODataEntityPath, UriKind.Absolute);
var context = new Resources(oDataUri);
context.SendingRequest2 += new EventHandler<SendingRequest2EventArgs>(delegate (object sender, SendingRequest2EventArgs e)
{
var authenticationHeader = OAuthHelper.GetAuthenticationHeader();
e.RequestMessage.SetHeader(OAuthHelper.OAuthHeader,
authenticationHeader);
});
foreach (var legalEntity in context.LegalEntities.AsEnumerable())
{
Console.WriteLine("Name:{0}", legalEntity.Name);
}
Expection occurs like :
An unhandled exception of type
'Microsoft.OData.Client.DataServiceQueryException' occurred in
Microsoft.OData.Client.dll
Additional information: An error occurred while processing this request.
My Cilent Configuration is like :
public static CilentConfiguration OneBox = new CilentConfiguration()
{
UriString = "usnconeboxax1aos.cloud.onebox.dynamics.com",
UserName = "***",
Password = "pass***",
ActiveDirectoryResource =
"usnconeboxax1aos.cloud.onebox.dynamics.com",
ActiveDirectoryTenant =
"login.windows.net/.../authorize",
ActiveDirectoryClientAppId = "cb5c660e-ad09-4895-90a0-778786cdf956",
ActiveDirectoryClientAppSecret =
"lMLjJm0tCgUGvUs6LJtzWscKTpJZBMgkCng7es2BDkY=",
and my error page is ,
I dont know where error ocuurs, can anyone suggest me an answer.
Thanks & regards,
padmapriya
TFS requirements for AX 2012 R3 CU11
Is there a white paper on the requirements for TFS along with team explorer on AX 2012 R3 CU11? I don't want to be above the recommendations.
Dynamics 365 for operations on-premise download
Hi All,
Dynamics 365 for operations on premise is released or not ?
If released can any body share me the link to download.
Thanks,
Krishna