Workflows
by have become even more powerful by enabling you to do even more with your HR data.
The
Catch
workflows can now leverage their returned output to control the HTTP response given to the caller. Choose the
status_code
,
body
and even custom HTTP headers of your choice to enable even more automation in your organization.
To learn more check out the dedicated section in our Developers documentation!
See below how it works out for this demo workflow
import json
def workflow(_request, settings):
# Controlling the HTTP response
return dict(
status_code=202,
body=json.dumps(dict(values=[1, 3, 4], name="Test")),
headers={"custom_header": "custom_value", "Content-Type": "application/json"}
)
Screen Shot 2021-03-12 at 11