how can file name of image sharepoint 2013 asset library?
i trying write jquery/rest snippet search subset of images within library, based on other column values , display them. use fileleafref in case of document library, couldn't find equivalent field in asset library.
i far tried following, neither returns file name: https:///crm/_api/web/lists/getbytitle('publication%20list')/items?select=file/name&expand=file https:///crm/_api/web/lists/getbytitle('publication%20list')/items?select=fileleafref
there typo in example, in particular $ symbol missing $select , $expand query options (more details).
the following rest endpoints demonstrate how retrieve file name assets library:
1) using fileleafref property:
/_api/web/lists/getbytitle('<list title>')/items?$select=fileleafref 2) using file/name property:
/_api/web/lists/getbytitle('<list title>')/items?$select=file/name&$expand=file 3) using folder/files property:
/_api/web/getfolderbyserverrelativeurl('<list url>')/files?$select=name
Comments
Post a Comment