Salesforce - Using the ISCHANGED function in a Validation Rule

Поділитися
Вставка
  • Опубліковано 16 кві 2022
  • Sample video on how to use the ISCHANGED formula in a Validation Rule
    Need more help? Please drop a comment or email salesforcetipsdg@gmail.com. If you need an ongoing resource the best place to find a freelancer is Upwork. They have an awesome Salesforce talent network, i've done work on there myself and there are thousands of businesses that list technology projects on there.
    Get started with Upwork here: upwork.pxf.io/SalesforceTips
    Thanks for Watching!
  • Наука та технологія

КОМЕНТАРІ • 8

  • @shantanuohri
    @shantanuohri Рік тому

    how todo it for this " . Parked End Date must be filled when the Stage is changed to Parked

  • @iRivzzz
    @iRivzzz 2 роки тому

    Hi, I'm trying to limit users apart from admins to change the opportunity owner. I also have a flow in place to change the oppty owner when a lead has been accepted through the omni-channel so the opportunity owner matches the lead owner. However, the validation rule is not allowing the flow to change the oppty owner to change to the agent that accepted the lead from omni. Can you help with this please?

    • @iRivzzz
      @iRivzzz 2 роки тому

      ISCHANGED(OwnerId)
      && NOT($Profile.Name == "System Administrator")
      && NOT($Profile.Name == "System Developer")
      I have this in place atm, which works fine, its not allowing anyone apart from the exception to change the oppty owner but its now affecting the flow.

    • @salesforcetips2174
      @salesforcetips2174  2 роки тому

      @@iRivzzz Hey there,
      Do you know which user is the system runs the process for omni channel? It might be something like "B2B Integration User" or something like that. I'd turn your validation rule off and run the reassignment from omni. Check the "last modified by" field to see which user is triggering the change.

  • @whatmadderstomaddie8552
    @whatmadderstomaddie8552 2 роки тому

    what about if you want to limit who is closing won or closing lost the opportunities? I'm using this but is not triggering and is still letting standard users close opportunities

    • @salesforcetips2174
      @salesforcetips2174  2 роки тому +1

      Hey Maddie,
      Use this for your Validation rule.
      AND(
      OR(
      ISPICKVAL(StageName, "Closed Lost"),
      ISPICKVAL(StageName, "Closed Won")
      ),
      $User.Id "enter id here"
      )
      **** On a validation rule you can scroll down to the "System" area instead of picking a field and choose the $User which means the "Current User". You can set this rule up in a couple different ways depending on if the users you want to prevent from closing/winning an opp have the same profile, role, etc. If its just two specific users you can use the $User.Id and reference their User ID. If you are blocking more than once user via ID make sure to use another OR statement like this:
      AND(
      OR(
      ISPICKVAL(StageName, "Closed Lost"),
      ISPICKVAL(StageName, "Closed Won")
      ),
      OR(
      $User.Id "enter id here",
      $User.Id "Enter 2nd Id Here"
      )
      )

    • @whatmadderstomaddie8552
      @whatmadderstomaddie8552 2 роки тому

      @@salesforcetips2174 omg!! bingo!! thank you soooo much!!! I have been trying this for days!

    • @salesforcetips2174
      @salesforcetips2174  2 роки тому

      @@whatmadderstomaddie8552 woooooo!