PureConnect

Discussion Thread View
Expand all | Collapse all

Value of AssignableAllowedCount Returns 0

  • 1.  Value of AssignableAllowedCount Returns 0

    Posted 9 days ago
    Hi,

    I am trying to retrieve the License Allocation.

    Following is my code:

            static void GetLicenseAllocation(Session session)
            {
                ConfigurationManager configurationManager = ConfigurationManager.GetInstance(session);
                var LicenseList = new LicenseAllocationConfigurationList(configurationManager);
    
                List<FilterDefinition<LicenseAllocationConfiguration, LicenseAllocationConfiguration.Property>> filterDefinitions =
                        new List<FilterDefinition<LicenseAllocationConfiguration, LicenseAllocationConfiguration.Property>>();
    
    
                QuerySettings<LicenseAllocationConfiguration, LicenseAllocationConfiguration.Property> watchSettings = LicenseList.CreateQuerySettings();
    
                watchSettings.SetFilterDefinition(
                    new GroupFilterDefinition<LicenseAllocationConfiguration, LicenseAllocationConfiguration.Property>(filterDefinitions));
        
                LicenseList.StartCaching(watchSettings);
    
                ReadOnlyCollection <LicenseAllocationConfiguration> list = LicenseList.GetConfigurationList();
    
                Console.WriteLine("License Allocation\n");
                foreach(LicenseAllocationConfiguration item in list)
                {
                    Console.WriteLine($"{item.ConfigurationId}\t{item.AssignableAllowedCount.Value}\t{item.AssignableConfiguredCount.Value}"); // \t\t1{item.AssignableAllowedCount.Value}\t{item.ConcurrentConfiguredCount.Value} 
                }
                LicenseList.StopCaching();
    
                //LicenseAllocationConfiguration licenseAllocationConfiguration = LicenseList.
            }​


    item.AssignableAllowedCount.Value and item.AssignableConfiguredCount.Value return zero (I have checked Interaction Administrator. Assignable Allowed Count of licenses are NOT zero).

    Could you please tell me what missing is?

    Thank you in advance.
    #ArchitectureandDesign
    #AskMeAnything(AMA)
    #Implementation
    #Integrations

    ------------------------------
    Ali Koyuncu
    Asseco SEE Bilisim Teknolojileri A.S.
    ------------------------------


  • 2.  RE: Value of AssignableAllowedCount Returns 0

    Top 25 Contributor
    Posted 8 days ago
    This probably won't help you, but you can easily get this information using ICWS. I only use ICWS and like it very much.

    For example, to check for a users additional licenses and if they are active:
    GET http://icserver:8018/icws/SessionId/configuration/users/username?select=licenseProperties.additionalLicenses

    You can use this to Query any licnese you need.
    You will get a JSON reponse like this:

    {
        "configurationId": {
            "id""username",
            "displayName""Display Name of User",
            "uri""/configuration/users/username"
        },
        "licenseProperties": {
            "additionalLicenses": [
                {
                    "id""I3_ACCESS_RECORDER",
                    "displayName""Interaction Recorder Access",
                    "uri""/configuration/license-allocations/I3_ACCESS_RECORDER"
                }
            ]
        }
    }


    ------------------------------
    Egill Palsson
    Advania Sverige AB
    ------------------------------



  • 3.  RE: Value of AssignableAllowedCount Returns 0

    Posted 8 days ago
    Hi, Egill,

    Thank you for your response.

    I know how to get the license information for the specified use.

    What I fail is to get Allowed Count and Configuration yet there is no problem in Concurrent properties.

    Let me dig into this matter... It really drives me crazy... 


    ------------------------------
    Ali Koyuncu
    Asseco SEE Bilisim Teknolojileri A.S.
    ------------------------------



  • 4.  RE: Value of AssignableAllowedCount Returns 0

    Posted 8 days ago
    Figured out!

    watchSettings.SetPropertiesToRetrieveToAll();

    Now I can get License Allocation.

    ------------------------------
    Ali Koyuncu
    Asseco SEE Bilisim Teknolojileri A.S.
    ------------------------------