Powershell - add or update NAV data

alvi99alvi99 Member Posts: 71
Hi All,

I recently started to work with PowerShell and NAV. I have created NAV users and permission sets with a script. When creating users I also need to add them in table 91 User Setup and other places, this is right now a manual task, but does anyone know if this also can be done with PowerShell?

Thanks,
Alvi

Comments

  • AdrianAkersAdrianAkers Member Posts: 137
    Best way would be to create a custom Codeunit for this task and invoke it from Powershell.
  • kinekine Member Posts: 12,562
    Yes, invoking function through powershell is one way, or you can publish the page through webservices and call the webservices from powershell too... it is on you what suites you more...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • AdrianAkersAdrianAkers Member Posts: 137
    Assuming you have enabled SOAP web services of course... :smile:

    Also I always wondered as well about the Credentials you would need for SOAP from PowerShell - as most of the time running ISE as Administrator is all you need, but a SOAP call may require you to be properly setup in the system etc...
  • alvi99alvi99 Member Posts: 71
    Thanks for info - just what I needed :-)
Sign In or Register to comment.