XMLPort Path

bekio
Member Posts: 204
Hello everyone,
I have created a XMLPORT and i run it via codeunit. But i can not find where is the xml file created.
Need help.
I have created a XMLPORT and i run it via codeunit. But i can not find where is the xml file created.
Need help.
0
Comments
-
please show us the code. Thanks.0
-
The code is like this
Transheader.RESET;
Transheader.INIT;
IF Transheader.FINDFIRST THEN
REPEAT
IF Transheader.Status=Transheader.Status::Released THEN
IF Transheader."Date Created" < WORKDATE-2 THEN BEGIN
TransHeaderXML.SETTABLEVIEW(Transheader);
TransHeaderXML.Released();
//MESSAGE('Done');
END;
UNTIL TransHeader.NEXT=0;0 -
you are nor running the xmlport TransHeaderXML.
Transheader.RESET; Transheader.INIT; IF Transheader.FINDFIRST THEN REPEAT IF Transheader.Status=Transheader.Status::Released THEN IF Transheader."Date Created" < WORKDATE-2 THEN BEGIN TransHeaderXML.SETTABLEVIEW(Transheader); TransHeaderXML.Released(); MyFile.create('C:\myxmlfile' + Transheader."No." + '.xml'); MyFile.CREATEOUTSTREAM(outstr); TransHeaderXML.SETDESTINATION(outstr); TransHeaderXML..EXPORT; MyFile.close; END; UNTIL TransHeader.NEXT=0; MESSAGE('Done');
You need to do it something like this.0 -
I am using this XMLPort to create a notification.
So i have this report, and when i run it via Navision Interface (C/Side) it is ok and works perfect.
But i have added this as a report to be executed via NAS(i have created a job queue ect..), and NAS executes this report but don't send a notification. When i run this report manualy it is working and sends a notification.
Any suggestion.0 -
what is the error in job queue?
Also, make sure the user running nas has admin permission.0 -
No error is displayed.
I have also debugg this code(with NAS Debugger) and it goes throught this code same as i run manualy report.
But it does not send the notification. I use the same Windows User for NAS and when i run report manually.
With the same user i run report manualy and via NAS.
I don't have clear idea, what XMLPort does export when i use it for business notification(what exactly xmlport do, exports some .xml files, or what, if it exports where can i locate a files that business notification reads).
Need help!
Thanks in advice.0 -
I have not worked with notifications.
If you are not a partner, see if you can get help.0 -
Thanks,
I hope at least someone had this problem, and can help me! :roll:0 -
:roll:
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions