How is your experience with the OutSystems Community?
20
Views
4
Comments
Solved
Data not showing in form eventhough Id is passing while consuming Api
Question

Hi Everyone,

I am currently practicing CRUD operations in OutSystems by consuming REST APIs. However, I am facing a couple of issues:

  1. When I click on a record (e.g., Id = 1), the corresponding data is not being populated in the form for editing.

  2. When I click the Save button to create a new record, blank data is being saved to the database instead of the values entered in the form.

I have checked the basic mappings but haven't been able to identify the root cause.

If anyone has a sample OML demonstrating complete CRUD operations using API consumption (Create, Read, Update, and Delete) in O11, I would greatly appreciate it if you could share it. Having a reference implementation would help me understand the correct approach and troubleshoot my issue.

Thank you in advance for your help.

2025-09-25 14-38-22
Lokesh Kumar Yadav
Solution

This issue usually happens when the form inputs are not properly bound to the local variable/entity record.

For the edit issue, make sure you are assigning the selected API record data to the form variable before opening the form screen or popup.


For the blank save issue, verify that the Input Widgets are correctly mapped to the local variable attributes and that the variable is being passed in the API request body during the Create action.


Also, check whether the form variable is getting reset before the Save action is executed.

This OML will help you 

ExposeFeatureAPI.oml
ConsumeCURDAPI.oml
2026-05-28 06-26-16
Himanshi Gurjar

Thanks Lokesh for providing Oml files.I have gone through it and understood where I was making mistakes .

2026-06-05 12-38-17
Eduardo Jauch

Hello Himanshi, 

You didn't specified the type of application. Is it traditional, reactive, mobile...? I will assume that it is not traditional web.

Things to check.

I will assume you are using a DATA ACTION in the screen to fetch the data from the API.

1. Check the API is actually returning the data

2. Check you are assigning the result of the call to the API method to the output of the DATA ACTION

3. Check the inputs in the screen are bound (variable property) to the output of the DATA ACTION

Regarding saving the data.

1. Check the Server Action you created is receiving the values in its input parameter.

2. Check the Server Action is calling the Entity Action and passing the correct input parameter to it.

If you want, share your APP/Module here so that we can take a look.

Cheers

2026-01-28 16-57-48
Mihai Melencu
Champion

Hello @Himanshi Gurjar ,

Are you able to share your OML or the APIs that you are using?

2025-09-25 14-38-22
Lokesh Kumar Yadav
Solution

This issue usually happens when the form inputs are not properly bound to the local variable/entity record.

For the edit issue, make sure you are assigning the selected API record data to the form variable before opening the form screen or popup.


For the blank save issue, verify that the Input Widgets are correctly mapped to the local variable attributes and that the variable is being passed in the API request body during the Create action.


Also, check whether the form variable is getting reset before the Save action is executed.

This OML will help you 

ExposeFeatureAPI.oml
ConsumeCURDAPI.oml
2026-05-28 06-26-16
Himanshi Gurjar

Thanks Lokesh for providing Oml files.I have gone through it and understood where I was making mistakes .

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.