FavoriteNikitha M (Accenture Technologies) asked in #ApexOct 31, 2018, 5:19 AMHow do I restrict creating a related object record in Contact object?ABC company has the following requirement:A contact will have two related objects 1. Pre Consultant 2. Repeat Consultant. If the contact doesn't have Pre consultant data, then it should not allow creating Repeat Consultant info.1 answerSortSort by DateSort by Most HelpfulSort by DateRajamohan Vakati (Amazon)Oct 31, 2018, 5:25 AMYou need to create a trigger for that .. Write a trigger on Repeat Consultant info to check the contact is having at least one Pre Consultant Add a commentWrite an answer...BoldItalicUnderlineStrikethroughBulleted ListNumbered ListAdd linkCode blockInsert imageAttach filesLink URLCancelSave0/9000Reply
Rajamohan Vakati (Amazon)Oct 31, 2018, 5:25 AMYou need to create a trigger for that .. Write a trigger on Repeat Consultant info to check the contact is having at least one Pre Consultant