You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Get the value of "SiteuseType" before user makes the update

in Sales 1 comment

Summary:

Get the value of "SiteuseType" before user makes the update

Content (required):

I have a "BeforeUpdate" trigger wherein I am trying to validate if the user is trying to update SiteuseType of address to "Bill_To" and if its "Bill_To" I should display an error and stop the user. Code snippet is as below

The issue I am facing is that I am able to get the SiteuseType value after the user has changed it, so its not entering "If" loop to display the error

I tried using getOriginalattributevalue, however it cannot be used in the context of SiteuseType

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!