Clarity Service Management

Expand all | Collapse all

Fetching multiple access type for a contact using api

Jump to Best Answer
  • 1.  Fetching multiple access type for a contact using api

    Posted 02-27-2018 08:49 AM

    Hi All,

     

    I need to fetch the scoreboard node details for a given contact by using web service. Even I get the scoreboard node details for single access type, which is by default access type given in ca_contact table. But if the contact(user) have multiple access type, then how to fetch all the access types for that user.

     

    Please help me the same, also I am not able to understand the relation between roles and access type, I have tried to achieve required result with different table names but no luck.

     

     



  • 2.  Re: Fetching multiple access type for a contact using api

    Posted 02-27-2018 10:14 AM

    Mandar, a contact has one access type only. Maybe you mean something else? Thanks _Chi



  • 3.  Re: Fetching multiple access type for a contact using api

    Posted 02-28-2018 05:34 AM

    It might be, I am not exactly sure about. It may be role of contact that I am looking for. Can you please tell the me how role and access type linked each other.



  • 4.  Re: Fetching multiple access type for a contact using api

    Posted 02-28-2018 09:32 AM

    Mandar, a contact has one access type only. However, that access type could have multiple roles. And the contact itself could have multiple roles. The contact's roles= roles directly associated with the contact+the roles of the access types. Thanks _Chi



  • 5.  Re: Fetching multiple access type for a contact using api

    Posted 02-28-2018 05:50 PM

    To add to what Chi said, a user can only have one role in Web Services and this is defined in the Access Type. There are 2 fields in the Access Type for default roles, one for REST and one for SOAP.



  • 6.  Re: Fetching multiple access type for a contact using api

    Posted 03-01-2018 05:20 AM

    so, can we fetch these roles against given contact (or contact wise) using soap?



  • 7.  Re: Fetching multiple access type for a contact using api

    Posted 03-01-2018 05:24 AM

    Also I have one query, if you can help on this, can we stop reopening of closed tickets? I have applied some constraints on Resolve ticket for reopening, but as i see same reflect in case of closed tickets. 



  • 8.  Re: Fetching multiple access type for a contact using api
    Best Answer

    Posted 03-02-2018 05:01 PM

    A contact record can still have Roles associated with it  (its an lrel).... maybe something like this help?

     


    <ser:doSelect>
    <sid>483603602</sid>
    <objectType>cnt_role</objectType>
    <whereClause></whereClause>
    <maxRows>-1</maxRows>
    <attributes>
    <!--1 or more repetitions:-->
    <string>contact.userid</string>
    <string>role_obj.name</string>

    </attributes>
    </ser:doSelect>
    </soapenv:Body>
    </soapenv:Envelope>



  • 9.  Re: Fetching multiple access type for a contact using api

    Posted 03-05-2018 06:31 AM

    Thank you Raghu, it worked



  • 10.  Re: Fetching multiple access type for a contact using api

    Posted 03-05-2018 05:08 PM

    glad it helped Mandar

     

    _R