Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Web Services

Reply
Regular Contributor
Posts: 51
Registered: ‎04-08-2013
My Device: Playbook
My Carrier: None
Accepted Solution

List User Activation Fails

Hello,

In order to monitor Users´ activations, I would like to know if it is possible to get a list of all users which have been failed for device Activation. Is there any Web Service method or Resource Kit command to know more about that? 

I have been looking for that requirement but without success.

Thank you

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: List User Activation Fails

Check out the getUserActivations call in BWS. You can specify only searching for failed activations:

http://www.blackberry.com/developers/docs/bws/enterprise/admin/10.1.1.20/com/rim/ws/enterprise/admin...

Garett
@garettBeuk
--
Goodbye everybody!
Regular Contributor
Posts: 51
Registered: ‎04-08-2013
My Device: Playbook
My Carrier: None

Re: List User Activation Fails

Hello Garett,
Thank you for your answer. I am getting all activated users calling getUsersActivation method, but I do not know how to get the failed ones. 

I do not see any getuserSearchCriteria which fits to my problem.

May you give me more detail hints.

Thanks again.

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: List User Activation Fails

The GetUserActivationsRequest has the parameter GetUserActivationsSearchCriteria which has a property named "overallActivationStates". Adding in the 'failed' UserActivationState should get you what you're after.

Garett
@garettBeuk
--
Goodbye everybody!
Regular Contributor
Posts: 51
Registered: ‎04-08-2013
My Device: Playbook
My Carrier: None

Re: List User Activation Fails

Thank for your answer, 

I am not be able to use properly the API because when UserActivationState.FAILED = true;  overallActivationStates admits just an array of UserActivationState[] then  UserActivationState is an array, I cannot assign "FAILED" property. 

Could you give me a hint!? 

Regards.

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: List User Activation Fails

Could you post the snippet of code for how you are trying to assign this property? I don't entirely follow your last post...

Garett
@garettBeuk
--
Goodbye everybody!
Regular Contributor
Posts: 51
Registered: ‎04-08-2013
My Device: Playbook
My Carrier: None

Re: List User Activation Fails

Sure,

GetUserActivationsSearchCriteria searchCriteria = new GetUserActivationsSearchCriteria();
UserActivationState activationsStat = null;


activationsStat.FAILED = true;

 

searchCriteria.overallActivationStates = activationsStat;

 

I am missing something, because "overallActivationStates" should get an Array.  

thanks!

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: List User Activation Fails

Have you tried setting activationsStat as the only element in a UserActivationState array, then assign that array to the overallActivationStates attribute?

Garett
@garettBeuk
--
Goodbye everybody!
Regular Contributor
Posts: 51
Registered: ‎04-08-2013
My Device: Playbook
My Carrier: None

Re: List User Activation Fails

Hi,

I have solved the problem as you said. But when I run I do not get what I expect.

- overallActivationState is null

- I got all users not just failed activation ones.

Thank you again.

Regular Contributor
Posts: 51
Registered: ‎04-08-2013
My Device: Playbook
My Carrier: None

Re: List User Activation Fails

Hello,

Is it possible to get the failed activations? 

Thank you very much for your help.

Daniel