How can I switch a user context to SalesLogix admin (or any other privileged user) and back within a running script?

Question:

How can I switch a user context to SalesLogix admin (or any other privileged user) and back within a running script? One user needs to access certain data for calculations, but that is all.

Answer:

I believe that there is a function to get the Native connection which gives you a direct connection to the DB (yes, bypassing the provider, so build security into your code).
This shouldn’t be a problem as long as what you are doing is Read Only, otherwise you would need to build a new Connection using the SLX Oledb Provider and login in with an appropriate user to make the changes.

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!