sharpoint-hosted app 2013 MenuItem custom action problem.

by JerryHuang

Hi Devendra,
I alway navigate to,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

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 five-time recipient of Microsoft's Most Valuable Professional (MVP) award (2014-2019) for Office Apps and Services, 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.