Combine queries for campaign targets
Important
This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
You can combine queries that you previously created, and then use the queries to select targets for the current campaign.
Click Sales and marketing > Common > Campaigns > All campaigns.
In the All campaigns form, select the campaign for which you want to define targets.
Click the Targets FastTab, and then click Select targets.
In the Campaign target contacts form, under Drop area, click Clear to clear the Expression field.
Drag the query from the Queries area to the Expression field under Drop area.
You can also type the name of the query in the Expression field, instead of dragging the query.
If there is more than one query in the Expression field, combine the results of the queries by using the buttons to insert logical operators.
Click Execute to run the queries.