Skip to main content

HTTP request step

Send an HTTP request from a Yeeflow form action, capture the status code and response, and verify how the form handles failure.

Use HTTP request in a form action to retrieve data or send it to an API. In the form designer, open Actions, select Add a step, and choose HTTP request. For example, a button can look up a record by ID and show the result on the form.

The Yeeflow Add a step menu with HTTP request highlighted.

Note

This step is available in form actions on list forms, approval forms, dashboards, and public forms. Use the HTTP Request action for requests that run inside a workflow.


Configuring the HTTP Request

  1. Execution Condition. Configure a condition if the request should run only after an input is provided. If the action can continue when the request is skipped, make sure later steps handle the absence of a response. Execution Condition of actions

  2. HTTP Address and Method. Enter the endpoint and choose the method the API expects, such as GET, PATCH, PUT, POST, or DELETE. Open the expression editor from HTTP Address to enter a fixed URL or build it from form variables.

  3. Authentication. Choose No Authentication, User/Password, or Built-in HTTP Service according to the API. The built-in service handles authentication for Yeeflow APIs. If the API expects a credential in a header, use the header name and value format it documents.

  4. HTTP Header and Data. Use a dictionary variable to supply header name/value pairs. Use Data to build the request body when the API requires one. For example, send JSON with the Content-Type the API expects.

  5. Status Code and Result. Assign separate variables to capture the HTTP status and response body. Later steps can use those values to decide whether to display data, show an error, or continue.

For a read-only test, choose GET and Built-in HTTP Service. Use a test app, list, and item ID in https://api.yeeflow.com/v1/lists/{appID}/{listID}/items/{id}?fields=Title. The fields parameter requests just the title from the list item. Example form action

Preview the form, run the request with a known item, and check the HTTP status code. For the Yeeflow API, also check Status in the response body. A value of 0 means success, and Message provides the error details. Confirm that the returned title belongs to the requested item.

Run the form again with a missing or inaccessible item after the successful request. Verify the message and check that the page never presents a prior result as the response to the new request. If there is no response body, make sure later steps can handle an empty result. Testing the form action

Did this answer your question?