Searching for Requirements based on documents or vise versa
Hello
I am trying to create a couple searches for dashboard parts unsuccessfully and was wondering if anyone has any suggestions. These are the searches:
Does anyone has any suggestions?
Thank you
Mehrnaz
I am trying to create a couple searches for dashboard parts unsuccessfully and was wondering if anyone has any suggestions. These are the searches:
- All requirements that have no external documents attached to them
- All external documents that are attached to a particular type of requirement (for instance FSR)
Does anyone has any suggestions?
Thank you
Mehrnaz
0
Comments
-
Hi Mehrnaz,
These are quite tricky queries as they require some understanding of how Activities are stored in BBGM. The Activities table in BBGM is used to store records of different Types and Classes, and BBGM presents these as Activities, Documents, Requirements etc to the user. Requirements are actually Activities where the Class ID is 3 or 4 - Grant Requirements or Payment Requirements. Documents are Activities where Class ID = 6, and External Documents are a sub-set of these. To distinguish between different Document types, we have to use the Activity Type ID. For External Documents, the Activity Type ID is 20.
When you have a Document attached to a Requirement, what you actually have is an Activity attached to another Activity. The Activity record has a column called Activity ID, and this is used to connect (in this example) the Document Activity to the Requirement Activity.
I am going to try to write a clearer explanation of all this one day, but for now, this is the search you need for your first query. The logic of this search (which must be run as a Requirements Search) is "Show me all the Requirements for which there is no related External Document Activity".
Activities.ID NOT IN (SELECT r.ID FROM Activities r INNER JOIN Activities ed ON r.ID = ed.Activity_ID AND ed.Type_ID = 20)
For your second query, you first need to find out the Type ID for your FSR Requirement. Start with a Filter Search for that Requirement Type, and change that to an Advanced Search. You will see that it will now look something like this: Activities.Type_ID = 5458 - this is the code for your selected Requirement Type.
Now you can do your Documents Search:
Activities.Type_ID = 20 AND Activities.Activity_ID IN (SELECT r.ID FROM Activities r WHERE Type_ID = 5458)
Let me know if these work out for you.
Cheers
Justin2 -
Thank you Justin. This did the trick. It makes sense now. I was looking into Requirement_Ext instead.
Thanks
Mehrnaz0
Categories
- All Categories
- 6 Blackbaud Community Help
- 211 bbcon®
- 1.4K Blackbaud Altru®
- 402 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 655 Blackbaud Grantmaking™
- 577 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 940 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.7K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 240 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 796 Community News
- 3K Jobs Board
- 54 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)

