Hi,
I have created a report using xml, that displays a users appointments for the week. For some records in the records in the report the name and address do not populate, even though a name and address exists, it is the same for two other columns in the report.
Here is my xml;
<fetch distinct="false" no-lock="false" mapping="logical">
<entity name="activitypointer" enableprefiltering="1" prefilterparametername="CRM_FilteredActivityPointer">
<attribute name="scheduledstart" alias="scheduledstart" />
<attribute name="subject" alias="subject" />
<attribute name="regardingobjectid" alias="regardingobjectid" />
<attribute name="description" alias="description" />
<attribute name="activityid" />
<attribute name="ownerid" alias="ownerid" />
<attribute name="activitytypecode" />
<attribute name="actualstart" alias="actualstart" />
<attribute name="actualdurationminutes" alias="actualdurationminutes" />
<attribute name="scheduleddurationminutes" alias="scheduleddurationminutes" />
<attribute name="actualend" alias="actualend" />
<link-entity name="opportunity" to="regardingobjectid" from="opportunityid" link-type="outer" alias="LE_3c8631e7bcbe64b3de96e66789a47536">
<attribute name="customerid" alias="LE_3c8631e7bcbe64b3de96e66789a47536_customerid" />
<attribute name="schedulefollowup_qualify" alias="LE_ad91c354eb5a26b004de4d41b2c3d454_schedulefollowup_qualify" />
<attribute name="new_accounttype" alias="LE_54d761d89ac278139a6836de7c3607db_new_accounttype" />
<attribute name="new_neworexisiting" alias="LE_5db2d6da9e43bd44c8949cb912432cba_new_neworexisiting" />
<attribute name="new_accaddresscomposite" alias="LE_c6b3b5d2a9364c90878a5d147b97b866_new_accaddresscomposite" />
<attribute name="new_accaddress1" alias="LE_bde40c40dbe1d0481eb6a37468897c44_new_accaddress1" />
<attribute name="parentaccountid" alias="LE_b7d5c9432034544323d9170db9688778_parentaccountid" /> <!-- Used for Account name-->
<attribute name="actualclosedate" alias="LE_3d1bcadc4e9010d6d4689ded2531d68a_actualclosedate" />
</link-entity>
<link-entity name="appointment" to="activityid" from="activityid" link-type="outer" alias="LE_21d132480c825d95267ebab3a7473d12">
<attribute name="new_nextscheduledactivity" alias="LE_21d132480c825d95267ebab3a7473d12_new_nextscheduledactivity" />
<attribute name="location" alias="location" />
</link-entity>
<link-entity name="task" to="activityid" from="activityid" link-type="outer" alias="LE_d17a33591249918c6c1ee177ec088c9e">
<attribute name="new_nextscheduledactivity" alias="LE_d17a33591249918c6c1ee177ec088c9e_new_nextscheduledactivity" />
<attribute name="actualdurationminutes" alias="LE_8d4d2baaa4e29d0a1580d50c717d5149_actualdurationminutes" />
<attribute name="scheduleddurationminutes" alias="LE_60b5d8a86d95803d5d7d4ba5396a8a5e_scheduleddurationminutes" />
</link-entity>
<link-entity name="phonecall" to="activityid" from="activityid" link-type="outer" alias="LE_d9500b28823a2cc695b328d264c874c2">
<attribute name="new_nextscheduledactivity" alias="LE_d9500b28823a2cc695b328d264c874c2_new_nextscheduledactivity" />
</link-entity>
<link-entity name="letter" to="activityid" from="activityid" link-type="outer" alias="LE_16984b1d7371c9167477bed48848e40e">
<attribute name="new_nextscheduledactivity" alias="LE_16984b1d7371c9167477bed48848e40e_new_nextscheduledactivity" />
</link-entity>
<link-entity name="new_meeting" to="activityid" from="activityid" link-type="outer" alias="LE_b58db0ced0e0ba590e293d71779d64e1">
<attribute name="new_nextscheduledactivity" alias="LE_b58db0ced0e0ba590e293d71779d64e1_new_nextscheduledactivity" />
</link-entity>
<link-entity name="serviceappointment" to="activityid" from="activityid" link-type="outer" alias="LE_5960d2750ac2ded5a025230374e69e0d">
<attribute name="new_nextscheduledactivity" alias="LE_5960d2750ac2ded5a025230374e69e0d_new_nextscheduledactivity" />
</link-entity>
<link-entity name="account" to="regardingobjectid" from="accountid" link-type="outer" alias="LE_d08b5ac0b1b1a422353a6d092b699986" enableprefiltering="1" prefilterparametername="CRM_FilteredAccount">
<attribute name="name" alias="LE_d08b5ac0b1b1a422353a6d092b699986_name" />
<attribute name="address1_composite" alias="LE_b6831392115770835cce64e99a59be4a_address1_composite" />
<attribute name="new_accounttypeid" alias="LE_d43a1a8e1ac7906ba75b4390214703b6_new_accounttypeid" />
<attribute name="new_existing" alias="LE_1dd93a641e2174163e1098a9d81887a3_new_existing" />
</link-entity>
<link-entity name="lead" to="regardingobjectid" from="leadid" link-type="outer" alias="LE_a1aa3e141cd5a40b23c154bb828c7a43">
<attribute name="fullname" alias="LE_a1aa3e141cd5a40b23c154bb828c7a43_fullname" />
<attribute name="address1_composite" alias="LE_ee01d0012bc337ed13a152b51ed4e8d2_address1_composite" />
</link-entity>
<link-entity name="contact" to="regardingobjectid" from="contactid" link-type="outer" alias="LE_1a33ecb00a03aca4343bc89baa539121">
<attribute name="fullname" alias="LE_1a33ecb00a03aca4343bc89baa539121_fullname" />
<attribute name="address1_composite" alias="LE_b39a20abb15b9e312396a9164a932dd4_address1_composite" />
</link-entity>
<link-entity name="new_distributor" to="regardingobjectid" from="new_distributorid" link-type="outer" alias="LE_2811d3654a37013713507384028ad615">
<attribute name="new_name" alias="LE_2811d3654a37013713507384028ad615_new_name" />
<attribute name="new__address1" alias="LE_b04d5608c5bdb4e90a992923478978ab_new__address1" />
<attribute name="new__address2" alias="LE_05adb10d3be09b3443ec08ab395ed553_new__address2" />
<attribute name="new__address3" alias="LE_8e6e813423cea9c587ded8067d92903d_new__address3" />
<attribute name="new__address4" alias="LE_4161c4c390c06bb54b0372a5e4982b13_new__address4" />
<attribute name="new__address5" alias="LE_a8b05408a953c80cbdb5a89a6b128027_new__address5" />
<attribute name="new_countryid" alias="LE_469ee7583380e8ac96c43cbb4b4caed9_new_countryid" />
</link-entity>
<link-entity name="new_visit" to="regardingobjectid" from="new_visitid" link-type="outer" alias="LE_041a4de02adecc6816a3be5b9389d9ac">
<attribute name="new_tmpdurationmins" alias="LE_041a4de02adecc6816a3be5b9389d9ac_new_tmpdurationmins" />
<attribute name="new_arriveddatetime" alias="LE_0238625bc02c72e091b42d4c6ece34e5_new_arriveddatetime" />
</link-entity>
</entity>
</fetch>My Expression for the name column;
=SWITCH(NOT(ISNothing(Fields!LE_d08b5ac0b1b1a422353a6d092b699986_name.Value)), Fields!LE_d08b5ac0b1b1a422353a6d092b699986_name.Value,
NOT(ISNothing(Fields!LE_b7d5c9432034544323d9170db9688778_parentaccountid.Value)),Fields!LE_b7d5c9432034544323d9170db9688778_parentaccountid.Value,
NOT(ISNothing(Fields!LE_a1aa3e141cd5a40b23c154bb828c7a43_fullname.Value)), Fields!LE_a1aa3e141cd5a40b23c154bb828c7a43_fullname.Value,
NOT(ISNothing(Fields!LE_1a33ecb00a03aca4343bc89baa539121_fullname.Value)), Fields!LE_1a33ecb00a03aca4343bc89baa539121_fullname.Value,
NOT(ISNothing(Fields!new_name.Value)), Fields!new_name.Value,
1=1, " - ")My Expression for the Address column;
=SWITCH(NOT(ISNothing(Fields!LE_b6831392115770835cce64e99a59be4a_address1_composite.Value)), Fields!LE_b6831392115770835cce64e99a59be4a_address1_composite.Value,
NOT(ISNothing(Fields!LE_c6b3b5d2a9364c90878a5d147b97b866_new_accaddresscomposite.Value)), Fields!LE_c6b3b5d2a9364c90878a5d147b97b866_new_accaddresscomposite.Value,
NOT(ISNothing(Fields!LE_ee01d0012bc337ed13a152b51ed4e8d2_address1_composite.Value)), Fields!LE_ee01d0012bc337ed13a152b51ed4e8d2_address1_composite.Value,
NOT(ISNothing(Fields!LE_b39a20abb15b9e312396a9164a932dd4_address1_composite.Value)), Fields!LE_b39a20abb15b9e312396a9164a932dd4_address1_composite.Value,
NOT(ISNothing(Fields!location.Value)), Fields!location.Value,
NOT(ISNothing(Fields!new__address1.Value)), Fields!new__address1.Value & VbCRLF & Fields!new__address2.Value & VbCRLF & Fields!new__address3.Value & VbCRLF & Fields!new__address4.Value & VbCRLF & Fields!new__address5.Value & VbCRLF & Fields!new_countryid.Value,
1=1, " - ")
The appointments can be made against an account/lead/opportunity/contacts, and with the above im trying to get the name and address.
Im puzzled as to why the name and address are not populating.
Any help would be greatly appreciated.
Thanks