Here is a solution to get the Lawson Smart Office user’s password with a Personalized Script.
This solution is interesting in scenarios where at runtime we need the current user’s password to dynamically integrate to external systems, for example to connect to a network drive, to connect to a secure website, to execute SQL, to call web services, etc. Also, this solution is interesting to call M3 API or to trigger PFI flows for early versions of Lawson Smart Office that don’t have those native adapters; late versions of Smart Office have native adapters to call M3 API and to trigger PFI flows without the need to obtain the user’s password.
Follow this link to Geiger’s blog to see the solution: How to get the user password in a Smart Office script.
6 thoughts on “How to get the user password in a Smart Office script”
If you use the users credentials you have to use https. Never compromise the sequrity of the system.
Very good comment. Thank you for reminding us!
The post on Geiger’s page mentions that Karin provided a solution to this in C#. Is there a link to this C# solution anywhere?
Hi Andy, yes it’s the same Smart Office API wether in C# or JScript.NET. Just rewrite the sample of the blog post to C# (pretty identical syntax). /Thibaud
Andy, to pass parameters by reference, instead of the ampersand in JScript.NET I think you have to use the out keyword in C#. Check out the Smart Office SDK Help file and the Microsoft documentation.