Return field that erred in ags from processflow

 2 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Matt
New Member
Posts: 3
New Member
    I've been trying to figure out a way to return the field in error in processflow after an ags call has failed.  For example, I'm running an ags call to PA52.1 and one of the fields has the same value as the current value (which causes it to error).  I'd like to capture which field is in error but for some reason, that particular field is unavailable to use after the ags call is made.

    Here's part of the xml returned from the ags call:

    <Message>New value is the same as previous valueMessage>
    <MsgNbr>146MsgNbr>
    <StatusNbr>001StatusNbr>
    <FldNbr>PCT-NEW-VALUE-1r7FldNbr>

    I'm able to reference AGSPA52_StatusNbr
    But I'm not able to reference AGSPA52_FldNbr

    Has anyone been able to reference the FldNbr variable after an ags call in processflow?
    BarbR
    Veteran Member
    Posts: 306
    Veteran Member
      This is the syntax I use when adding an action to PA52.
      PAT-FLD-NBR-18=20&PCT-NEW-VALUE-1r7=
      So the variable name you are looking for might be PAT-FLD-NBR-18.
      Matt
      New Member
      Posts: 3
      New Member

        I'm trying to figure out how to get the name of the field that is in error.  In my example, PCT-NEW-VALUE-1r7 is the field that is in error because it contained the same value that the person I'm taking the action on already has.  I'd like to return in an email a little debugging information (more than just the standard: "New value is the same as previous value" that you can get from AGSPA52_RETURN_MSG)

        When you process this PA52 in the IOS API builder, at the very bottom of the XML response from running the ags call, you get some information on the return status of a call which includes the name of the field that you didn't fill out correctly.  I can't seem to get that field name from the ags call.  If you follow the normal naming convention for returned values in an ags call, it follows that the name of the variable that contains this information is AGSPA52_FldNbr but I get:

        ReferenceError: "Transaction5010_FldNbr" is not defined. (threadScript#1)

        It's possible that this particular value in the return XML is not available but I figured I'd ask around and see if anyone had been able to get it.