How can we help you today?

How to Map Document / File Type Icon when Using SharePoint Document Library REST API

Many time you come across requirement when you want to use File Type field in-order to inform ShortPoint about Document Type so it can process the icon:

Getting File Type using REST API Connection to Document Library

The column name you are looking for is File_x0020_Type

For example, your query looks like this:

Example URL:'Templates')/items?$select=FileLeafRef,EncodedAbsUrl,Modified,Created,Editor/Title&$expand=Editor&$orderby=FileLeafRef%20asc

You need to make sure you append File_x0020_Type to the query as highlighted below:

Example URL:'Templates')/items?$select=FileLeafRef,EncodedAbsUrl,Modified,Created,Editor/Title,File_x0020_Type&$expand=Editor&$orderby=FileLeafRef%20asc


Once you connect ShortPoint element using above URL, you would see a new mapped column called File_x0020_Type in your mappings section:

That's it! You will start seeing file icons now:

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 31 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more