Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

FetchXML - Only display the records that have the following criterias - is it possible?

$
0
0

Hi,

Is it possible to create a fetchXML that will only display records per day (created on) where the count of flag1 and flag 2 is greater than or equal than 4? The entity name is crm_timeregistrations. 

Record set 1 - this will be displayed because there is 2 x crm_flag1=yes and 2 x crm_flag2 = yes. So in total 4 x yes. 

Created on: 07-01-2019, crm_flag1=yes, crm_flag2 = yes
Created on: 07-01-2019, crm_flag1=yes, crm_flag2 = yes
Created on: 08-01-2019, crm_flag1=no, crm_flag2 = no

Record set 2 - this will not be displayed because there is only 1 x crm_flag1= yes and 1 x crm_flag2 = yes. So in total 2 x yes. 

Created on: 09-01-2019, crm_flag1=yes, crm_flag2 = yes
Created on: 09-01-2019, crm_flag1=no, crm_flag2 = no
Created on: 10-01-2019, crm_flag1=no, crm_flag2 = no


Viewing all articles
Browse latest Browse all 79901

Trending Articles