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
BigPBigP 

how can i update the account.id field in oppotunity with a string that i choose in trigger after update?

AnkaiahAnkaiah (Salesforce Developers) 
Hi,

Can you explain more about your requirement?

Thanks!!
BigPBigP
Hi,
i want to create a trigger that when i update a certain field,the account name in opportunity gets updated as well 
AnkaiahAnkaiah (Salesforce Developers) 
Hi,

Which field you need to update ?
on which object?

while creation of opportunity you will select account then what is the issue here.?

Thanks!!
BigPBigP
i want to update the tracking number field and when that happens the account,Id field inalso gets updated with a string that i decide.The trigger must be in the opportunity object.
 
AnkaiahAnkaiah (Salesforce Developers) 
As per my understanding, you have tracking number field on Opportunity object .
And whenever you update the tracking number field on opportunity then same field should be updated in the account record. 

Am i correct?

Thanks!!