You need to sign in to do that
Don't have an account?
Ronaldo Costa
Populating Lookupfields with parent related list records
Hello,
Please let me know your approach for the case below as I did not find a similar requirement over the forum.
1- User creates a Flight Booking record (parent object)
2- The user creates a Stop record (up to 14) (child object)
3- The user creates a Flight Crew record (up to 5) (child object)
4- Once the user is done creating Stop records and Flight Crew records, the user will then check the Initiate Itinerary Automation checkbox to trigger the following actions:
The system will create a Flight Itinerary record (child object) and will populate several lookup fields (for all related Stops and Flight Crew)
What should be the easiest solution? Because I think I would need to query the Flight Booking to find out all IDs for the Stops and Flight Crew in order to populate the related lookup fields for each one of them.
Thanks,
Ronaldo.
Please let me know your approach for the case below as I did not find a similar requirement over the forum.
1- User creates a Flight Booking record (parent object)
2- The user creates a Stop record (up to 14) (child object)
3- The user creates a Flight Crew record (up to 5) (child object)
4- Once the user is done creating Stop records and Flight Crew records, the user will then check the Initiate Itinerary Automation checkbox to trigger the following actions:
The system will create a Flight Itinerary record (child object) and will populate several lookup fields (for all related Stops and Flight Crew)
What should be the easiest solution? Because I think I would need to query the Flight Booking to find out all IDs for the Stops and Flight Crew in order to populate the related lookup fields for each one of them.
Thanks,
Ronaldo.
This will create several itinerary objects based on each crew and stop.
NOTE: This code has not been tested and may contain typographical or logical errors.