Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


dburbano
2011-03-10T22:27:17Z
Friends, I am from Quito, Ecuador,

I need to execute a process in Dynamics Ax ERP, who can I do ??
Sponsor
Forum information
Support
2011-03-11T14:08:03Z
We have no experience with that but I guess they have either a web, web service or executable which you could automate through VisualCron?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
dburbano
2011-03-11T18:42:18Z
Thanks, Dynamics Ax have an excutable "C:\Archivos de programa\Microsoft Dynamics AX\50\Client\Bin\Ax32.exe"

I need to execute a program:
1) Open Erp
2) Execute a program
3) Program open a txt file
4) Program process information in ERP (accounting entry)
5) if exists error, the program have an error log (a table on data base)

I need to run a class o program ERP, the location of text files the same program found them.

Support
2011-03-12T09:45:44Z
Is this a command line or desktop interface? Preferably, we want a command line so we can do background automation.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
dburbano
2011-03-12T15:31:55Z
Thanks friend, I found information about command line to Dynamics Ax 4.0, but the version that We Use is 5.0

http://msdn.microsoft.com/en-us/library/aa569653 (AX.10).aspx

Another example command line but with an xml file. The XML file specifies the class and methods to use. The result of importing and executing is written to a log file or shown to the user in Infolog.

http://msdn.microsoft.com/en-us/library/aa496462 (AX.10).aspx
http://msdn.microsoft.com/en-us/library/aa548627 (v=AX.10).aspx

Executing with no user interaction is useful for any automation of customer tasks, in particular during the test phase.

Create an XML file


On the Microsoft Dynamics AX client computer, create a file of type XML.

Add tags to XML file specifying:

Microsoft Dynamics AX version.

Name and location of the log file.

The XPO file containing the class to be imported.

The method to be run.

Note
The XML file syntax is described in the documentation for the SysAutoRun Class.

ax32.exe –StartupCmd=AutoRun_ c:\folder\filename .XML



Sample XML file


This is an example of an XML file that can be used to import data silently.

<?xml version="1.0" encoding="utf-8" ?>

<AxaptaAutoRun version="4.0" logFile="AxaptaAutoRun_BVTRun.log">

<XpoImport file="\share\TestCases\CreateClass.xpo" />

<Run type="class" name="CreateClass" method="main" />

</AxaptaAutoRun>



Support
2011-03-12T16:01:53Z
Ok, then try, use the Execute Task and in command line:

ax32.exe <----- you need to enter full path to this one

And arguments:

–StartupCmd=AutoRun_ c:\folder\filename .XML
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
dburbano
2011-03-12T17:34:09Z
OK but who can I manage errors, durong execution I have error, but result is success.

Support
2011-03-12T18:03:32Z
Hmm.. I am not sure how you get an error when no Task has failed. Perhaps something else has happened. Please check the VisualCron log when running.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
dburbano
2011-03-15T17:00:33Z
Friends,

How can I execute some tasks in order of execution, I have some tasks that depend on each other.

Dependent tasks should not be executed without the execution of the preceding

Thanks.
Support
2011-03-15T17:03:33Z
If the previous Task fails it will not continue. If you need to prevent the other Tasks through other Variable than the previous Task result you may need to create a Condition and attach it to the next Task.

But, is there any reason why the previous Task does not fail? And how do you recognize a failure?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
dburbano
2011-03-22T16:07:31Z
Friend Do you have some example about the last post, We need to test the entire functionality to buy software.
Support
2011-03-22T19:48:10Z
Selecting the right Condition depends on how you detect if something has gone right or wrong. So, how do you know if previous have failed or not (unless it does not give the correct exit code).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
dburbano
2011-04-11T21:45:26Z
We need more time, to test, my evaluation licence is next to finish
Support
2011-08-25T12:42:35Z
Do you need a trial extension?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Similar Topics
Users browsing this topic
Scroll to Top