Aggiungi ai preferitiMahi Tangnoo (iLink Digital) ha postato in Admin 201 Study Group 2021 (Domanda originariamente posta da Mahi Tangnoo)12 mag 2023, 09:18Mahi TangnooHow to lock fields on before update and before insert and show error using triggerScenario is: On" before update" and 'before insert" of opportunityLineitem, a custom field should not get inserted and updated after saving the product details and throw an error saying that " You are not allowed to update this field ". i tried doing null check on this field and show the error in my trigger but its showing error - "sobject row does not allow errors " so i checked the field level security and it has read and write access but still this is coming So if any one could suggest any other alternative approach to achieve this use case using triggers only would be highly appreciated. Thanks,MahiMostra altroAggiungi un commentoScrivi un commento...GrassettoCorsivoSottolineaBarratoElenco puntatoElenco numeratoAggiungi linkBlocco codiceInserisci immagineAllega fileURL del linkAnnullaSalva0/9000Rispondi
Mahi TangnooHow to lock fields on before update and before insert and show error using triggerScenario is: On" before update" and 'before insert" of opportunityLineitem, a custom field should not get inserted and updated after saving the product details and throw an error saying that " You are not allowed to update this field ". i tried doing null check on this field and show the error in my trigger but its showing error - "sobject row does not allow errors " so i checked the field level security and it has read and write access but still this is coming So if any one could suggest any other alternative approach to achieve this use case using triggers only would be highly appreciated. Thanks,MahiMostra altro