Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

ContractLine_ServiceActivity Plugin

Posted on by Microsoft Employee

Hi all ,

I have an compilation error when I am running my plugin ,that runs when I create a new contract line item. I wrote this plugin to create 1 Service Activity per X month ( X value is defined to the system from a field at contract line form ). 

For example lets assume that I entered X=3, then I want the system to create 1 Service Activity every 3 months .Then I will have a Service Activity at August,November,February ,May .... so on
here is the error description : An exception of type 'System.ServiceModel.FaultException`1' occurred in PluginProfiler.Library.dll but was not handled in user code
 Additional information: Creating Entity with an invalid parent. Entity: ServiceAppointment, ReferencingAttribute:regardingobjectid

please note that I created a relationship between contract line item and service activity entities but when I navigate to Communication&Collaboration section at contract line entity , the activities check box is dimmed so I cannot check mark on activities box( I attached a photo to illustrate that ).

PHOTO.PNG

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans