06-18-2012 11:56 PM
I created a function that changes access on a company from to 'public':
Dim cl As CompanyList = ACTFWK.Companies.GetCompanies(Nothing) For Each c As Company In cl c.AccessType = Act.Framework.MutableEntities.AccessType.Public c.Update() Next
This code works well but, if access on a company ist set to 'restricted', to a team, the permission will not changed to 'public'. The function changes the access only to 'public' if the access was set to 'private'.
Please provide me a solution how to change restricted access to public, thanks.
06-19-2012 06:19 AM
The method you're looking for is ActFramework.Contacts.SetAcessorAllUsers(MutableEntity mutableEntity);
Something to also keep in mind is to make sure you're logged into the framework as a user with suffecient rights for the particular contact.