How to start import XML Ports?

pavel.konirpavel.konir Member Posts: 7
Hi, I have problem with start import XMLPorts. Please help me.

Comments

  • jhoekjhoek Member Posts: 216
    Can you be a bit more specific? :-s
    Kind regards,

    Jan Hoek
    Product Developer
    Mprise Products B.V.
  • ShenpenShenpen Member Posts: 386
    Variables:
    
    xml - XMLPort
    stream - InStream
    f - file
    
    Code:
    CLEAR(xml);
    CLEAR(stream);
    CLEAR(f);
    f.OPEN('c:\booorntobewiiiild.xml');
    f.CREATEINSTREAM(stream);
    xml.SETSOURCE(stream);
    xml.IMPORT;
    
    

    Note that in 4.0 (I not set tested in SP1) XMLPort does not communicate it properly if a record already exists, so I found it mostly useless.

    Do It Yourself is they key. Standard code might work - your code surely works.
  • ara3nara3n Member Posts: 9,257
    I've found xml ports very usefull and time saving tool. You can use it to bring data into a staging table. You can control the PK by incrementing the PK. Once the data is in the table. You can do all the processing you need.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.