RE: How to filter crm view records for created on yesterday & day before yesterday.
Please try the below fetchxml.
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="contact">
<attribute name="fullname" />
<attribute name="telephone1" />
<attribute name="contactid" />
<order attribute="fullname" descending="false" />
<filter type="and">
<condition attribute="createdon" operator="yesterday" />
<condition attribute="createdon" operator="last-x-days" value="2" />
</filter>
</entity>
</fetch>