CA Service Management

 View Only
Expand all | Collapse all

send information from Catalog to Service desk

  • 1.  send information from Catalog to Service desk

    Posted Oct 06, 2019 08:57 PM
    Hi friends, I need someone to help me. Some time ago I saw information about the integration between Service Desk and Catalog and now I can't locate.
    I need to send the values ​​that I have in the fields of the form of my service in Catalog to the request in Service desk.
    I know it is possible to group all the information and dump it into the Service Desk description field.
    
    Anyone have any ideas?
    
    Regards


  • 2.  RE: send information from Catalog to Service desk

    Posted Oct 07, 2019 03:55 AM
    Hi Andreina,

    You can get as an sample the "request an issue" offering. 

    This is integrated with SDM by java daemon.

    In this sample offering, you can see the form have the SDM attributes on this format --> casm_attr_description, casm_attr_summary, casm_attr_xxxxxxxxx.

    Each attribute with id casm_attr_xxxxxxxxx is sended automatically by java daemon to SDM.

    This means the you can have a catalog form with any data and you can group all this data using javascript on hidden attribute called casm_att_description.

    This pass all the data set in casm_att_description to SDM description.

    Regards,
    Carlos


  • 3.  RE: send information from Catalog to Service desk

    Posted Oct 11, 2019 11:55 AM
    Hola Carlos, gracias por tu respuesta. 

    Si, estuve realizando pruebas. 
    Estuve viendo el siguiente vídeo: https://www.youtube.com/watch?v=ls-UcbDrK1Y&list=PLynEdQRJawmxzRAWRffwpXetTc3wtIq4J&index=4 
    Estaré probando con javascript

    Por otro lado, tengo dificultades para crear una solicitud en SD. Según lo investigado debo agregar un campo de texto y en el Id ca_sdm_attr_type y agregarle el valor R, sin embargo cuando realizo las pruebas, deja de crear el ticket en SD. 
    Sabes si estoy haciendo algo mal o me falta alguna configuración para que no abra un incidente si no una solicitud?

    Saludos
    Andreina


  • 4.  RE: send information from Catalog to Service desk

    Posted Oct 11, 2019 12:18 PM
    jajaja olvidalo... ya lo solucione...


  • 5.  RE: send information from Catalog to Service desk

    Posted Oct 11, 2019 06:52 PM
    Perfecto.

    Me alegro que ya funcionara bien. Para el tema de la descripción te será muy fácil en javascript, si tienes alguna duda, creo que tengo algún ejemplo.

    Regards,
    Carlos


  • 6.  RE: send information from Catalog to Service desk

    Posted Oct 14, 2019 09:25 AM
    Hola Carlos, espero estés bien. 
    Estoy teniendo problemas para enviar la información de los campos de mi formulario al campo descripción de SD. 
    Tengo el siguiente script

    {

    empaquetaSolicitud : function() {
    var resultado = '';
    resultado = 'Pedido de: ' + ca_fdGetTextFieldValue(ca_fd.formId,'txtItem') + '\n\nDescripción: ' + ca_fdGetTextFieldValue(ca_fd.formId,'txtDescripcion');
    ca_fdSetTextFieldValue(ca_fd.formId,'ca_sdm_attr_description',resultado);

    return true;
    },

    }

    No se por que no me funciona. Me estaría faltando alguna configuración?

    Saludos
    Andreina


  • 7.  RE: send information from Catalog to Service desk

    Posted Oct 14, 2019 10:07 AM
    Hola Andreina,

    el script parece correcto.

    Cuando estas llamando a la función? En el onSubmit del formulario?

    Saludos,
    Carlos


  • 8.  RE: send information from Catalog to Service desk

    Posted Oct 14, 2019 10:31 AM
    Si, 

    Coloque en el campo onSubmit del formulario ca_fd.js.empaquetaSolicitud();
    Hace falta configurar algo mas?

    Saludos
    Andreina


  • 9.  RE: send information from Catalog to Service desk

    Posted Oct 14, 2019 10:40 AM
    No, en principio lo tienes todo bien.

    Doy por supuesto que el campo ca_sdm_attr_description lo tienes en el formulario como hidden ¿correcto?

    Saludos,
    Carlos



  • 10.  RE: send information from Catalog to Service desk
    Best Answer

    Posted Oct 14, 2019 10:59 AM
    Edited by Christopher Hackett Oct 14, 2019 06:26 PM
    Hiciste que me diera cuenta de mi error. 

    Tenia el campo txtItem y txtDescripcion pero no tenia ningún campo asociado a: ca_sdm_attr_description. 

    Lo agregue y ya funciona correctamente. 

    Muchas gracias!!  :)

    You made me realize my mistake. I had the txtItem and txtDescripcion field but I didn't have any fields associated with: ca_sdm_attr_description. Add it and it works correctly. Thank you!! :)

    Saludos
    Andreina