This example uses an approval-form button to read one known record from a Yeeflow test list. Use a list and fields approved for the intended readers.
The form takes an item ID, runs a GET request, and shows the response in a text control. Verify the read-only setup in a test form first.
1. Setting Up the Form
To get started, open the form designer of an Approval form. Follow these steps to set up the necessary controls:
1.1 Adding Controls to the Form
Add a Single line control named Item ID with field ID field_ItemID. Keep the ID as text so long numeric identifiers retain their exact digits.
Add a Multiple line control named Item Content with field ID field_ItemContent. Set it to Readonly in Validation. Prepare a separate workflow variable for the HTTP status code.
1.2 Adding a Button Control
Now, add a Button control to the form and set its display text as "Get List Item Data." Customize the styles of this button to match the form's design.
2. Creating the "HTTP Request" Form Action
2.1 Opening the Actions Management Window
Click the "Actions" button from the top-right of the form designer to open the Actions management window.
2.2 Adding the "HTTP Request" Form Action
Click the "+ New action" button to create a new form action. Change the name of this action to "HTTP Request."
2.3 Adding the HTTP Request Step
Click the "+ Add a step" button, and from the step type pop-up window, select "HTTP Request."
3. Configuring the HTTP Request Step
3.1 Obtaining the API URL
This example reads one record from a data list using the record ID.
In the Lists section of the Yeeflow API reference, look for Get an item by id with the GET method.
Use this GET URL pattern. The fields query parameter limits the returned business fields. Use Title if it is a field in your test list, or substitute an approved field name.
https://api.yeeflow.com/v1/lists/{appID}/{listID}/items/{id}?fields=Title
3.2 Configuring the HTTP Request Step
In the HTTP Request step, open the Expression Editor beside HTTP Address. Add the fixed HTTPS address, including your test application and list IDs, as text.
Find appID and listID in the target list URL. The v1 documentation uses 41 for a Workflow Center list and 30 for other lists. Use the values for your test list.
Insert the Item ID workflow variable in place of {id}, then add ?fields=Title as the final text segment. Use the numeric record ID as text. Keep the host, application ID, list ID, and requested fields fixed.
Click "OK" to close the Expression Editor window.
Choose GET and select the Yeeflow built-in HTTP Service for this endpoint. Use configured authentication for other services. Keep credentials out of the URL and visible form fields.
Bind Result to the Item Content workflow variable and Status Code to the separate HTTP status variable. Result stores the response body. Status Code stores the HTTP status.
Click the "Save" button to save the settings of this HTTP Request step.
4. Binding the Action to the Button
Select the "Get List Item Data" button from the form to open the properties settings panel. From the Content tab, expand the Action group, and select the "HTTP Request" action from the dropdown list.
5. Testing the Functionality
Clear the previous output before a new lookup. In Preview, enter the exact ID of a known record in your test list and click Get List Item Data.
First check that the HTTP status is 200. Then check that the JSON Status is 0 and Data contains the expected fields. The Item Content control shows the response body as text.
Use a known missing ID in the test list to check the failure message. Verify that the form clears a previous successful result. Check the response Message when the API reports an error.
Repeat the test using accounts that represent the intended roles. Verify that the form only exposes approved test records and fields. Readonly prevents editing of the displayed value. Verify data access separately.



