1

此 Advanced Find Fetch XML 检索具有关联服务活动的所有案例:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
    <entity name="incident">
        <attribute name="title" />
        <attribute name="ticketnumber" />
        <attribute name="createdon" />
        <attribute name="incidentid" />
        <order attribute="title" descending="false" />
        <link-entity name="serviceappointment" from="wl_serviceactivitiesid" to="incidentid" alias="aa">
        </link-entity>
</entity>

什么是 Fetch XML 或 View 逻辑来显示所有没有关联服务活动的案例。可以有一个not之前:

<link-entity>
4

1 回答 1

1

我认为这可能有效:

基本上,它对 serviceappointment 进行外部连接,然后排除任何具有主键的项目。

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
    <entity name="incident">
        <attribute name="title" />
        <attribute name="ticketnumber" />
        <attribute name="createdon" />
        <attribute name="incidentid" />
        <order attribute="title" descending="false" />
        <link-entity name="serviceappointment" from="wl_serviceactivitiesid" to="incidentid" alias="aa" link-type="outer">
            <filter type="and">
                <condition attribute="wl_serviceactivitiesid" operator="null" />
            </filter>
        </link-entity>
</entity>
于 2013-03-01T13:42:29.137 回答