HTTP Request in formular done by workflow\trigger -> response needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ednt
    Member
    • May 2022
    • 43

    #1

    HTTP Request in formular done by workflow\trigger -> response needed

    We need to send a http request in a formular.
    Since this is not directly possible we use workflow\trigger to send the http request.
    This works.

    Problem: we need the response.

    workflow\lastHttpResponseBody() in the formular returns null
    Maybe it is to fast , or it is not posible to fetch the response from an other workflow.

    So:

    How can we get the response?

    Or how it is possible to use http request in formular script?
  • yuri
    Member
    • Mar 2014
    • 8958

    #2
    Access the response in the workflow that sends the request. Then, write the response from workflow\lastHttpResponseBody() to some entity field. You can make this field not accessible for users. Then, you should be able to read the value using record\attribute function.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...