CA Service Management

  • 1.  action macro to update closure code

    Posted May 01, 2016 05:47 AM

    hi there, i need assistance in action macro.

    i want to update closure code when status changes to close using Action Macro.

    assist me with fragment code for updating closure code to Cancelled

     

    table = usp_closure_code

    sym = Cancelled

    code = 400001



  • 2.  Re: action macro to update closure code

    Posted May 02, 2016 01:51 AM

    Hello Aqib,

     

    Try this code fragment. I am assuming that you are calling this against the Change Request table, in the same way that an Action Macro would raise the Severity, which is also held in that table.

     

    closure_code = <closure code>

     

    The Change Order table, stores "closure code" by the unique "id."  Eg "Successful" = "200".

     

    Is the code good, is it bad (Does it even work?) by itself, I can't say. But that's the basics at a guess.

     

    Thanks, Kyle_R.



  • 3.  Re: action macro to update closure code

    Posted May 02, 2016 02:07 AM

    already tried but says unknows



  • 4.  Re: action macro to update closure code

    Posted May 02, 2016 05:08 PM

    On what object are you creating the macro? Perhaps you could attach a screen shot showing the complete detail of the macro.



  • 5.  Re: action macro to update closure code
    Best Answer

    Posted May 04, 2016 04:52 AM

    done it by creating ITPAM event



  • 6.  Re: action macro to update closure code

    Posted May 04, 2016 08:29 PM

    Thanks for the update Aquib.

     

    Flagging your post as "Correct Answer" to close out the thread. You may wish to screenshot the PAM (scrub out with MS Paint any confidential items) and post it, if it may help someone later.

     

    Thanks, Kyle_R.