1
我需要使用与触发器中的Contact和Account对象相关的查找字段。我查阅字段Account__c上的联系,但我不能获得相关账户的接触时,我喜欢写东西Apex触发器Salesforce
Map <Id,Account> acts = new Map<Id,Account>([Select Id,Name from Account where Id:=contact.Account__c]);
应该获得在行为的所有相关的帐户,但它不工作..
我如何获得相关帐户?