XMLPort Creation problem

funduguy
funduguy Member Posts: 26
Hi,

I wrote the code:


IF EXISTS('C:\XML_Customer.xml') THEN
ERASE('C:\XML_Customer.xml');

TESTFILE.CREATE('C:\XML_Customer.xml');
TESTFILE.CREATEOUTSTREAM(TESTSTREAM);
XMLPORT.EXPORT(90000,TESTSTREAM);
TESTFILE.CLOSE;
MESSAGE('XML CUSTOMER EXPORT COMPLETE');
when i run the codeunit it gives the error:

XMLPort 90000 does not exist.
How can solve this problem. :-k

Comments

  • ara3n
    ara3n Member Posts: 9,258
    well create a xmlport with ID 90000 Go to object designer and click on xmlport. then click on new and add your fields and then save it as 90000.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Poebbles
    Poebbles Member Posts: 35
    :lol:
    Sorry.... but this is good joke...:lol: does not exist :lol: ....
    Please....read the Application Designer Guide before you begin to program