This page is not a part of an official Int4 documentation.
Int4 Scripts repository

BOAGetInput

BOAGetInput - retrieve input field from Business Object envelope

BOAGetInput

#Int4 KB sample — AS IS, not official docs, no support. Test before use.  
DEFUN("GET_INPUT", ("FILE"),
  LOCALS(("ESCAPED","UNESCAPED"),
    # Extract the INPUT_PAYLOAD content using XPath
    ESCAPED = CXPATH("//INPUT_PAYLOAD", FILE)[1];

    #decode
    UNESCAPED = DECODE_BASE64(ESCAPED);
    UNESCAPED
  )
);

DEFUN("GET_BO_PARAMETER", ("FILE","PARAM"), 
    # Extract BO Parameter 
    CXPATH("//_-INT4_-ST_BO_PARAMTER_VALUE[NAME='" & PARAM & "']/VALUE", FILE)[1]
);

DEFUN("GET_BO_DEST", ("FILE"), 
    # Extract BO Parameter 
    CXPATH("//DESTINATION", FILE)
);
#=============================================================================
#  SUPPLEMENTARY SAMPLE — NOT OFFICIAL DOCUMENTATION
#=============================================================================
#  Provided AS IS to active customers via the Int4 Knowledge Base.
#  No warranty, no SLA, no support coverage. Test in a non-production
#  environment before use. You are responsible for any consequences of
#  running or modifying this code.
#=============================================================================