Moderator: Phil Barton
Business has set up a new Profile area and the API can't get access to those files I get the error "You do not have access to open this order" However, when accessing the file through the SoftPro UI using the same credentials that the API uses I can load it just fine.
Thanks in advance
My process is an unattended nightly process that runs using the SoftPro services so there isn't a UI where the user selects a profile, instead we have to programmatically connect to the profile - I know the name and the ID of the profile I just need to know the code to use to connect. Here is the code we have to connect to the SoftPro server
NetworkCredential auth = new NetworkCredential(AppSetting.SOFTPRO_USER_NAME, AppSetting.SOFTPRO_PASSWORD, AppSetting.AUTHDOMAIN);
_selectServer = new SelectServer(new Uri(AppSetting.SERVER), auth);
- If the user account has only one profile associated with it, it will be used as the active profile.
- If there is more than one profile associated with the account and none of them has previously been selected as the "default" profile, the user must pick one at login. The SelectServer.ChooseProfile event allows the API to select the default profile. You should subscribe to it and select one of the profiles that is passed in the event args list.
- If there is more than one profile associated with the account and a default profile has is already selected, it will be used as the active profile.