So, with all the buzz about the transition to the Unified Interface, I came across this issue where Url Command Action doesn’t work on the Dynamics for Phones app for a custom button
Scenario
I’m Url Command Action in the Ribbon Workbench’s custom button to navigate to a PDF User Guide stored on the SharePoint for users to simply click and navigate.
Now, this works fine on the classic Web UI and Unified Interface Web Application.
But doesn’t work on the Dynamics for Phones app! Nothing happens when you click on it.
Workaround/Resolution
So, the workaround is, using JavaScript method to navigate the URL as shown below
- Write a JS file which uses Xrm.Navigation.openUrl(<link>); instead.
- Remove the URL Action Command and use JavaScript Command instead in the Ribbon Workbench.
- Sample Code here
oAccountFormCustomization = {
guideButton: function()
{
Xrm.Navigation.openUrl(“https://<yourlink/>”);
}
}; - And this should work on your phone app when you click the button there and it should successfully navigate to the said URL (my SharePoint Document in this case)
Related
Here are some of my other posts that are related to custom ribbon button –
D365 Ribbon Button shortcut to open a Document in SharePoint Online
Fix Ribbon icons on the Unified Interface in D365 CE
Hope that works!!
[…] [SOLVED] Navigating URL from Ribbon’s custom button in Dynamics for Phones app […]
LikeLike
[…] [SOLVED] Navigating URL from Ribbon’s custom button in Dynamics for Phones app […]
LikeLike