You need to sign in to do that
Don't have an account?
rashid minhas
can I change the opportunity picklist field from trigger which control another field in field dependency ? if yes than how
I created before insert trigger on opportunity which gets the account type and passes the account type to the custom field(picklist) in the opportunity object. this works fine but when I use field dependency and add this custom picklist as a controlling field and want to manage another picklist. then the trigger is not passing the account type to opportunity can anyone tell me why? and how I will do it.
Thanks In advance
Thanks In advance
Shri Raj
To resolve this issue, you need to modify your trigger to include the logic for updating the dependent field as well. You can use the Apex Describe API to determine the field dependency relationship and update the dependent field as needed. Here's an example: