You need to sign in to do that
Don't have an account?
Populating two fields automatically when a record is created
The hierarchy of objects for this problem is Account - Contract - Invoice - Shipment.
Any help will be much appreciated!
Thanks
Doug |
It sounds like you're going to have to query on Invoice__c to find out the Contract ID.
I agree with the other poster. Invoice has Account and Contract information, so you'll need to query on that and keep track of what Contract and Account go with what Invoice. Here's my first take on it, I commented out some of your code.
I guessed on the field names and stuff. See if that helps you out.
Jeremy