Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.48 KB

getprogid-element.md

File metadata and controls

62 lines (43 loc) · 1.48 KB
title manager ms.date ms.audience ms.topic ms.localizationpriority ms.assetid description
GetProgID element
soliver
3/9/2015
Developer
reference
medium
02b87839-e514-4f59-a26d-55094a0ea725
Returns the ProgID for the given URL of a particular document.

GetProgID element

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Returns the ProgID for the given URL of a particular document. This is an internal element that returns the ProgID for any HTML file, which identifies the application that the HTML file was created in (whether it was a Microsoft Word document that was saved as HTML or a Microsoft Excel worksheet saved as HTML, etc.).

<GetProgID>
</GetProgID>

Elements and attributes

The following sections describe attributes, child elements, and parent elements.

Attributes

None

Child elements

Numerous

Parent elements

Numerous

Occurrences

  • Minimum: 0
  • Maximum: Unbounded

Remarks

This element can be used within a view only if the HackLockWeb attribute of the View element is set to TRUE.

Example

The following example maps the ProgID and file extension for the Template lookup column, separated by a pipe symbol (|), to an icon.

<MapToIcon>
  <GetProgID>
    <LookupColumn Name="Template"/>
  </GetProgID>
  <HTML>|</HTML>
  <GetFileExtension>
    <LookupColumn Name="Template"/>
  </GetFileExtension>
</MapToIcon>