Where Used via the API

I'm trying to basically get the Where used report via the API. 

I have a reference document and would like to extract a list of document where this reference was attached. 

Is this possible?


  • Avatar
    Andy Han

    Hi Robert, 


    You should be able to accomplish this via VQL on relationships.  For example:

    SELECT id, source_doc_id__v, source_major_version__v, source_minor_version__v, relationship_type__v, target_doc_id__v, target_major_version__v, target_minor_version__v, source__vr.name__v FROM relationships WHERE target_doc_id__v = {doc id}


  • Avatar
    Robert Dyson

    That works perfectly. Thank you so much!

Please sign in to leave a comment.