If you want to display a document file type icon for your ShortPoint Design Elements, then this article can help you achieve that.
Here is an example of an option you have in our Design Element that let's you select the file type icon, instead of using the deafult one:
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:
https://shortpoint.sharepoint.com/_api/web/lists/getbytitle('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:
https://shortpoint.sharepoint.com/_api/web/lists/getbytitle('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! This is how your Design Element should look like:
Related Articles: