Error executing code: Wrong argument type for function.
OnInitValue datasource eventHandler don't work
Hi i create an event Handler in form DataSource and past the OnInitValue Event and implement my code
this method don't work also in debug mode
AX 365 For Operations
Encryption & digitally signing text files in D365FO hosted on cloud and sending via SFTP
Hello everyone,
We have a problem statement of sending encrypted files & digitally signed with pgp keys files to SFTP from Dynamics 365 for operations . We don't have any on premise server and entirely hosted on cloud . Now we are trying to encrypt files using PGP keys but not able to as that software or signing is hosted on Dev VM now but not be available during Production.
Here is my analysis :
1. Using GPA interface where in manually we need to select a file and use the option sign and encrypt. So this option will not work for us as all the files will be moved to SFTP automatically where no manual intervention applied.
2. Create a Bat file and use the command prompt manually to execute the Bat for the particular file. This option also can’t be achieved if we don’t have on premise server as we need to place this Bat file to execute it.
Can someone suggest how to proceed on encryption and signing the files with pgp keys for payload security .
Regards,
Smit Patel
Packaging Solution with the command prompt
I have been using Visual Studio in order to create the deployment package of my solution. I open Visual Studio then select Dynamics 365 > Deploy > Create Deploy Package. Afterwards I select the Application Suite and select where to place the deployment package. Clicking create then creates the package for me. (This is the standard way to do this).
I was wondering if there was a way to execute this process through the command line? Or is there a way to get the final deploy package through the command line?
Ultimately I want to automate this process in an ant script.
Field not appearing in field picker when accessing a table via the Excel Add-in
I have searched the Internet in an attempt to not have to post this, but none of the solutions I have seen have worked, so I am wondering if anyone has any other suggestions.
I have a custom table with two fields. Both fields are 64 bit integer fields. Originally, one field had a label and the other did not. The field with label appears in the field picker when we access the field via the Excel Add-in, the one that did not doesn't. After searching this forum, we added a label to the missing field as the post indicated this would resolve the issue. It didn't.
I then followed the advice to run a full CIL build, clear caches, refresh AIF services and redeploy the AIFGDS service group. This also did not resolve the issue.
An examination of the properties of both fields show that apart from the initial state of not having a label, these two fields have identical properties. The only other difference is that the table has a field relationship defined for the field that appears and the one that is missing does not.
Does anyone have any other suggestions of how we can make the missing field appear?
UpGradation From AX 2012 R3 to Dynamics 365
Hi friends,
Using LCS how to upgrade From AX 2012 R3 To Dynamics365?
Can any one explain the steps in detail and the complete process.
Thank you.
Regards
Prasad M
Need GST Setup for India in AX 2012
Hi Friends,
I need to prepare a document with GST Setup in AX 2012 for India.
1. Can you please share me the Complete setup of GST in AX 2012 for India, how can we configure GST in AX 2012 for India.
Can anyone help me on this.
Thanks,
Sai Nag
Add ParmMethod in document service class that affect to .net also
Create several records from single row in Excel
Client will give us the Excel file Format shown above .. We will run our JOB which will read the excel and store the values in the Table in the Table in the pattern shown ......
PROBLEM .. At the moment my job simple copy pastes into the table... How can I modify my job so that the above 1 Excel Record is classified and then stored as 4 Records into the AX Table... I reckon below part of my job needs to be modified
// Just Example Codes.....
table1.clear();
table1.initValue();
table1.Lname = excel.fieldValue(1);
table1.Fname = excel.fieldValue(2);
table1.Salary = str2int(excel.fieldValue(3));
table1.Lname = excel.fieldValue(4);
HELP please
SCDPBundleInstall complains about missing metadatastorepath
I have this error
parameter metadatastorepath was not specified
Command
SCDPBundleInstall.exe -prepare -packagepath=c:\hf\HotfixPackageBundle.axscdppkg -metadatastorepath= f:\AOSService\PackagesLocalDirectory -tfsworkspacepath= f:\AosService\PackagesLocalDirectory -tfsprojecturi=desertlineprojects.visualstudio.com/_projects
Consuming Newtonsoft.Json in X++
Hi All,
Anyone tried to use Newtonsoft.Json in any X++ (AX) project to read Json String?
Element in the Enum is not showing in Form...
Hi all,
I created a base enum.
with properties
Also created a table with this enum as a field
with filed properties
The problem is when I open the table/form when I am goint to input, I did not find enum value 'None' whose element value = 0.
But I wonder, other than None when I give for '0' value, they are showing in table. But how ever the functionality mismatch is coming with this enum when I change enum values.
Please help...
Thanks in advance..
Reset of Usage Data after deployment of an Deployable Package
Hey there,
After deployment of a Deployable Package for Dynamics 365 for Operations, all Usage Data for every User are lost. The issue is in production! This is very enjoying for my customer. Is there a fix or workaround to hold the Usage Data?
Br. Severin
Learning DIXF
Hi All,
I want to learn DIXF, any suggestions where to start from?
thanks
Mike
Is it possible to find a label ID & update it with a new label ID in AOT elements such as properties and methods using x++?
Hi, I have a requirement which is gonna take lot of time if done manually.
get data for AutheticationUtility
Hi all
Sorry for that question but where can I find the data for the clientconfiguration in the AuthenticationUtility like ClientAppId, ClientSecretId and so on?
I am using a onebox system right now
Extension of AX class constructor
Hello guys,
I would appreciate if someone can suggest a way of migrating to AX7 a code from AX2012 which overlayered class constructor. I mean new() method. In the constructor an initialization of existing class variable was changed. The class has public accessor method for the variable.
It appears that I can not implement Post event handler for the New() method as an error is raised: 'cannot be subscribed to by a Pre- or Post-method event handler. The target cannot be a constructor'.
Also I can not implement it in the constructor of the extension class as per the documentation there is no guarantee that extension constructor would be called if no extension method is used: "It's guaranteed that the constructor that is provided in an extension class will be called one time before any instance method or the instance state on the extension class is accessed. However, if no such references are made, the constructor isn't called"
It seems to me that not supporting events for class constructor limits usage of extensions which suggested by Microsoft as main upgrade mechanism.
kind regards,
Ivan
Unable to see my custom service method at JSON end point
Hi All,
I have created a new class, new service and service group accordingly with AutoDeploy set to Yes. Now I can see both service and service group at JSON end point (https://<host_uri>/api/Services/<service_group_name>). But when I try to find my method, I got below errors:
"Message": "An exception occured when accessing operation metadata - Unable to find
method 'getItemPrice' referred by service operation 'ItemPriceGet'.","ExceptionType": "XppServicesMetadataException",
"ActivityId": "dbafa8fc-d5ef-0000-9779-b0dbefd5d201"
I can see my new service in the list of services, when I write https://<host_uri>/api/Services,
Also get the service operation, when I write https://<host_uri>/api/Services/ServicegroupName,
But when I write my service operation name (ItemPriceGet) and press enter, it gave me the
error mentioned above.
Does anyone have any clue, what I have missed ?
Thanks,
Baber.
PDF files created in AX are too large
Dear all,
I would like to know whether it's possible to manipulate the size of pdf-files created in AX. When saved any list in Dynamics AX as pdf-file, this file has a size of 1 MB, even if the file exists of 2 or 3 lines. The shrinked file has only 40KB.
Does somebody know of any setting or procedure in AX causing the pdf-files to be created in real size?
Thanks in advance
egydd
How to convert a String into an Object in x++ (similiar to JSON)
I have sent a JSON string through an HTTP call over to my post event handler. I want to take that string and populate the corresponding x++ object I have created in my post event handler. Does x++ have a library or methods that can take a string representation of an object and use it to populate the fields of a declared object? Basically, does x++ have it's own version of GSON/JSON? If not, is there a way to go about doing this?