Bookings time table filter

Hello,
I want to have this code on my staff’s dynamic profile page and show only results for that specific staff member, changing to whoever’s dynamic page I am on.
The issue is that if I have 10 staff, who offer 3 different types of classes a day, every 30 minutes, 6-10 hours a day, the query result is several hundred.
If I am a client, I want to login, select a staff member from the staff index page, view their profile/schedule.
I’ve looked through the API reference list but I’m not making any connections so far.
Code: https://support.wix.com/en/article/corvid-creating-a-bookings-timetable

Did you read just that one page or did you look through all of the Wix Bookings Support pages, as if not then I suggest you have a good read:
https://support.wix.com/en/wix-bookings/setting-up-wix-bookings

Especially the staff section:
https://support.wix.com/en/wix-bookings/managing-your-staff
You can add up to 150 staff members to your site, however, we recommend up to 50 staff members for optimal performance.

More info about Wix Bookings and Wix Code:
https://www.wix.com/wix-lp/corvid-bookings

Wix Bookings API:
https://www.wix.com/corvid/reference/wix-bookings.html

Also, you might want to vote for this request if you are wishing to have booking info on seperate pages:
https://support.wix.com/en/article/request-displaying-different-wix-bookings-service-categories-on-different-pages-of-your-site

Also, if you are wanting another staff member to keep an eye on the bookings, then have a read of this request and vote for it too:
https://support.wix.com/en/article/request-allowing-staff-to-manage-the-wix-bookings

However, please note that if you allow other members to become a contributor, then you are opening up your Wix site for others to see:
https://support.wix.com/en/article/contributor-roles
(So for example, they will be able to view your Wix dashboard and all the media files in the Site Files folder in the Media Manager.)

Thanks for the links, but I have been to every single one of them before and don’t see anything I need.

I think the API list has been open in chrome for like 3 weeks now. What I want to do is return data from this query based on the current staff member dynamic page I am on.

async function getAllStaff() {
const data = await wixData.query(“Bookings/Staff”).find();
return data.items;}

1 Like