# Search in Backend Workflows not Working

**URL:** <https://forum.bubble.io/t/search-in-backend-workflows-not-working/103117>\
**Category:** APIs\
**Created:** [July 23, 2020, 5:01pm UTC](https://forum.bubble.io/t/search-in-backend-workflows-not-working/103117 "2020-07-23T17:01:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellodwelling](https://avatars.discourse-cdn.com/v4/letter/h/779978/32.png) [@hellodwelling](https://forum.bubble.io/u/hellodwelling)\
**Post date:** [July 23, 2020, 5:01pm UTC](https://forum.bubble.io/t/search-in-backend-workflows-not-working/103117/1 "2020-07-23T17:01:30Z")

</div>

Hello,

I’m trying to create an MVP to schedule events with various team members. Here’s the process I am trying to create:

1. User schedules event (currently through Calendly)
2. Calendly webhook sends event details to Bubble
3. Update Bubble database with event details
4. Do a search for a team member with availability during scheduled event
5. Add new team member to meeting invite (currently doing this by sending a webhook to Zapier - it’s working when I hard code an email address)
6. Update Bubble database if event is rescheduled or cancelled

However, I cannot get step 4 to search correctly as a backend workflow, although it works great when I run the same search in the app (e.g., on our confirmation page). When run in the backend workflow, the search turns up blank. Here’s the search I’m running:

 ![Capture](https://us1.discourse-cdn.com/bubble/original/3X/d/9/d933688b5389e3820ba3216874406e4fce88b8aa.png)

Here’s the data structure (also open to feedback here - struggled to upload date ranges via csv):

 ![Capture2](https://us1.discourse-cdn.com/bubble/original/3X/6/5/65d6311768de277295596742826351c6e59b02af.png)

Any advice or thoughts? Happy to share more info as helpful.

Thank you!!

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [July 23, 2020, 6:34pm UTC](https://forum.bubble.io/t/search-in-backend-workflows-not-working/103117/2 "2020-07-23T18:34:00Z")

</div>

Hey there 👋

Just a guess here, do you have privacy roles set up? It might not work if you have privacy rules that block you from doing a search on the backend. That is one reason why things work on the front end and not the back end. You can do a test by changing the API endpoint to ‘ignore privacy rules when running the workflow’.

Hope that helps! 😊

@j805 [www.NoCodeMinute.com](http://www.NoCodeMinute.com)

**For All Your No-Code Education Needs:**

- One-on-One Tutoring
- eLearning Hub
- Video Tutorials
- No-Code Classes

---

<div class="post-metadata">

**Author:** ![hellodwelling](https://avatars.discourse-cdn.com/v4/letter/h/779978/32.png) [@hellodwelling](https://forum.bubble.io/u/hellodwelling)\
**Post date:** [July 23, 2020, 7:15pm UTC](https://forum.bubble.io/t/search-in-backend-workflows-not-working/103117/3 "2020-07-23T19:15:44Z")

</div>

@J805 That was the issue; thank you so much!!

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [July 23, 2020, 7:24pm UTC](https://forum.bubble.io/t/search-in-backend-workflows-not-working/103117/4 "2020-07-23T19:24:50Z")

</div>

No problem! Glad it helped. 😊
