Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

MS NAV 2016 APPROVAL Email

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi , 

We have configured the workflow with MS NAV 2016 which is working perfectly  ,as attached below .

Microsoft Dynamics NAV Approval System

Purchase Invoice PINV-00269 has been canceled.

To view the record in the Windows client, choose this link (Web client)  

Purchase Invoice PINV-00269

Amount

271,725.51

Amount (LCY)

271,725.51

Vendor

XXXXXX

Due Date

07/27/16

Change Notification Settings (Web client)

ISSUE : 

The web link which is given below , 

http://srippa400:48900/DynamicsNAV90/

seems to be totally okay , except for the port no , which should be 8080 and instead having 48900  and due to this manually the user is requested to edit the port to access the approve transaction form.

Could someone direct me on how this could be changed .

Thanks .

Web client

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: MS NAV 2016 APPROVAL Email

    Hi,

    It might be late for some but it will be helpful for anyone who will stop here.

    If you have confirmed that the link is well configured on IIS and Nav Administration and you still experiencing this error you may want to have look on this;

    Kindly go to Codeunit 1509 line 77

    Confirm what is the ClientType (It is probably pulling the default link i.e. coming with port 48900) and change it from DEFAULTCLIENTTYPE to CLIENTTYPE::Web

    Link := GETURL(DEFAULTCLIENTTYPE,COMPANYNAME,OBJECTTYPE::Page,PageManagement.GetPageID(RecRefLink),RecRefLink,TRUE);

    Change To This

    Link:= GETURL(CLIENTTYPE::Web,COMPANYNAME,OBJECTTYPE::Page,PageManagement.GetPageID(RecRefLink),RecRefLink,TRUE);

    It should work.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: MS NAV 2016 APPROVAL Email

    Hi,

    It might be late for some but it will be helpful for anyone who will stop here.

    If you confirm that the link is well configured on IIS and Nav Administration and you still experiencing this error you may want to have look on this;

    Kindly go to Codeunit 1509 line 77

    Confirm what is the ClientType (It is probably pulling the default link i.e. coming with port 48900) and change it from DEFAULTCLIENTTYPE to CLIENTTYPE::Web

    Link := GETURL(DEFAULTCLIENTTYPE,COMPANYNAME,OBJECTTYPE::Page,PageManagement.GetPageID(RecRefLink),RecRefLink,TRUE);

    Change To This

    Link:= GETURL(CLIENTTYPE::Web,COMPANYNAME,OBJECTTYPE::Page,PageManagement.GetPageID(RecRefLink),RecRefLink,TRUE);

    It should work.

  • nav.mukesh Profile Picture
    nav.mukesh 617 on at
    RE: MS NAV 2016 APPROVAL Email

    Please change the value for "PublicWebBaseUrl" and "PublicWinBaseUrl" in Config file for NAV Server i.e.  CustomSettings.config.

    Regards,

    Mukesh Verma

  • Tuan Dinh Profile Picture
    Tuan Dinh 45 on at
    RE: MS NAV 2016 APPROVAL Email

    Hi,

    You need open and put value for "Web Client Base URL" in Service setup

    the value basing on that, you setup in IIS, EX: http://ServerName:8080/InstanceName/WebClient/

     2016_2D00_08_2D00_01_5F00_21_2D00_56_2D00_30.gif

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: MS NAV 2016 APPROVAL Email

    Hi , 

    I did the repair process along with an IIS restart but still it didnt fix the said issue.

    So finally I managed to changed the port on the data binding back to 48900 instead of 8080 to make it stay inline with the the web client link send on the email and that seems to be working fine.

    Thanks for the support guys !!

  • Verified answer
    Tharanga Chandrasekara Profile Picture
    Tharanga Chandrasekara 23,116 on at
    RE: MS NAV 2016 APPROVAL Email

    I manage to resole the issue by reinstalling Web Server Components in Dynamics NAV. At the time of installation provide the correct port you want and it will config accordingly.

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    Tharanga Chandrasekara 23,116 on at
    RE: MS NAV 2016 APPROVAL Email

    Hi,

    I have check the issue you reported and it is same in my computer as well. So I went and change the IIS port and restarted the IIS. Still when I click on the web client icon it still direct me to the port which I given to the system at the time of I install Dynamics NAV.

    If you check the target link of the web client icon (check properties of the icon) you will see that your port is been hardcoded in there.

    This is what I found so far and let me check on how to change these settings.

  • Suggested answer
    Rabin Profile Picture
    Rabin 2,976 on at
    RE: MS NAV 2016 APPROVAL Email

    Hie,

    I think this is probably because the port 8080 is being used by another Software. Not exactly but kind of similar kind of problem occurred while i was using XAMPP server when SKYPE was installed on the system.

    The system automatically tends to priorities the port during the installation of the software.

    I would have checked which software is using the port. Even if it is not assigned implicitly to to any software, the installing some software ahead another can create this error...

    So i would have un-installed the software first and then installed it again...

  • Suggested answer
    Saurav.Dhyani Profile Picture
    Saurav.Dhyani 14,178 Super User 2024 Season 2 on at
    RE: MS NAV 2016 APPROVAL Email

    I am not sure then because i just ran the process.

    So next step would be to debug the code and the place it fills the URL put  a breakpoint.

    It happens in Codeunit 1510, Function PopulateNotificationTemplateWithRecordInfo

    And this is the line which fills that URL -

    NotificationBodyString :=
    NotificationBodyString.Replace('%WebUrl%',PageManagement.GetWebUrl(RecRef,NotificationEntry."Link Target Page"));

    Debug it and see what is happening. 

    OR 

    Put a message like - Message('%1',GETURL(CLIENTTYPE::Web,COMPANYNAME,OBJECTTYPE::Page,PageID,RecRef,TRUE));

    and see what is the value System is returning. 

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: MS NAV 2016 APPROVAL Email

    Hey , That was the first thing I checked and its having 8080 as the port .

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans