Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 7025

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 2162

Deprecated: Hook imagify_allow_picture_tags_for_webp is deprecated since version 2.2! Use imagify_allow_picture_tags_for_nextgen instead. in /www/collab365_296/public/wp-includes/functions.php on line 5758
O365 - SPFX - Get the list of ClientSideWebParts Manifest details - Collab365
Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1145

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1152

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1155

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1162

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1165

Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1145

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1152

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1155

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1162

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1165

Warning: Undefined array key "url" in /www/collab365_296/public/wp-content/plugins/thrive-visual-editor/thrive-dashboard/inc/smart-site/classes/class-tvd-smart-shortcodes.php on line 85

2016-09-01

After the recent announcement of the SPFX preview announcement, had a chance to look into it in details. This time, I took it as a challenge to use only Mac and VS code to develop my SPFX client web part and it was quite a fun and first time I have developed a SP component using my Mac without Windows and Visual Studio.

There are so many blogs / helps available and here are the few I used for mine.

Right, after my first SPFx client web parts, I was looking into in details about how it works etc. While looking into it, found an api where we can get the list of ClientWebparts from deployed. Internally it is used to pull the deployed ClientWebParts to get the manifest.

If you need to get all the manifest details of the ClientWebparts deployed,

_api/web/GetClientSideWebParts – returns the list of ClientWebparts (uploaded to the appcatalog) with the manifest details.

<d:GetClientSideWebParts xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml" m:type="Collection(Microsoft.SharePoint.ClientSideComponent.SPClientSideComponentQueryResult)"><d:element><d:ComponentType m:type="Edm.Int32">0</d:ComponentType>
<d:Id m:type="Edm.Guid">2a75530c-04df-47b9-82b0-9e0dae8cded6</d:Id>
<d:Manifest>
{"id":"2a75530c-04df-47b9-82b0-9e0dae8cded6","componentType":"WebPart","version":"0.0.1","manifestVersion":2,"preconfiguredEntries":[{"groupId":"2a75530c-04df-47b9-82b0-9e0dae8cded6","group":{"default":"Under Development"},"title":{"default":"KendoUiSample"},"description":{"default":"Kendo UI"},"officeFabricIconFontName":"Page","properties":{"description":"HelloWorld","test":"Multi-line text field","test1":"hello"}}],"loaderConfig":{"entryModuleId":"kendo-ui-sample.bundle","internalModuleBaseUrls":["https://sktechnologies.sharepoint.com/"],"scriptResources":{"kendo-ui-sample.bundle":{"type":"internal","path":"dist/kendo-ui-sample.bundle.js"},"mystrings":{"defaultPath":"lib/webparts/kendoUiSample/loc/en-us.js","type":"localized","paths":{}},"@microsoft/sp-client-preview":{"type":"framework","version":"latest","failoverPath":"node_modules/@microsoft/sp-client-preview/dist/sp-client-preview.js"}}}}
</d:Manifest>
<d:Name>KendoUiSample</d:Name>
<d:Status m:type="Edm.Int32">0</d:Status>
</d:element>
</d:GetClientSideWebParts>

The manifest contains the client web part details like,

  • Webpart Id
  • Webpart properties
  • BaseUrl
  • Script Resources etc
(Visited 362 times, 1 visits today)

About the author 

Balamurugan Kailasam

Summit Bundle

Get 200+ hours of Microsoft 365 Training for 27$!

Master Office 365, Power Platform & SharePoint & Teams With 200+ Hours Of Training Videos and 108 Ebooks in the Collab365 Academy. This offer is insane and is only available for a limited period.