Login user by HAL
Gastón Salomone
6-22-20
Operating system: macOS
Hi,

I wrote a webpublic function to integrate with an external application that need to create and update Contacts in SERP with Json structure.

External app send User and Password in Json fields and I need to validate and Login user so all updates are recorded as that User, but also because I cannot create Contacts and execute RecordCheck function if user is not Logged as there are many UserCanAction validations that requiere a valid user session.
Before version 8.5 I use "/DoLogin" web function with User and password parameters in URL by GET method but now it only work with POST method.
There is a funcion called SetCompanyAndLogin but I cannot find anything about it.

How I can login user by code ? Or how I Redirect to that /DoLogin page with Post data by hal?

Regards
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
Bror-Erik Kotiranta
Clients have their own cache, and then the server has the shared cache, if you want it kind of black and white. Presense should be there as far as i know...
10:55 7 July 2025
Yavuz Yigiterhan
Hello Paul, That is something only HansaWorld can do. But that would help to understand is that causing the problem and - if so - we fix the issue. Additional information is appreciated. Yavuz...
10:45 7 July 2025