[Solved] Problems with Update Data via Modal using External API

Hi @jessica.torres,

Can you please send me the similar screenshot of the PUT/POST call to update the record using postman.

I tried using the URL you mentioned in the External API and getting the Access denied error.

This will help us complete the flow and implement the same on your project.

Thanks.

Hi Vishsahu,

Hi @jessica.torres,

I am not sure about the issue in API. I am able to make a PUT call to update the record, but i am still seeing the old data in the GET call after the update.

PUT call to update the record:

GET Call to fetch the update records, but still getting the old data:

Can you please check this and let me know what is the issue here?

Thanks.

Hi Vishsahu, you can try to send the data like this. Thanks

{

"id": "acfeb6e2ce7b",

"correo":"lilianamolina@gmail.com",

"nombre":"liliana camila",

"apellido":"molina daza",

"fechanacimiento":"1800-05-11",

"salario":865321

}

Hi @jessica.torres,

PUT call is returning 200 response, which means the data should change, but when i make the GET call to fetch the updated records, i am still seeing the old data. Means that the records are not getting updated.

PUT Call:

Response of GET call to fetch the updated data, but it is still returning the old data.

Thanks.

Hi, Vishsahu
image

1 Like

Thanks @jessica.torres

Now it worked fine. Let me add this flow in your DrapCode project to fix the issue which you are seeing.

Hi @jessica.torres,

This issue is fixed and i am able to test it.

You have binded the wrong collection here i.e ConsultarEmpleado instead of Empleado, becasue the data from the Modal popup is coming from Empleado collection.

Sorry i somehow messed up some settings, so the GET API is not returning the correct values, which i think you can fix in make.com

Once that is fixed, you can check the edit/update flow here

Please take a look and let me know if you see any issues.

Thank.

Hi, I try to create again and the same error occurs






Hi @jessica.torres,

Is the data coming on the list page from the GET Call?

Hi Vishsahu, When I click Submit it does nothing


Hi @jessica.torres

When i tested last time, your PUT API was working but when i tested todaty, it is again not working for me.

Can you please check?

Thanks.

Hi Vishsahu, again my PUT API is working, Now if you could help me with the problem? Thanks you so much.

Hi Vishsahu, could the problem be here?

Hi @jessica.torres,

Things looks correct to me.

Could you please setup a call with me to walk through this issue and fix it in one shot Calendly Meeting

Thanks.

1 Like

Hi Vishsahu, I setup a call with me with you yesterday to discuss this issue and fix it.

Thanks @jessica.torres

Hope the problem got fixed. Please feel free to reach out for any other questions.