Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise Design Integration Forum How can I utilise the api.ancestor as stated in the api documentation?
    • Sign In

    • State Suggested Answer
    • Replies 2 replies
    • Answers 1 answer
    • Subscribers 62 subscribers
    • Views 547 views
    • Users 0 members are here
    • subfolder
    • API
    • Folders
    • documents folder
    • documents
    • api.ancestor

    How can I utilise the api.ancestor as stated in the api documentation?

    Adam Lavan
    Offline Adam Lavan over 3 years ago

    I have connected to a folder to retrieve all the documents in that folder but I have managed to append the api.ancestor on the end to get all the documents in the subfolders.
    The below works but the any variants of api.ancestor on the end have not worked for me.
    https://..../Document?$filter=ParentGuid+eq+'cb796b11-ed14-4499-b63a-52cc5f1609c9'

    • Sign in to reply
    • Cancel

    Top Replies

    • Jack Zhang
      Offline Jack Zhang Fri, Dec 10 2021 5:57 PM +1 suggested
      Hi Adam, I had the same question. After I saw the following errorMessage : "Valid hierarchical query parameters must be specified in the following format: <ancestorSchema>.<ancestorClass>-<ancestorId…
    Parents
    • Phil Conard
      0 Offline Phil Conard Fri, Jul 31 2020 11:29 AM

      Hi Adam,

      Try posting this question in the PW Developers forum: https://communities.bentley.com/products/programming/. ProjectWise specific wikis and forums are on the Project Delivery tile. 

      Regard,

      Phil



      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Reply
    • Phil Conard
      0 Offline Phil Conard Fri, Jul 31 2020 11:29 AM

      Hi Adam,

      Try posting this question in the PW Developers forum: https://communities.bentley.com/products/programming/. ProjectWise specific wikis and forums are on the Project Delivery tile. 

      Regard,

      Phil



      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Children
    No Data

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies