web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Plugin exception - ActivityFeeds Configuration is invalid

(0) ShareShare
ReportReport
Posted on by 905

Hello,


In a custom entity, I have business rules to show/hide fields based on an option set value..

IF
Timesheet Type does not contain data
THEN
Hide field Customer Name
Hide field Project Name
Clear Customer Name
Clear Project Name
ELSE IF
Timesheet Type equals "Project"
THEN
Hide field Customer Name
Clear Customer Name
Show field Project Name
Set Project Name as Business Required
ELSE
Hide field Project Name
Clear Project Name
Show field Customer Name
Set Customer Name as Business Required

In the same entity, I have a custom plugin that fires onCreate of a record and replicates the data to a separate table.

During plugin execution, I am getting the following strange error:

pastedimage1674750949242v1.png

If I turn off the business rules the plugin executes successfully without throwing the error.

As long as the business rules are turned on under this entity, it keeps on failing.

Any idea what logic is missing for the plugin to handle this exception? Could you please which line should i amend changes to make it work?

Any help is greatly appreciated.

Best regards,
EBMRay

I have the same question (0)
  • Verified answer
    Pradeep Rai Profile Picture
    5,489 Moderator on at

    Hi,

    You can change the business rule scope to All Forms or To Specific Form.

    It seems that your business rule scope set to Entity because of which it is effecting the plugin logic.


  • Shelly Thomas Profile Picture
    25 on at

    I really doesn't know about it, thanks for clearing my doubts

  • Suggested answer
    Pradeep Rai Profile Picture
    5,489 Moderator on at

    Business Rules contains 3 scope:

    • All Forms: When we set all forms then business rule  will applied to all forms of entity. Given condition field should be there on form.
    • Selected Form: In Scope dropdown, you will find list of all Main Form and you can select any one of them. As a result it will be applied to specific form only.
    • EntityIn this case, it will runs on server side logic such as plugin and will effect server logic based on defined in business rule.
  • EBMRay Profile Picture
    905 on at

    Hello Pradeep Rai ,

    As mentioned, I changed the rule scope, but now it appears the problem is within the plugin as during our debugging we noticed that we have a function returning null, and we will handle it with the appropriate condition.

    Best regards,

    EBMRay

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 72 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 29 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans