问题
I'm trying to attach a document to the opportunity. My question is Can the note be altered so that only one file can be attached and not several?
some example?
回答1:
You can write a plugin on Pre-operation stage of Annotation Create message to evaluate if there is an attachment already for that particular Opportunity & stop the execution by throwing InvalidPluginExecutionException
exception.
You can attach only one file in each Notes entry. So this should work.
来源:https://stackoverflow.com/questions/50606322/crm-dynamics-2016-limit-the-number-of-files-in-a-note