You need to sign in to do that
Don't have an account?

How to retrieve the Account id
I need to retrieve the Account id and insert it to my method. Get the Basket__r.Account__r.id and place it to the Account id inside the for loop. How can i do that?
list<Configuration__c> conf = [select id, name, Basket__r.id, Basket__r.Account__r.id from Configuration__c where Basket__r.id = : basketId]; for (Configuration__c confList: conf){ Attachment att = [select id, body from Attachment where name like parentId = :confList.id]; system.debug(att); system.debug(att.Body); system.debug(att.Body.toString()); list <Guarantee_Line__c> guara = new list <Guarantee_Line__c>(); guara = GuaranteeCreator.createGuarantee(att.Body.toString(), confList, Account id); }
confList.Basket__r.Account__r.id
All Answers
confList.Basket__r.Account__r.id