Issues with wixData.update( ... )

Hi! I’m trying to make a booking dashboard where I can click accept or dismiss for appointments. I am running this line of code to update the status of the booking:

wixData.update("pendingRequests", itemData);

and keep getting an error message saying “WDE0025: The pendingRequests collection does not exist. You cannot work with a collection using the Data API before it is created in the Editor.”

Am I doing something wrong? Is “pendingRequests” not my collection name?

Please help

Hi CL
For the wixData.update function you need to specify your Database name not that of dataset…
For finding out the Database Name

Click on the tree view on the left bottom of your screen. Then check the name there

Thank you so much, Ajit!! :slight_smile: