Announcement

Collapse
No announcement yet.

_lastHttpResponseBody in BPM Flowhart

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • _lastHttpResponseBody in BPM Flowhart

    I have a simple flowchart attached to Case creation that send an http request to an external service and then retrieve the result to update the target record.
    I used the formula json\retrieve($_lastHttpResponseBody, 'generated') to retrieve an attribute from the body, but it returns the error:
    function: json\retrieve, index: 1, should be: string [] []
    I also tried to log the _lastHttpResponseBody content with a custom formula and it looks like the _lastHttpResponseBody variable is always empty.
    I also tried with a sample rest service (https://reqres.in) to be sure that it was not my APi fault, and the _lastHttpResponseBody is always empty.
    My advanced pack version is 2.8.4
    any help?
    thank you


  • #2
    Show full process config.

    This example (attached) working fine
    Attached Files

    Comment


    • #3
      Ok, thank you for the support, now it's working.
      The problem was that I was retrieving the $_lastHttpResponseBody on a subsequent step of the flowchart and not in the same step as your example shown, so i changed my flowchart from this:
      Click image for larger version  Name:	bpm1.PNG Views:	0 Size:	16.9 KB ID:	74136


      to this

      Click image for larger version  Name:	bpm2.PNG Views:	0 Size:	20.8 KB ID:	74137


      Thank you
      Last edited by Ceonello; 09-02-2021, 07:17 AM.

      Comment

      Working...
      X