Microsoft Dynamics AX is one of Microsoft’s Enterprise Resource Planning software products. It is part of the Microsoft Dynamics family. The early versions (from 1.0 to 3.0) were called Axapta, while the later versions (from 3.0 SP6 to AX 2012) are called Dynamics AX. This tag refers to the successor of AX 2012, also known as Dynamics 365 for Finance and Operations. AX 7 comes from the product version number which is '7.X'
Questions tagged [dynamics-ax7]
64 questions
1
vote
1 answer
Build Agent gets "Access Denied" when building modules in AX 7
I'm working on a Dynamics AX 7 Training VM. My boss asked me to write a documentation about the versioning in AX 7. I tested Git and now, I'm testing Visual Studio Online using Team Foundation as version controller.
So, I am able to set up a Build…

Rokkart
- 21
- 4
1
vote
2 answers
Writing event handlers in extensions in AX7
I am working in Dynamics AX7 form development. I have to write code in 'Clicked' method of a button, but there is already some 'Sys Layer' code in 'Clicked' method. I have to apply some conditions on it. But I don't want to do 'over-layering', i…

Shahrukh Naeem
- 61
- 1
- 10
1
vote
1 answer
How to clear the text of a string control in AX7 while user has focus on it?
In AX7, I have a FormStringControl and I want to clear the text-contents while the user has focus on it. I overrode the textChange() method, and in AX2012, this would work, but it does not in AX7:
public void textChange()
{
this.text("");
…

Alex Kwitny
- 11,211
- 2
- 49
- 71
1
vote
0 answers
How to change formatting rules for X++ in Visual Studio
Visual Studio has the nice feature to autoformat your code.
Edit -> Advanced -> Format Document
Or you can use the according shortcut.
I would like to change some of the formatting settings for my language, which is X++ for Dynamics AX.
When I open…

elToro
- 1,003
- 9
- 31
0
votes
0 answers
User is not authorized to read view FreeTextInvoiceHeaderEntity. Request denied
I've created this custom role for my user see he can see only the FreeTextInvoice
When he loged in, he see the below:
And the below screen as read only:
I'm trying to see the…

Hasan A Yousef
- 22,789
- 24
- 132
- 203
0
votes
1 answer
Write validation failed for table row of type 'PurchPurchaseOrderLineEntity'
I'm trying to post the the purchase order line details from postman using odata and I'm getting the following error.
{
"error": {
"code": "",
"message": "An error has occurred.",
"innererror": {
"message": "Write validation…

mambo chaminuka
- 51
- 10
0
votes
1 answer
Dynamics 365 Finance can't close current form x++
In the init method of an intermediate form I'm trying to open a new form and close current one. Below code opens the second form however with an error message "cannot call close without detach or wait" although I tried adding element.detach() but…

piku
- 471
- 4
- 12
- 44
0
votes
0 answers
Get latest information from inventdim having transactionid D365
can someone show me a easy way to get information from inventdim? I need to get batchid/ siteid/locationid for a project transaction. D365FO
I tried this select but I don't think its accurate enough
while select InventTransOrigin join salesline…

Tweene
- 257
- 4
- 16
0
votes
1 answer
Report don't display any data
I'm working on D365FO. I did create a report added a query to dataset that is based on a tmp table.
Now when I try to generate the report I get just the precisiondesign. No data is shown in it. How can I fix this ?
I think this is problem is…

Tweene
- 257
- 4
- 16
0
votes
1 answer
insert fixed freight charges to sales order lines in x++ Dynamics 365 fin & ops
I am new in X++ development, i want to insert freight charges against sales order lines instead of sales order header. I have used SalesOrderLineChargeEntity but it is not saving record instead it is throwing error.
private void addCharges()
{
…

Sandy
- 57
- 1
- 17
0
votes
0 answers
ODBC connection in AX7 (D365)
I am creating an ODBC connection to Import data from SQL (SSMS) to D365FO.
I have created a Test database and created an ODBC Data Source for it (DSN: TestDS, Server: local, Default database: TestDB).
Running SQL Server ODBC Data Source Test works…

Effy Sille
- 179
- 1
- 12
0
votes
0 answers
How can I get all DataEntity data from Dynamics AX(Finance and Operations)?
I tried the X++, but it seems that X++ can only query the Entity from the reference packages. If I created another package with custom Entity, I have to append new reference in the X++ code package. It has a lot of manual actions.
I also tried the…

Zonas Sun
- 51
- 5
0
votes
1 answer
Indexes in axapta
Hiii,
I am new to axapta
I have a table in which I want two fields together should act as a primary key. Is this possible or not
If not is there any alternate way to achieve.

Vamshi
- 11
- 2
0
votes
1 answer
Dynamics 365 for Operation Could VM accessibility
Using Dynamics 365 for Operation Could VM (deployed in scope of the LCS subscription), there is a requirement to access the SQL DB directly using ODBC connection from excel. Customer is not happy with implementation via Odata or custom…

Victoria Polupan
- 31
- 1
- 5
0
votes
1 answer
How to get AOT objects (tables for example) belongs to a model in ax7?
Assume I need to get AOT objects belongs to a model
For example table objects
I need Tables and Table Extensions
Result objects can be treeNode or DictTable
Question: How to get AOT objects from model in...
X++?
T-SQL?
C# code?
Thanks.
For…

mazzy
- 1,025
- 1
- 13
- 26