April 10, 2012 3:37 pm
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.
Posted by thibaudatwork
Categories: Infor Smart Office Scripts
Tags: Script, Smart Office
Mobile Site | Full Site
Get a free blog at WordPress.com Theme: WordPress Mobile Edition by Alex King.
If you use the users credentials you have to use https. Never compromise the sequrity of the system.
LikeLike
By karinpb on April 26, 2012 at 10:35 am
Very good comment. Thank you for reminding us!
LikeLike
By thibaudatwork on May 2, 2012 at 8:09 pm
HI,
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?
LikeLike
By Andy Cowburn on May 25, 2015 at 4:41 pm
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
LikeLike
By thibaudatwork on May 26, 2015 at 4:25 pm
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.
LikeLike
By thibaudatwork on May 26, 2015 at 4:57 pm
[…] How to get the user password in a Smart Office script […]
LikeLike
By Site map – M3 ideas on May 9, 2017 at 12:27 pm