简体   繁体   中英

Dynamics CRM plugin parent context

I have a requirement to prevent the closing of an appointment from the Contact form (in the list of activities). How can I detect that the appointment was closed from the Contact form? I tried with context.ParentContext.PrimaryEntityName , but it is "appointment" even in this case! The plugin is postoperation synchronous.

Plugin does not know from where action is initiated. In your case, you want to identify if the Close appointment action is taken by User - navigate from Contact form.

Better to remove the navigation - Activities from Contact or filter out the Appointments in Contacts - Activities Associated view. If needed, may be a new view can be created & set it as default.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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