CA Service Management

 View Only
  • 1.  acces to a extension attribute of a CI in a notification

    Posted Dec 03, 2015 05:36 AM

    Hi

     

    I want to send, by a notification, a value of a attr of a CI ;

     

    My model of the notification is :

     

     

    DEMANDEUR=@{chg.requestor.userid}

    TYPOLOGIE= @{chg.category.sym}

    APPLI=@{chg.z_solar_appli.name}

    TRIGRAMME=@{chg.z_solar_appli.assoc_app_extx.type}

    CODE_CTX=@{chg.z_solar_code_ctx.code_ctx}

     

    The z_solar_appli is a new attr added as a SREL to nr

     

    The mail received is :

     

    %DEMANDEUR=U00I048

    %TYPOLOGIE= Matériel-Infrastructure.Middleware-Intégration-Paas

    %APPLI=CIC UR Brique Courriers en Instance de Composition

    %TRIGRAMME=

    %CODE_CTX=autom

     

    It's OK for the name of the CI but KO but the field of the extension table : it is always empty .

     

    Can you have a solution ?

     

    Thanks

     

    Bruno



  • 2.  Re: acces to a extension attribute of a CI in a notification

    Posted Dec 03, 2015 12:45 PM

    Bruno,

     

    I tried referencing the extension attribute in several different ways and had no success.

    Also tried creating an attribute alias (Administration > Service Desk > Application Data > Codes > Alias) as a workaround, but I could not create that as well.



  • 3.  Re: acces to a extension attribute of a CI in a notification

    Broadcom Employee
    Posted Dec 03, 2015 05:07 PM

    Bruno, I don't think you can do it easily here. The schema is

    assoc_app_extx   BREL <- app_extx.id {id = ?}

    and you can see it is BREL not SREL so the reference there

    can't receive the value. I am not even sure it is possible to get it into notif template. Thanks _Chi



  • 4.  Re: acces to a extension attribute of a CI in a notification

    Posted Dec 04, 2015 03:06 AM

    Hi Chi,

     

    thanks for your ersponsa

     

    I manage to show the value of the field into a screen (.htmpl file). It's OK.

     

    I thought I can use it into a notification.

     

    I try the first solution.

     

    Best Regards



  • 5.  Re: acces to a extension attribute of a CI in a notification
    Best Answer

    Posted Dec 04, 2015 02:17 PM

    Just an idea: give the following a try:

    TRIGRAMME=@{chg.z_solar_appli.assoc_app_extx.0.type}

    Regards

    ............Michael



  • 6.  Re: acces to a extension attribute of a CI in a notification

    Posted Dec 04, 2015 02:33 PM

    It worked on SDM 12.7!

    Just tried this on our test environment.

    Thanks Michael.



  • 7.  Re: acces to a extension attribute of a CI in a notification

    Posted Dec 07, 2015 09:14 AM

    Hi.

     

    I tried this solution, It's OK. It's working.

     

    Thanks a lot.

     

    Best Regards