Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I am trying to apply filter in fetchxml to get the lists of cases where 1 week back from the due date email should trigger using ms flow.
What filter should i apply in fetch xml . I am trying with duedate on adddays(utcnow(),7) so thta i can get the future due date record lists.Is it coorect way to use in fetchxml in ms flow ?
Hi,We can use "Next X Weeks" filter in FetchXML to get the records as below:FetchXML:<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"> <entity name="incident"> <attribute name="title" /> <attribute name="ticketnumber" /> <attribute name="createdon" /> <attribute name="incidentid" /> <attribute name="caseorigincode" /> <order attribute="title" descending="false" /> <filter type="and"> <condition attribute="new_duedate" operator="next-x-weeks" value="1" /> </filter> </entity></fetch>Once we run the above FetchXML it will gives the cases records which have due date in next 1 week.And we can use same in Power Automate.Thanks,Pradeep.Please mark this as VERIFIED it it helps.
Thanks for the response.with next x weeks it will give all the records due date coming in these 1 week.
I need to apply something like suppose due date is 18th Oct 2021 then email should trigger on 11th oct means only those records need to retrieve whose due date in 18th then thay should get mail 1 week before means on 11th oct.
If we create schedule power automate and will run this power automate 1 time in each day.
For e.g. On 13-10-2021 the power automate triggered and with above fetchXML. it will retrieve all the records having due date in next 1 week.
Once record retrieved then we can send email.
Hope this help.
Business Applications communities