IBM QRadar SOAR

IBM QRadar

Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Hello function error !!

    Posted Wed April 03, 2019 08:01 AM
    Hi folks,

    I had created a simple function to return back input but fails with below error, could you please look into and advise.

    An error occurred while processing the action acknowledgement. Additional information: Post-processing script for Function 'test_func' from Workflow 'starter' was unable to complete because: Automatic proxy initialization should only occur on proxy classes.


    @function("test_func")
    def _test_func_function(self, event, *args, **kwargs):
    """Function: Name"""
    try:
    # Get the function parameters:
    user_hello = kwargs.get("func_input")
    # PUT YOUR FUNCTION IMPLEMENTATION CODE HERE
    yield StatusMessage(user_hello)
    results = {
    "value": "Welcome",
    "user": user_hello
    }
    logging.info(str(results))
    yield StatusMessage("done...")
    # Produce a FunctionResult with the results
    yield FunctionResult(results)
    ***************** END ********************

    POST Script
    strtext= workflow.properties.results
    incident.addNote(str(strtext))


    ------------------------------
    Venkatesh
    ------------------------------


  • 2.  RE: Hello function error !!

    Posted Wed April 03, 2019 08:16 AM
    fixed it by using dict format

    strtext= workflow.properties.results['value']

    thank you

    ------------------------------
    Venkatesh
    ------------------------------