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

Trigger Help

I'm trying to create a trigger that updates all my accounts with this field C_digo_do_Cliente__c

trigger aiu_IfaceLimiteCreditoDiario on IfaceLimiteCreditoDiario__c (after insert, after update) {

		List<Account> acc = new List<Account>();
		List<C_digo_do_Cliente__c> cod = new List<C_digo_do_Cliente__c>();

		for(IfaceLimiteCreditoDiario__c iface :{
		Account = [Select a.TipoLimite__c, a.LimiteCredito__c, a.C_digo_do_Cliente__c From Account a]
		for(Account inter: Account.LimiteCredito__c ){
		for(IfaceLimiteCreditoDiario__c inter : Account.C_digo_do_Cliente__c)

someone could help me to solve this?
Deepak Kumar ShyoranDeepak Kumar Shyoran
How do you want to update your Account means which field/data you want to update with what field/data from C_digo_do_Cliente__c. Please specify your requirement more and Error/Problem you are facing in doing that, so that we can help you.
is C_digo_do_Cliente__c a field or an object?

Can you describe your workflow - Click update on account, update value on C_digo_do_cliente__c or something like that?

Right now, this trigger is nonsensible.