Search code examples
google-apps-scriptgoogle-sites

Google app script - search hosted attachments


How to search for hosted attachments in google sites using Google App script? I tried to search using page.search("query", options) with page type as Webpage, Filecabinetpage, but I'm not able to search my page attachments. Can anybody help me in this?


Solution

  • There is no direct search method. However, you can use the Page.getAttachments() to get a list of attachments and do a manual search through them.

    You can open a request in the Issue tracker for this feature to be added.