SOLVED

Programmatically adding list view webpart using jsom

%3CLINGO-SUB%20id%3D%22lingo-sub-1502797%22%20slang%3D%22en-US%22%3EProgrammatically%20adding%20list%20view%20webpart%20using%20jsom%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1502797%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20requirement%20to%20add%20a%20list%20view%20webpart%20using%20JSOM%20in%20sharepoint%20online.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20using%20xml%20but%20that%20didnt%20work.%3C%2FP%3E%3CP%3ECould%20someone%20please%20help%20me%20on%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EAnisha%20Ashokan%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi All,

 

I have a requirement to add a list view webpart using JSOM in sharepoint online.

 

I tried using xml but that didnt work.

Could someone please help me on this.

 

Regards,

Anisha Ashokan

3 Replies

@Anisha Ashokan 

Hello! You've posted your question in the Community Discussion space, which is intended for discussion around the Tech Community website itself, not product questions. I'm moving your question to the SharePoint space - please post SharePoint questions here in the future. 

Best Response confirmed by Anisha Ashokan (Contributor)
Solution

@Anisha Ashokan I had done this requirement long back in 2015 and would suggest Rest API or MS Graph for support in future.

Thank you so much I was able to implement it