Company Code Parameter

All DAO functions require a Company Code Parameter called CompanyCode.  It is important to understand the meaning and use of this parameter.  This is best done with some examples.

Within TitleSCAN Web, you can setup one or more companies.  Each of these have certain rights and permissions.  For example, the fictitious "Global Title Company" (GTC) might have the right to search all of the counties on a particular TitleSCAN Web system and have exclusive access to its own title orders on that system.  A second company on the same TitleSCAN Web system, "Universal Title Company" (UTC), might have the right to search only a single county along with exclusive access to its own orders.  Each of these companies might have Private Documents posted to the plant, which might be Starters in this example.

If Global Title Company had a software application that uses DAO, it would submit all DAO requests with a CompanyCode of "GTC."  Similarly, if UTC had a similar application using DAO, it would submit its requests with a CompanyCode of "UTC."  In both cases, the UserCompany parameter (see User Authentication Parameters) in the DAO requests would be same as the CompanyCode parameter.  For example, a DAO request submitted by the software run by the UTC company would have a UserCompany parameter sent to "UTC" and a CompanyCode parameter set to "UTC."

However, let's assume that the UTC company now grants access to a third, outside company ("Sunshine Title Company" or "STC") that intends to use DAO to access TitleSCAN Web.  The STC company is provided with an account on the TitleSCAN Web system with a login company code of STC.  

DAO requests from Sunshine Title would be submitted with a UserCompany parameter of "STC" (to authenticate the user) and a CompanyCode parameter of "UTC" (to specify that the request has the rights and permissions of UTC).  Sunshine Title would be able to search only the single county to which UTC has access.  In this case the UserCompany parameter and the CompanyCode parameter would be different.

IMPORTANT:  The DAO User Authentication module will validate the contents of the CompanyCode parameter to ensure that its value is a permitted value.