CA Service Management

 View Only
  • 1.  Create Request using Unicenter Service Desk Web Services

    Posted Aug 10, 2015 04:53 PM

    Hi All,

     

    I am trying to create a request using web services. I am able to create it but it contains only basic information e.g. requestor information is missing. It accepts the attrVals as input parameter that is an array of key value pairs. But I am not sure what keys are availble. e.g. I tried to put requestor as key and it failed. Is there any way to find out the mapping between the attributes on the form in UI and the actual attribute name?

     

     

    Thanks,

    Gaurav



  • 2.  Re: Create Request using Unicenter Service Desk Web Services

    Posted Aug 10, 2015 09:31 PM

    Hi Gaurav,

     

    The attribute name for the requestor is "requested_by" to populate the value. Below is an example:

     

                <string>customer</string>

                <string>cnt:0F02F0B7DB26014086E9CC1590FF8C46</string>

                <string>category</string>

                <string>pcat:5109</string>

                <string>log_agent</string>

                <string>cnt:0F02F0B7DB26014086E9CC1590FF8C46</string>

                <string>requested_by</string>

                <string>cnt:0F02F0B7DB26014086E9CC1590FF8C46</string>

     

    You may also refer below document as a reference:

     

    Web Services Business Methods - CA Service Management - 14.1 - CA Wiki

     

    Thanks,

    Naveen



  • 3.  Re: Create Request using Unicenter Service Desk Web Services
    Best Answer

    Posted Aug 10, 2015 10:06 PM

    The SDM utilities 'bop_sinfo' - show information about a class of object - and 'bop_odump' - dump the contents of one or more objects - can be useful here.  For example,

    bop_sinfo -d cr | find /I "cnt"

    ...yields all references to the contact object 'cnt' (and to a couple of other objects whose names happen to contain 'cnt') in the CR object:

     

    C:\Users\Administrator>bop_sinfo -d cr | find /I "cnt"

      last_mod_by          SREL -> cnt.id TENANCY_UNRESTRICTED

      notify_list          BREL <- lrel_notify_list_cntntf.cr (LREL cnt) {cr = ?}

      log_agent            SREL -> cnt.id REQUIRED TENANCY_UNRESTRICTED

      customer            SREL -> cnt.id REQUIRED SERVICE_PROVIDER_ELIGIBLE

      audit_userid        LOCAL SREL -> cnt.id TENANCY_UNRESTRICTED

      requested_by        SREL -> cnt.id

      orig_user_cost_center SREL -> cost_cntr.id

      recip                LOCAL SREL -> cnt.id SERVICE_PROVIDER_ELIGIBLE

      reciptemp            LOCAL SREL -> cnt.id SERVICE_PROVIDER_ELIGIBLE

     

    Using 'bop_odump' you can then extract fields from objects, which will also give you the format and potentially some test data for your web service call, e.g.

     

    C:\Windows\system32>bop_odump domsrvr cr "ref_num='88'" ref_num requested_by

    Persid               ref_num                       requested_by

    cr:400765            88                            8D4A1A8D063B994082FBA2A2C89F1F68

    1 objects

     

    Bop_odump supports 'dot' references as well:

     

    C:\Windows\system32>bop_odump domsrvr cr "ref_num='88'" ref_num requested_by.last_name requested_by.first_name

    Persid               ref_num             requested_by.last_n requested_by.first_name

    cr:400765            88                  James               Edward

    1 objects

     

    One downside of 'bop_odump' is the 20 character column width (does anyone know how to change that?) which means that unless a UUID is the last attribute displayed it will be truncated.  In the example below 'customer' and 'requested_by' are clearly the same UUID, but 'requested_by' is truncated:

     

    C:\Windows\system32>bop_odump domsrvr cr "ref_num='88'" ref_num requested_by customer

    Persid               ref_num             requested_by        customer

    cr:400765            88                  8D4A1A8D063B994082F 8D4A1A8D063B994082FBA2A2C89F1F68

    1 objects

     

    Hope that helps, anyway.

    James



  • 4.  Re: Create Request using Unicenter Service Desk Web Services

    Posted Aug 11, 2015 03:12 PM

    Thanks for sharing this.