Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Get Document Library current item Content Type

$
0
0

All,

I need to get the current document (current item) content type name from the document library. I tried CSOM which is Async call and hence it is creating some issues while setting the values.

Basically there are 3 content types in the document libraries and depending upon the content type I need to get the values or uploaded document URL property.

Example: Normal document content type, the URL property is "FileRef" column and for the hyperlink content type it is "URL". So depending upon the current item content type, I need to get the uploaded document link. 

Any help using REST API call or other easier way would be great! Thanks!


Cheers,
Maruthu
P.S. : Please click the 'Mark as Answer' button if a post solves your problem! :)
Explore the SharePoint


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>