• Newbie 2019
  • NEWBIE
  • 10 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 8
    Replies
The requirement is when I insert  records,if  they meets the criteria records should gets updated else they should be inserted.
I have written a trigger on before insert event but what is happening is I am able to update the records but I am not able to stop them from being inserted. Means with update they are also getting inserted. But on update criteria I only want to update the records that are already in Salesforce.
Hi,
During the project we are asked to create 2 fields in the object "Drink Orders" such as "Size" and "Price" which are both Picklist type.
My question is how can I link those 2 fields so when I pick "Size" "Price" is automatically filled ?
The requirement is when I insert  records,if  they meets the criteria records should gets updated else they should be inserted.
I have written a trigger on before insert event but what is happening is I am able to update the records but I am not able to stop them from being inserted. Means with update they are also getting inserted. But on update criteria I only want to update the records that are already in Salesforce.