web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance forum

D365Fo - Deep link

(0) ShareShare
ReportReport
Posted on by 642

Hello,

I would like to generate a deep link for SalesQuotation Form.

I found this interesting article (link below), I tried the sample explained and it works but if I want to the same with SalesQuotation

https://community.dynamics.com/ax/b/ievgensaxblog/archive/2016/09/17/ax-7-urlutility-extension-to-create-deep-links

Please could you help me 

I have the same question (0)
  • DONA Profile Picture
    642 on at

    With SalesQuotation, it does not work. The link redirects on home page

  • DONA Profile Picture
    642 on at

    I also tried looking with Microsoft's doc :

    docs.microsoft.com/.../create-deep-links

          var generator     = new Microsoft.Dynamics.AX.Framework.Utilities.UrlHelper.UrlGenerator();

           var currentHost   = new System.Uri(UrlUtility::getUrl());

           generator.HostUrl = currentHost.GetLeftPart(System.UriPartial::Authority);

           generator.Company = curext();

           generator.MenuItemName = menuItemDisplayStr(SalesQuotationTable);

           generator.Partition = getCurrentPartition();

           // repeat this segment for each datasource to filter

           var requestQueryParameterCollection = generator.RequestQueryParameterCollection;

           requestQueryParameterCollection.AddRequestQueryParameter(

           formDataSourceStr(SalesQuotationTable,SalesQuotationTable),

           fieldStr(SalesQuotationTable, QuotationId), '000002');

    But it does not work :-(

  • Verified answer
    ShahTanuj Profile Picture
    330 on at

    Hi Dona,

    Please check Menu Item Property : Allow Root Navigation it should be yes i guess then only you will be able to navigate to that Menu Item through URL directly.

    Thanks 

  • DONA Profile Picture
    642 on at

    Hi Tanuj,

    Thanks for your reply. I had to create a new menu item because when you create an extension. You can't modify this property "Allow Root Navigation".

    But with my new menu item, I obtain an error message : "Mynewmenuitem" could not be opened with the link generated

    Have you an idea ?

    Thank you

  • DONA Profile Picture
    642 on at

    I's ok  when I change the property on my menu item duplicated

    Thanks Tanuj

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans