简体   繁体   English

在哪里可以找到在CRM 2011数据库中的表中创建的活动

[英]Where to find activities created in a table in crm 2011 database

I want to know, in which table will the service activity created will be stored in crm 2011 database. 我想知道,将在哪个表中创建的服务活动将存储在crm 2011数据库中。 I'm trying to generate a report for that i need to know in which table all the service activities created will be stored. 我正在尝试为此生成报告,我需要知道所有创建的服务活动都将存储在哪个表中。 When i open ServiceAppointmentBase, its showing only ActivityId column and that is also null 当我打开ServiceAppointmentBase时,它仅显示ActivityId列,并且它也为null

Crm stores data across multiple tables. Crm跨多个表存储数据。

You should write you reports against the FilteredViews. 您应该针对FilteredViews编写报告。 eg FilteredServiceAppointment or FilteredAccount. 例如FilteredServiceAppointment或FilteredAccount。

These views combine the various tables and also apply the permissions model of Crm. 这些视图结合了各种表,并且还应用了Crm的权限模型。

Check out the MSDN . 查看MSDN

All Activity s, including ServiceAppointments , are stored in a single table called ActivityPointerBase in the database. 包括ServiceAppointments在内的所有Activity都存储在数据库中名为ActivityPointerBase的单个表中。

In addition to the view referencing this table ( FilteredServiceAppointment ), the regular view to this table is called ActivityPointer , which you can access via Linq, and the filtered view is called FilteredActivityPointer , which you can access via SQL. 除了引用该表的视图( FilteredServiceAppointment )外,此表的常规视图称为ActivityPointer ,您可以通过Linq访问该视图,而过滤后的视图称为FilteredActivityPointer ,可以通过SQL访问该视图。 It's worth noting that the Linq entity collection ActivityPointerSet , when accessed, points to the filtered view. 值得注意的是,当访问Linq实体集合ActivityPointerSet时,它指向过滤后的视图。

Each different type of Activity is identified by the ActivityTypeCode / ActivityTypeCodeName fields, which is how you'd know whether a particular activity is a ServiceAppointment . 每种不同类型的Activity均由ActivityTypeCode / ActivityTypeCodeName字段标识,这是您如何确定特定活动是否为ServiceAppointment

As for warnings regarding manipulating the base tables, I figure you're an adult, so do whatever you want in the world to them, but you do need the filtered views for reporting. 至于有关操纵基表的警告,我认为您是成年人,因此您可以对它们进行任何操作,但是您确实需要过滤后的视图才能进行报告。

You shouldn't write reports against the base tables, use views instead. 您不应该针对基表编写报告,而应使用视图。 In this case, the view you are looking for is dbo.FilteredServiceAppointment 在这种情况下,您要查找的视图是dbo.FilteredServiceAppointment

More info here: http://msdn.microsoft.com/en-us/library/gg328467.aspx 此处的更多信息: http : //msdn.microsoft.com/en-us/library/gg328467.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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