Pages

Tuesday, December 8, 2015

Open Provider hosted Apps in SharePoint Model Dialog

Hi All ,

If you are new to SharePoint Provider hosted Apps and you want to open your Provider hosted Apps in SharePoint Model dialog then Microsoft suggest you use custom Action to achieve this functionality. 

I was struggling a lot and I did'nt want to use custom action to open Provider hosted App In Model dialog so I was dive deep into the custom action functionality and I was found the Js function that custom action internally use to open Provider hosted App in Model Dialog and I finally achieve the success without using Custom Action  I have used below script to open my Provider hosted in Model dialog on click on anchor tag .


<a href="#" onclick="javascript:LaunchApp('13f91bd6-b83d-85cb-921a-v418368ae07a', 'i:0i.t|ms.sp.ext|f4df267v-3sa2-6406-a46c-1ba3b94d0715@1d586085-556e-2af5-244b-31c7481vc6a3', 'https:\u002f\u002fxyz.azurewebsites.net\u002fPages\u002fDefault.aspx?{StandardTokens}', {width:900,height:800,title:'Create Request'});">Open My Provider hosted App</a>

And its working perfectly without using custom action ... you can pass your Item Id as well to provider hosted App from SharePoint model dialog.

I hope it will help you a lot for any question and query get in touch with me .

Happy Coding !!!

Thanks,

Pankaj Srivastava


by Pankaj Srivastava via Everyone's Blog Posts - SharePoint Community

No comments:

Post a Comment