Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Getting extended field amount in QuoteDetail

(0) ShareShare
ReportReport
Posted on by

Hi All,

I am fairly new to developing plugins.

I am trying to get the value of the ExtendedAmount field in quotedetail. I have created a plugin on update with a Post operation and using image to obtain the value. 

This works if I create a new quotedetail but when I update the quotedetail and the extended amount value gets updated I am not able to get the value of the amount.

Can anyone please help, how to get the value of ExtendedAmount and what kind of step to use.

Thanks

*This post is locked for comments

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,052 on at
    RE: Getting extended field amount in QuoteDetail

    Hi

    Please make sure the following

    01. In the plugin registration tool, check the image and make sure all the attributes are being passed. if an attribute is not being passed in the image, you wont be able to get the attribute or value.

    02. I would add trace line or throw invalid plugin execution exception to see if the attribute is being passed to the plugin

    You could try something like the following

    if (!entity.Attributes.Contain("extendedamount"))

    throw new InvalidPluginExecutionException("Property extendedamount not passed in the image");

    03. You could query the same quote detail using advance find , add the extended column and see if it has value or check on the quote details form if the field has value. If a field does not have value, it may not be passed in the entity image

  • Anas Rafik Profile Picture
    Anas Rafik 363 on at
    RE: Getting extended field amount in QuoteDetail

    Can you please put a screenshot of the registered step and the plugin code

  • RE: Getting extended field amount in QuoteDetail

    Hi Anas ,

    I tried using it as well but there isn't any "extendedamount" attribute present. As this value is read only and gets updated after the "Save" of the entity. (Not even in Postoperation create)

  • Suggested answer
    Anas Rafik Profile Picture
    Anas Rafik 363 on at
    RE: Getting extended field amount in QuoteDetail

    if the field ExtendedAmount  get updated you will find it in the plugin execution context

    // Obtain the target entity from the input parameters.

    IPluginExecutionContext context = (IPluginExecutionContext)
                    serviceProvider.GetService(typeof(IPluginExecutionContext));
     Entity entity = (Entity)context.InputParameters["Target"];

    Money extendedAmount= (Money)entity.Attributes["extendedamount"];

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans