Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How can I display Product currant cost value on the Order Product form?

Posted on by Microsoft Employee

Hello,

I have a need to calculate an Order Product GP value, ie Total sell - Total Cost.  I can get the Total sell, based on the Quantity and Sell price because they are available on the Order Product Form.  But I am struggling to get the currant cost of the product from Existing Product record.  Any help?  We are using CRM 2016 online.

Please help.

Thanks

Lana

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How can I display Product currant cost value on the Order Product form?

    Thanks Prashant, but I also need to be able to use this filed in teh calculation, not display only.

  • Suggested answer
    PS Profile Picture
    PS 23,577 on at
    RE: How can I display Product currant cost value on the Order Product form?

    Hi Lana,

    You can add a quick create from to show 'current cost' of Products on 'Order product'

    Go to settings>>customize the system>>customization>>Expand Entity>>Scroll down to Sales contract line>>Form editor>>Insert Quick View form>>Lookup for Existing Product>>Add current cost on the form

    5460.1.PNG

    Save and Publsih

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How can I display Product currant cost value on the Order Product form?

    Thanks :-)  It looks like cannot be done by customisation alone.  I am not a developer and we will need to get someone else to write the code.

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: How can I display Product currant cost value on the Order Product form?

    Lana,

    Kiss only who you want to :)

    I missed that point that Order Product can't be updated with Workflow, my mistake. Then you have a choice to go with custom workflow activity to use in a workflow or develop plugin that will handle create/update of product and populate required field.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How can I display Product currant cost value on the Order Product form?

    Thanks Drew, I might be kissing something, but I cannot update the Order Product values using the workflow, only the Order.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How can I display Product currant cost value on the Order Product form?

    Thanks Andrii, but I cannot update Order Product record using the workflow.  I can only update the Order record. Thanks

  • Suggested answer
    Drew Poggemann Profile Picture
    Drew Poggemann 9,079 on at
    RE: How can I display Product currant cost value on the Order Product form?

    Hi Lana,

    Overall you will want to decide here if you want to utilize the cost of the product at the time it was "sold" or if you are looking at the current cost of the product.  I would expect you would want the cost of the product when it was sold on the order so you will want to utilize a workflow to set this value on the order product entity to the item.

    This should be a very straight forward workflow to write.  You will want to be background for performance unless you need to see it right away on the order.

    Note - if you do this it will copy one time and if you change the product's standard cost it will not change on the order product.  You may want to pull initially when order product is created and then also do on status change of the order product as well to get the updated cost when the order is fulfilled.

    Hope this helps!

    Thanks,

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: How can I display Product currant cost value on the Order Product form?

    Hello Lana,

    As for me the easiest way to have value populated is to use Realtime workflow to populate that field value.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans