I want to add restriction on journals names of movement journals for "ABC'' site to provide access permission on movement journal.I need to create a set of privilege/role by which; the user will only be able to create movement journal along with lines for "ABC " site and only that reason code whose check is marked will be visible for "ABC" site on movement journal form.How to do this in X++?Someone please guide me.For further clarification,screen shots are attached with.
Movement Journals for Specific Site
RE: Use Accrued sales tax on receipt for posting product receipt
Hi,
Unfortunately, we cannot see your screenprints.
Can you try uploading them again through the 'use rich formatting' button right below this textbox?
About accrued sales tax:
There is an inventory parameter available in the inventory accounting tab 'post physical sales tax'. Please make sure that this parameter is enabled.
Many thanks and best regards,
Ludwig
RE: Dialog Parameter box visibility while running a SSRS report through controller class
Hi,
1.Go to development IDE, Tools/Caches/refresh data dictionary and refresh elements. Try running the report, if didn't work. go to next step
2. Delete AUC files
community.dynamics.com/.../how-to-delete-auc-files
Best,
Uday.
RE: When we need to add Partition and DataAreaId fields to index?
Thanks Sefa for your answer but still I'm doubting if it necessary add this field because when I execute queries with sql tools improve is worst with this new fields.
I'll try to install a tool to analize queries perfoms
RE: Movement Journals for Specific Site
A simple check in the validateWrite() / validateField() methods will do the Job.
If you look at These methods in some Standard tables, you will already find all the Information/help you will Need.
Using Newtonsoft.JSon in a class that runs on server
Hello!
I am trying use Newtonsoft.Json and the JsonReader class taken from axgrind.azurewebsites.net/.../AX-2009-and-JSON-Parsing to process a json string. I copied the Newtonsoft.Json.dll into C:\Program Files (x86)\Microsoft Dynamics AX\50\Client\Bin\, and added a reference in AOT to this DLL. To be able to run my class on server side I also copied the DLL in C:\Program Files\Microsoft Dynamics AX\50\Server\ApplName\Bin\ on AOS server too. Now my class runs fine if its RunOn is set to Client, but fails with Server or Called from settings with the following error:
Request for the permission of type 'InteropPermission' failed.
(S)\Classes\InteropPermission\demand
(S)\Classes\CLRInterop\staticInvoke
(S)\Classes\JsonReader\loadJson - line 3
(S)\Classes\JsonReader\parseJson - line 6
(S)\Classes\XMI_JSonTest\run - line 21
(C)\Classes\XMI_JSonTest\main - line 7
The JSonReader class' RunOn is set to CalledFrom.
The code that fails:
void run()
{
JsonReader reader;
Newtonsoft.Json.Linq.JObject token;
str json, sKey, sName;
int i;
;
json = '{"key":86934,' +
'"name":"Data",' +
'"folders":[{"key":90296,"name":"Folder 1"},' +
'{"key":90294,"name":"Folder 2"},' +
'{"key":90295,"name":"Folder 3"},' +
'{"key":90292,"name":"Folder 4"},' +
'{"key":90293,"name":"Folder 5"},' +
'{"key":90297,"name":"Folder 6"}' +
']' +
'}';
new InteropPermission(InteropKind::ClrInterop);
reader = jsonreader::parseJson( json );
...
CodeAccessPermission::revertAssert();
}
The code stops executing at line
reader = jsonreader::parseJson( json );
public static JsonReader parseJson(str _json)
{
JsonReader reader = new JsonReader();
;
reader.loadJson(_json);
return reader;
}
public void loadJson(str _json)
{
jObject = Newtonsoft.Json.Linq.JObject::Parse(_json);
}
What am I doing wrong?
Thank you!
RE: How to create or update email template placeholders runtime using x++
Please do not post your email address or ask others to post their email in the forums because the community is public and could be picked up by spambots. Instead, send a friend request or a private message to members that you would like to connect with.
How to create or update email template placeholders runtime using x++
Dear Guys,
I am facing difficulty to create placeholders runtime using x++.
My requirement is to send an email using email template where I want to keep placeholders but here no of placeholders is not fixed i.e can varies,so I want to create placeholders runtime using x++.
Requesting you all for any suggestions..
Thanks,
Async error
RE: Account type Error
Hi Ludwig,
Thank you for your reply. I did some research and I found next post:
stoneridgesoftware.com/i-cant-delete-an-account-in-my-dynamics-ax-chart-of-accounts
It worked for me, I already changed the Account Type.
Best regards.
Jorge.
Account type Error
Hi,
I created a new main account in AX 2012 CU12 R3.
I made a mistake, I selected Profit and loss as Main Account type, I want to change it to Total but I'm getting an error, I'm trying to delete the account but I'm getting an error too for the same reason.
It is a new account and it doesn´t have transactions yet.
Any idea?
RE: Using Newtonsoft.JSon in a class that runs on server
RE: Movement Journals for Specific Site
Hi Faran Baig!
Did you try to use RLS (Record Level Security) ?
RE: The SQL Server Reporting Services server name ***** does not exist or the Web service URL is not valid.
The PowerShell tool is using the registry setting of the AX configuration, which is the currently selected config in your AX client configuration utility. Make sure you are pointing that to the correct AX AOS instance, port, and WSDL is refreshed in the AX config.
Also verify that Windows Firewall is not blocking any communication by temporarily suspending in on both the transmitter and receiver ends (AOS, SQL, SSRS).
RE: AX 2012 FP is .NET Framework 4.6 allowed on AOS server?
The AX AOS/client executables and the libraries used are built for specific .Net versions. Newer .Net framework should keep backwards compatibility in most of the cases for the point releases, but it may still cause problems.
That is why Microsoft goes though (or should go through) regression testing cycles to provide compatibility certificates for various products, frameworks, OS versions and so on.
docs.microsoft.com/.../version-compatibility
To answer your question, since FPK/RTM/R2 are already out of support, it is unlikely to get an official statement from Microsoft whether it works or not, other than what you have in the documentation.
It might cause problems with certain DLLs, but others might work without any issues, hard to tell.
The only way to know for sure is to take a snapshot of your AOS, patch it up, and do a full test cycle for your business functionality and reporting to see if everything works. If not, roll back the snapshot.
Other than that it is generally a bad idea to install anything else next to the AOS service, I like to keep it clean.
AX 2012 FP is .NET Framework 4.6 allowed on AOS server?
Hi,
The system requirements for AX 2012 say the following about the .NET framework:
.NET Framework 4.7 .NET Framework 4.7.
Supported, but not required, with AX 2012 R2 cumulative update 9 andAX 2012 R3 cumulative update 12.
.NET Framework 4.6 .NET Framework 4.6.
Supported, but not required, with AX 2012 R2 cumulative update 8 andAX 2012 R3 cumulative update 9.
.NET Framework 4.5
Required with AX 2012 R3.
Supported, but not required, with earlier releases of AX 2012.
.NET Framework 4.0 Required with AX 2012 R2.
Supported, but not required, with earlier releases of AX 2012.
.NET Framework 3.5 with Service Pack 1
Required for most components, including the Setup wizard, with the
original release of AX 2012. For those components that require a later
version of .NET Framework, it is listed as an additional requirement in
this document.
I'm a but confused what it means to be "supported but not required".
In my case, I want to install .NET framework 4.6 (because an other application requires it) on an AX 2012 FP AOS server, but the system requirements don't mention AX 2012 for this framework version. Can it hurt to install .NET Framework 4.6?
Thanks,
Klaas.
RE: Enable of RIGHTS button on personification in AX 2012
It seems to be a customization on your environment, so the best way to figure out what action to take is to check your code. (Maybe personalization of the personalization form could be checked to see what class/form is the caller? I've never tried it)
Enable of RIGHTS button on personification in AX 2012
RE: Report throws error for non-Admin users
No that seems to be a different product (CRM maybe?).
Security works the same way as before, you can find details about this on financial reports as an example:
Also you may find reporting-related errors within the event log (of your Sandbox/Test environment):
http://d365technext.blogspot.com/2018/07/ssrs-reports-errors-d365fo.html
Report throws error for non-Admin users
Good morning,
I want to know whether Microsoft D365 for Finance and Operations checks for authorization on SSRS reports.
I have a custom report that's been ran from the a button click. This report only runs for the Administrator user while it throws a "Something went wrong when running the report".
Please what can be done for non Admin users.