简体   繁体   中英

'in-year' operator in FetchXml condition

I was looking for an 'in-year' operator in FetchXML conditions, but only found the 'in-fiscal-year' operator .

Is there a workaround for this functionality?

The only Condition Operators defined by the Schema for years that are not fiscal operations are:

  • last-year
  • this-year
  • next-year
  • last-x-years
  • next-x-years

If you want a specific year (in 2008 for example) your best bet is to use the between operator:

<condition attribute = 'createdon' operator='between'>
    <value>2008-01-01 00:00:00</value>
    <value>2008-12-31 23:59:59</value>
</condition>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM