function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
hamed.mohiuddin1.3897308296192292E12hamed.mohiuddin1.3897308296192292E12 

I am trying to update custom_field__con Opportunity from a Multi Select picklist field on Account only if Account Name contains 'x'. I am new to Apex, could someone help me out here. Thanks!

I am trying to update custom_field__con Opportunity from a Multi Select picklist field on Account only if Account Name contains 'x'. I am new to Apex, could someone help me out here. Thanks!
Norm Sherman SFNorm Sherman SF
Why not just use a workflow rule?
hamed.mohiuddin1.3897308296192292E12hamed.mohiuddin1.3897308296192292E12
Because its a multiselect picklist field I have to update from and I am unable to do it in a formula fied or using field update action. Thats why I am having to resort to writing a trigger.
Norm Sherman SFNorm Sherman SF
Does this work for you? https://success.salesforce.com/answers?id=90630000000gv5cAAA