How to Query Organizations with Emails in netFORUM Enterprise xWeb with an Audience

This document explains how an xWeb integrator can return information about organizations and individuals through an Audience in the Fundraising module.

What is an Audience?

An Audience is a way to stack a collection of one or more netFORUM queries. The Audience acts as a Venn diagram assembler of queries. The results of the Audience may be the common intersection of two or more queries, or the sum of two or more queries, or the exclusion of any particular query. See Audience for more.
netFORUM xWeb contains web methods to get the list of Audiences in netFORUM, to get the schema of a particular Audience in order to determine any ask-at-runtime parameters of any of the component queries, and to get the results of an Audience.

What is a Constituent?

A fundraising constituent is an actual donor, or a prospect donor. A fundraising constituent can also be an individual, organization, or household.  Be aware that while every fundraising constituent must also be an individual, organization or household, the converse is true: not every individual, organization or household is guaranteed to be a constituent in every netFORUM instance.  netFORUM will create a constituent whenever one of these three customers types makes a donation. There is a netFORUM system option called CreateConstituentOnIndOrOrgAdd​. If this system option is true, then netFORUM automatically creates a constituent for every individual or organization. Most netFORUM customers who are primarily fundraising organizations have this system option set to true.

Requirements and Prerequisites

  • Requires netFORUM client to be running netFORUM 2014.1 or later in order to use the GetAudience web methods which were released in netFORUM 2014.1.
  • Assumes that any individuals and organizations you want to query exist as Constituents in the Fundraising module

Fundraising Constituent Query

Create a query in Fundraising Constituent group item.  Include any necessary columns in the Query Conditions and Columns.
Sample Query Name: “Constituents (any customer type) with a donation greater than $5000”

Query Conditions

Depending on the capabilities of the integrating application, you might be able to include ask-at-runtime parameters, such as the example of Address:State/Territory query condition illustrated above.

Query Columns


Take care NOT to select any columns from Individual, as doing so will implicitly filter out Organizations (and vice versa). Include only columns and conditions that apply to any customer type (individual, organization, chapter, household).

Fundraising Constituent Audience

Next, create an Audience in the Fundraising Constituent group item and include this query. You may include other Fundraising Constituent queries as well.

xWeb GetAudience Web Methods

In xWeb, this Audience will appear in the GetAudienceList web method, and you can get the schema of the particular Audience with the GetAudienceDefinition method, and and you will be able to get the results of the Audience by calling GetAudience.

Sample GetAudience Request

Note the ask-at-runtime parameter node. The parameter name (a guid value) can be determined from the GetAudienceDefinition web method.
<soapenv:Envelope xmlns:soapenv="" xmlns:ns="">
        <!-- ask-at-runtime parameter for Address::State/Territory: -->

Sample GetAudience Response

Observe that there are a variety of customer types as shown in the <cst_type> element, but each type has an email address (cst_eml_address_dn) and a Customer Key (dnr_cst_key).
<soap:Envelope xmlns:soap="" xmlns:xsi="" xmlns:xsd="">
    <AuthorizationToken xmlns="">
    <GetAudienceResponse xmlns="">
        <Results recordReturn="33">
            <cst_name_cp>Ms Tammy Jones</cst_name_cp>
            <adr_city_state_code>Centreville, VA  20120</adr_city_state_code>
            <cst_name_cp>Mr Bob Individual</cst_name_cp>
            <adr_city_state_code>state, VA  13245</adr_city_state_code>
            <cst_name_cp>The Williams Foundation</cst_name_cp>
            <adr_city_state_code>vienna, VA  22102</adr_city_state_code>
            <cst_name_cp>The Smith Family</cst_name_cp>
            <adr_city_state_code>Arlington, VA  22102</adr_city_state_code>
            <cst_name_cp>The Arlington Chapter</cst_name_cp>
            <adr_city_state_code>Arlington, VA  22102</adr_city_state_code>

Next Steps in xWeb

Based on the results of the GetAudience, you can use the Customer Key property (dnr_cst_key) to retrieve more information about each constituent. If you need to retrieve information specifically about an individual or an organization, then you may need a combination of separate queries into each Object type using GetQuery and specifying different object names (Organization, Individual, etc.).


Q. Can you create an Audience with Organization queries?

A. No. The Audience is available for Individuals, Household and Constituents. The focus on this article is how to use the Constituent Audience as a backdoor way of querying organizations, given the caveat that depending on the netFORUM instance, not every organization will necessarily be a constituent as well.

Required Tags:

Article Type: 
Product Info
Product Line: 
netFORUM Enterprise
Product Module/Feature: 
Product Version: 
No votes yet