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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Login in web application using PHP - Microsoft dynamic nav

(0) ShareShare
ReportReport
Posted on by

Hi All,

 My question is there a way for me to create third party application specifically PHP(Web Based) to create simple login(Username, Password) customer could use to see their points and other loyalty rewards. 

I was able to connect  PHP and Nav and view particular information using web services (SOAP). 

in which create web form like login

My problem is how to perform login operation that use the customer card entity data using PHP

if you have sample code or blog or resources please include. Thank you

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at

    Do you want to authenticate those external users by NAV tools, e.g. go you want those external users to connect to NAV using standard NAV license when they login? I suppose there might be quite many of those simultaneously and thus it can be expensive solution. Another option is to develop a separate web application that would interact with the SQL database and you will need to have non-NAV functionality of users authentication.

  • Community Member Profile Picture
    on at

    Hi Alexander,

    Thanks for the reply.

    I will be using ls retail for this just for member management loyalty

    Its like a customer loyalty web application. the concept is

    1. user login (username and password)

    2. redirect to user dashboard with POINTS and Voucher which  fetch from microsoft nav

    Currently already manage to fetch data from microsoft nav using web services SOAP. im using PHP as mg backend

    my concern right now is how to create a login web page which i can show customer points and other membership loyalty available from ls retail member management.

    If you have any idea or sample application please let me know. badly need this project

    Thank you

  • Verified answer
    Suresh Kulla Profile Picture
    50,249 Super User 2025 Season 2 on at

    Since the customers are using the web applicaiton but not Actual NAV users you need to customize NAV to achieve this, you could provide the username as the customer NO. in the navision and add a new field on the customer card to hold the password, that way you can use the webservices on NAV to query that customer and authenticate. It is more of like forms authentication in Web.

  • Community Member Profile Picture
    on at

    Hi Suresh Kulla,

    Thanks for the idea. I will look into this.

    So I will use php for authentication based on customer card with password and customer NO. as username. Is that what you mean?

    Do you have any sample code for this or resources?

    Thank you

  • Verified answer
    Suresh Kulla Profile Picture
    50,249 Super User 2025 Season 2 on at

    Yes, I don't have a specific example for this scenario.  But the idea is you will expose thecustomer card page as web service and retrieve it based on the username if you find the record you will check against the password field, if not you will throw authentication error.

    This is an example to retrieve customer and there are many other examples how to read the data.

    msdn.microsoft.com/.../dd355316.aspx

    https://blogs.msdn.microsoft.com/freddyk/2010/01/19/connecting-to-nav-web-services-from-c-using-web-reference/

    https://blogs.msdn.microsoft.com/freddyk/2010/01/19/connecting-to-nav-web-services-from-php/

    https://blogs.msdn.microsoft.com/freddyk/2010/01/19/connecting-to-nav-web-services-from-php/https://blogs.msdn.microsoft.com/freddyk/2010/01/19/connecting-to-nav-web-services-from-php/

  • Community Member Profile Picture
    on at

    HI Suresh Kulla,

    Thanks for the idea. I will try this one.

    I actually can connect php to ms nav right now. I will try to add new fields for password in customer card and try to authentication using php for password.

    Thank a lot.

    I will get back once I get this done. Thanks for the help

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans