Skip to main content

Notifications

Dynamics 365 general forum
Unanswered

How would you test/trap for missing field within plugin?

Posted on by Microsoft Employee

I have a large, complicated assembly for custom pricing.  I also am building a Dual Write environment based on the current solution.

I don't want to fork the code for the pricing plugin to accommodate a new DW field on the Oppty/Quote/Order header.  This field is additional charges which needs to be included in the sum for the order Total.

Somehow I must trap the fact that this field is not in the metadata if I am to use the same assembly to work in both environments.

How would YOU do this?

TIA

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How would you test/trap for missing field within plugin?

    Sorry, after starting in what I thought was a replacement/renamed forum (Sales) I found my way back here and worried that I had addressed the wrong audience.

  • a33ik Profile Picture
    a33ik 84,321 Most Valuable Professional on at
    RE: How would you test/trap for missing field within plugin?

    No duplicates, please.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    How would you test/trap for missing field?

    I have a large, complicated assembly for custom pricing.  I also am building a Dual Write environment based on the current solution.

    I don't want to fork the code for the pricing plugin to accommodate a new DW field on the Oppty/Quote/Order header.  This field is additional charges which needs to be included in the sum for the order Total.

    Somehow I must trap the fact that this field is not in the metadata if I am to use the same assembly to work in both environments.

    How would YOU do this?

    TIA

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,522 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,441 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans