You need to sign in to do that
Don't have an account?
mahesh1.396434879374128E12
Create the Task to Opportunity Owner when the ListPrice in OpportunityLineItem is changed.
When the ListPrice(Field in OpportunityLineItem) value is changed(Suppose $100 is changed to $150). then create a Task to Opportunity Owner.stating that ListPrice is changed Please review the SalesPrice.
Note: ListPrice value in OpportunityLineItem is changed only when we change the value PriceBookEntry.
Note: ListPrice value in OpportunityLineItem is changed only when we change the value PriceBookEntry.
If it has changed Create a Task and assign it to Opportunity Owner.
Hope this helps !!
If this helps,please mark it as best answer to help others.
Can you Please help me in this issue.
can we use the Ischange Option which is their WorkFlow in apex.
{
for(OpportunityLineItem Oli : Trigger.new)
{
OpportunityLineItem oldOli = Trigger.oldMap.get(Oli.ID);
System.debug('***********Old List price********'+oldOli.ListPrice);
System.debug('*********New List price*********'+Oli.ListPrice);
// After getting the Old values and New values, I want to Compare with these values(Old and New)
If(oldOli != Oli){
//Create the Task
}
}
https://success.salesforce.com/ideaView?id=08730000000XnicAAC
You should try checking for Sales Price field on OpportunityLineItem object in salesforce or Total Price which ever suits your scenario.
Hope this helps !!
My actual bussiness requirement is when the listprice in opportunitylineItem is changed then the task should be created to the Opportunity associated to that OpportunitylineItem.
Task description: Listprice is changed please review the SalesPrice.
As i told you in my first post only
listprice value is changed only when we change the value in PriceBookEntry.
If you get any idea related to this.....
Please help me in this issue.........
If this helps,please mark it as best answer to help others :)
When the ListPrice is changed,create the task to the opportunity owner.
Task description: Listprice is changed please review the SalesPrice.
Then opportunity owner should change the salesPrice(Unitprice in OpportunityLineItems) manually.
If I understood correctly,our goal is to check if the Sales price and List Price is different or not If it is then create a Task for the Opp owner and thats what I suggested you.
Hope this helps!!
Our goal is to Check the Old values and New values of the ListPrice in OppotyunityLineItem,If it is different then create task to Opportunity Owner.