XMLPort Creation problem

funduguyfunduguy 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

  • ara3nara3n Member Posts: 9,257
    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
  • PoebblesPoebbles 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
Sign In or Register to comment.