Al: Incorrect GetUrl in D365

Created on 2 Mar 2018  Â·  13Comments  Â·  Source: microsoft/AL

We have an extension running live in D365 and we are relying on the GetUrl function and are getting incorrect results in the web client and the Fin and Ops app.

In the web client, GetUrl returns:
https://mytenant.financials.dynamics.com/MS?tenant=mytenant.financials.dynamics.com
But to work either the MS part has to be removed or /webclient added:
https://mytenant.financials.dynamics.com/?tenant=mytenant.financials.dynamics.com
or
https://mytenant.financials.dynamics.com/MS/webclient?tenant=mytenant.financials.dynamics.com

In the Fin and Ops app, GetUrl returns:
ms-dynamicsnav://mytenant.financials.dynamics.com:443/MS?tenant=mytenant.financials.dynamics.com
But the Fin and Ops does not register to that scheme (ms-dynamicsnav) and therefor does not start. I don't know if it responds to any other scheme but if it does then the GetUrl functionality needs to be updated. If it does not respond to any scheme it needs to be added and the GetUrl functionality updated as well.

bug shipped

Most helpful comment

GETURL AL function should now return (from update 15 on up):
• https://businesscentral.dynamics.com/ as the base Url
• Ms-businesscentral:// as the protocol for mobile apps

The protocol registered for the app was just tested to confirm it is registering the correct one in the OS.

If you see a different behavior, please report back, as this is unexpected.

All 13 comments

I'm not sure if question is the correct label for this issue. From my viewpoint this is clearly a bug or a configuration issue.

Agree. Looks like a bug.

Any news on when this will be fixed?

I have logged a bug to the owning team. It has not yet been accepted. But don't forget all these fixes are not for Nav 2018.

Hi @kalberes.

To the best of my knowledge this is not an issue in in Nav 2018. As I stated in my original post this is blocking our app (LS Express) which is already live on D365 Business Central!

Could you please contact the owning team and have them take a look at this issue as soon as possible?

Any update on this?

If this is a live site issue then GitHub is not the right place to escalate it as we don't provide any SLAs here. We fixed the bug in the latest codebase but you normally need to contact support to get it addressed for the live tenants.
I escalated manually this time but in the future please remember that through GitHub you reach the development team and not the live site support team (even though we will be involved in fixing the live site issue as well but the urgency is completely different when reported as a live incident vs a GitHub feedback forum)

The support team will now prioritize getting the fix into the live tenants, I cannot provide a timeline but this is being treated with the highest priority.

The issue has been fixed and will ship in the May update of the service. If you require hotfixing of existing tenants this needs to be raised through a support ticket and not through GitHub as the support team will need more information from you.

hi @StanislawStempin .

Now we have a tenant in D365 BC and there this issue is fixed when browsing BC in the web client.

But if I'm in the Business Central app GetUrl still returns an URL to the Dynamics NAV app (ms-dynamicsnav).

This is not a live site issue but a bug, either in the GetURL function or a missing scheme registration in the BC app (or both) as I mention in the original issue.

Most likely your tenant has not been updated to the latest version yet. Please retry in a few weeks and open a new issue if the problem still persists.

Alright, that just might be the case. But could you confirm that we are waiting for a change in the GetUrl functionality? Cause in my mind there are two solutions to this problem:

  1. The Business Central app already registers a scheme but the GetUrl isn't returning it. In that case we are waiting for the tenant to be updated. It would also be nice to get that scheme in order to confirm that it does in fact work.
  2. The Business Central app isn't registered as ms-dynamicsnav but will be. In this case we are not waiting for the tenant but for the app to be updated.

I want to make sure that we are waiting for the correct solution cause we have been waiting for almost three months now.

GETURL AL function should now return (from update 15 on up):
• https://businesscentral.dynamics.com/ as the base Url
• Ms-businesscentral:// as the protocol for mobile apps

The protocol registered for the app was just tested to confirm it is registering the correct one in the OS.

If you see a different behavior, please report back, as this is unexpected.

Hi @pborring.

Thanks your response, it really helps to see what has been fixed. I've confirmed that the protocol ms-businesscentral works. Now we just wait for the GetUrl to update.

Was this page helpful?
0 / 5 - 0 ratings