Hi, all mentors,
I'd like to compare Product previous price after user update the product price, if the price change, I can use BP to notify related user . So, I add one column into product (UsrPreviousPrice) , and try to store the product previous price in it.
However, I am new in object event handling and c#, but I believe it will help solve the issue, right now I don't know how to write the script task part. Please help clarify any errors.
Like
Hello Jeffrey,
Could you please clarify the business task? Correct me if some step is wrong:
- 1) The system user updates the price on the Product list page
- 2) The old price goes to the UsrPreviousPrice column and the new price adds to the "Price" column
- 3) Do You need to email the customers with 2 prices (old one and new one)? Or do you want to notify the system users by the notification in the system?
Anhelina,
Hi, Anhelina,
Thank you for your reply.
1) The system user updates the price on the Product list page
- -->Correct, the puchase dept will update the new price based on market information.
2) The old price goes to the UsrPreviousPrice column and the new price adds to the "Price" column
--->Correct
3) Do You need to email the customers with 2 prices (old one and new one)? Or do you want to notify the system users by the notification in the system?
--> I want to compare the two price and if the current price is larger than the previous price, I will notify the user who have orders that contain these products.
Right now,
2) is what I need to solve, (maybe object event process), but not yet know how to do.
3) I believe I can solve it by using business process.
Jeffrey,
Step 2 can only be realized by writing code and I've found the same question on the Academy. As a workaround, you may manually copy the price to the UsrPreviousPrice column before updating.
Step 3 you may realize through the one business process. You should add two parameters (values from two columns), compare them and send an email if conditions passed:
- 1) Check in this article how to compare two BP's parameters
- 2) Sending the email from BP you may check here.