Morning All,
We are currently 2 weeks away from a migration from an on prem legacy CRM to Dynamics365, to that end a number of reports that are currently SQL scripts need to be ported and for the most part i can rebuild these using the Advanced Find query builder and save as views. However a view are a little more complex and as i dont know SQL i was looking for a pointer to the best solution.
The query has a statement like the below where we are trying to target a Serial Number that has communication in the last 720 days where the source code is like "AXTX1..."
select distinct serialnumber from communication where
( SOURCECODE LIKE 'AWTX1_-54/003' AND DATEOFCOMMUNICATION >= GETDATE() -720)
OR (SOURCECODE LIKE 'AWTX1_-54/004' AND DATEOFCOMMUNICATION >= GETDATE() -720)
While i can specify the Source Code in advanced find how can i pick up if this contact received the comms in last 720 days?
Thanks in Advance