sharpoint-hosted app 2013 MenuItem custom action problem.

by JerryHuang
(SanMeto)

Hi Devendra,
I alway navigate to sharepoint-journey.com,I am your fan.
I meet a problem on Sharepoint-hosted app now, want you suggestion
I create a MenuItem custom action of a document library in that Sharepoint-hosted app, I want to custom the Url in UrlAction
for example:
UrlAction Url = DynamicConverServerURL?ItemUrl={ItemUrl}&HostUrl={HostUrl}
DynamicConverServerURL this is a dynamic converserver url, which can be modified by user.
In order to achieve this I save the DynamicConverServerURL into the host web property, and want to read it by javascript.
UrlAction Url="javascript:PassItem2ConServ({ItemUrl},{HostUrl})"
But I am getting below error.
Error occurred in deployment step 'Install app for SharePoint': There were errors when validating the App Package.
It's solution ok for Sharepoint-hosted app, or is that any suggestion?
Best Regards
Jerry.

Click here to post comments

Join in and write your own page! It's easy to do. How? Simply click here to return to Contact US.

About Author

Devendra Velegandla is a four-time recipient of Microsoft's Most Valuable Professional (MVP) award (2014-2017) for Office Servers and Services MVP and  SharePoint Server.He received the MCC award for his contributions in Microsoft MSDN/TechNet forums.He loves sharing articles, videos and tutorial on SharePoint and Office 365.


If you found this post helpful, please share with your friends!!


Join 5,500 subscribers and receive instant access to

Devendra's Library of Resources for SharePoint Developers