Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Accessing corresponding service activity record from appointment entity

$
0
0

Hello Guys!

I have two Out of the Box entities in my system - appointment and serviceactivity. My objective is, whenever a person deletes an appointment record, the corresponding serviceactivity record also needs to be deleted. This is simple enough - but am new to CRM Development. So I am still trying to figure out things. So I would be needing a delete pre-operation plugin on the appointment entity? However, the logic I am trying to figure out is how do I retrieve the corresponding serviceactivity record? The corresponding service activity record has the start time, end time and subject fields same as the appointment record. However, there is no 1:n or any other relationship between the two entities. So how do I retrieve the corresponding service activity record on a plugin running on appointment entity and deleting them? 

Thanks!


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images