MxLoader

 View Only
Expand all | Collapse all

Add Doclinks to Objects via MXLoader that already exists in the attachment library (DOCINFO)

  • 1.  Add Doclinks to Objects via MXLoader that already exists in the attachment library (DOCINFO)

    Posted 03-18-2022 11:48
    Hi all,

    Has anyone tried loading attachments using MXLoader that already exist in the documents library (DOCINFO)?

    The objective is not to upload the file but to associate with available documents, added through the library, to a large number of assets or other objects using MXloader.

    I've already tried adding DOCINFO to the ASSET/DOCLINKS object structure but without success.

    Any help will be appreciated

    ------------------------------
    André Cordeiro
    ------------------------------


  • 2.  RE: Add Doclinks to Objects via MXLoader that already exists in the attachment library (DOCINFO)

    Posted 04-20-2022 08:37
    Edited by Matis Dovydas 04-20-2022 08:38
    I tried something like this:

    MXASATTACHMENT ASSET AddChange            
    ASSETNUM SITEID DOCLINKS.ADDINFO DOCLINKS.URLTYPE DOCLINKS.URLNAME DOCLINKS.DESCRIPTION DOCLINKS.DOCTYPE DOCLINKS.DOCUMENT OWNERID
    100000222222 LLL 1 FILE /opt/DOCLINKS/test/document.pdf document.pdf attachment 1234 0


    Object structure: main object is ASSET, then DOCLINKS (ASSET/DOCLINKS), then DOCTYPES (ASSET/DOCLINKS/DOCTYPES).
    Maybe this will work for you because for me it's not working anymore. Few months ago this worked just fine - to add attachments to assets from library. 



    ------------------------------
    Matis Dovydas
    ------------------------------



  • 3.  RE: Add Doclinks to Objects via MXLoader that already exists in the attachment library (DOCINFO)

    Posted 04-21-2022 04:00
    Edited by André Cordeiro 04-21-2022 04:00
    Hello Matis,

    Thank you for your suggestion but it did not work as you said. I didn´t understand why you added the object DOCTYPES to insert from library and didn´t select any field in your example and leave the DOCINFO out. Can you send the full example that worked for you in the past?

    If anyone finds a solution to insert from library please let me know.

    Thanks

    ------------------------------
    André Cordeiro
    ------------------------------