Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

passing value from product to price list item

Posted on by 40

I have custom field called total ("new_test_total")and the field is calculated from two other field

4545.jpg

and I want to pass these total to the price list item  amount what I have been done so far 

I created another custom field called test and make these function on change the field Total amount 

to pass the value of total amount to the field i create "new_test"

function update_Amount()
{
   Xrm.Page.data.entity.attributes.get("new_test").setValue(Xrm.Page.data.entity.attributes.get("new_test_total").getValue());
}

and make mapping between price list item and Product

between the field test and the field amount 

1254.jpg

it works fine but when I try to change the field total by changing the parameter that it calculated based on it 

the total amount change but i must save it twice(ctrl s) to change the value of amount in price list item 

  • RE: passing value from product to price list item

    Hello Ahmed,

    the mapping is working only during the creation, not in update.

    What is the type of those fields?

    Where did you create test field and what is "new_test_total" ?

    Thanks,

    Regards

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