Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

SharePoint-hosted App upgrade failed: App The URL of Custom Actions deployed by apps may not contain javascript or data URI

$
0
0

Hello,

We have a published Office Store app, that have a hosted web custom action. App installs without any issue for Online environment and was successfully approved by Office Store. Then we deceived to updated it and it's impossible for  Online installations, but works fine for on premise. We receive exception: "The URL of Custom Actions deployed by apps may not contain javascript or data URI".

Our custom action declaration:

<CustomAction Title="JqueryScript" ScriptSrc="~site/CoreScripts/jquery-1.8.2.min.js" Sequence="10" Location="ScriptLink"></CustomAction><CustomAction Id="guid"
                 Location="CommandUI.Ribbon.EditForm"
                 RegistrationId="ctid"
                 RegistrationType="ContentType" ><CommandUIExtension><CommandUIDefinitions><CommandUIDefinition Location="Ribbon.ListForm.Edit.Actions.Controls._children"><Button Id=AssignToMe.Button"
                  Command="AssignToMe.Button.Command"
                  Sequence="500"
                  Image16by16="/_layouts/15/$Resources:core,Language;/images/formatmap16x16.png" Image16by16Top="-253" Image16by16Left="-181"
                  Image32by32="/_layouts/15/$Resources:core,Language;/images/formatmap32x32.png" Image32by32Top="-376" Image32by32Left="-444"
                  LabelText="Assign to me"
                  TemplateAlias="o1"/></CommandUIDefinition></CommandUIDefinitions><CommandUIHandlers><CommandUIHandler Command="AssignToMe.Button.Command"
                          CommandAction="javascript: CustomAction.assignToCurrentUser();"
                          EnabledScript="javascript: CustomAction.enableDisableAssignToCurrentUser();"></CommandUIHandler></CommandUIHandlers></CommandUIExtension></CustomAction>

Remove custom action is possible, but doesn't solve the issue, as users of first version will not able to upgrade/migrate their date to a newer version.


Viewing all articles
Browse latest Browse all 8089

Trending Articles