02.12.2013, 21:11 | #1 |
Участник
|
crminthefield: FetchXML Exception Reporting in Microsoft Dynamics CRM 2013
Источник: http://blogs.msdn.com/b/crminthefiel...-crm-2013.aspx
============== Want to know what accounts in Dynamics CRM have no related opportunities? How about which contacts haven’t had any activities in the last few months? Exception reporting using the FetchXML data processing extension is one feature that in previous versions of CRM, has not been possible. With the introduction of Microsoft Dynamics CRM 2013, the capabilities of a left outer join is possible, therefore customers can now perform custom exception reporting with the FetchXML DPE out of Microsoft Dynamics CRM. In CRM 2011 Fetch cannot express queries of the form: · Find all Accounts that have no OpportunitiesThe following syntax in CRM 2011 doesn’t work exactly as expected for Fetch XML. 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: SELECT account.NameSince the filter condition is appended to the ON, this query does not work as expected. In CRM 2013 this scenarios can be addressed as follows: An alias must be defined for a link-entity in order for it to be used in the filter. In the filter element, the value of the attribute (customerid) is the field of the form entityname (ab) which must have been already defined as an entity name or alias or a link-entity name or alias. 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: SELECT account.NameNote that the filter has moved from the ON clause to the WHERE clause. Another example, here including more than one filter, returning all accounts that either don’t have any related activities or they don’t have any open related activities: 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: · Filter on the LEFT OUTER JOIN should apply to the WHERE clause when converted to SQL.If you are interested, our PFE team is ready to help you. We have many services we offer such as reporting workshops, developer training, admin workshops, and code reviews. If you would like to have another Microsoft PFE or I visit your company and assist with the ideas presented on our blog, contact your Microsoft Premier Technical Account Manager (TAM) for booking information. For more information about becoming a Microsoft Premier Customer email PremSale@microsoft.com. Thanks! Sarah Champ Microsoft Premier Field Engineer Источник: http://blogs.msdn.com/b/crminthefiel...-crm-2013.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|