Do you have the user id as a column in your view? If so, you can just add a table criteria in the External BAQ query builder for Field: DcdUserID = BAQ special constant (CurrentUserID)
Here’s an example where I’ve done this:
My research shows that external BAQ can only use tables or views, so this will not work.
I need the CurrentUserID prior to running the query for performance as there are a lot of rows. Also, by not having that ahead of time, I would need to return 10-15x the rows to list all the users possible for each data row and then could filter that out but that’s even more inefficient.
I’ve stuck with modifying the internal BAQ for now.
Jose, filtering in the BAQ based on CurrentUserID will not work as the filtering needs to be done in the external query or else the performance is unacceptable.
Tanner, I’ll def check out the table valued function approach… looks promising.
FYI… I did a blend of external BAQ to handle the complex joins I needed and then did the CurrentUserID filtering in the external BAQ as well and performance was not affected.