Can Master-Detail be done in one flow?

I'm doing integrations from SQL Server to Salesforce. Can I do a master-detail integration in one flow?

I have two tables in the SQL server (po_hdr, po_ilne), and plan to integrate those to the Salesforce PO_HDR and PO_LINE objects.

Do I need two separate flows for that or can it be done in one flow?

There are multiple ways to do this.

  1. See pic below. There is a 'composite' option that might allow you to do this in 1 single flow and only 1 single import bubble.
  2. Else, you can use 2 import bubbles in 1 single flow, where the first bubble imports the parent records, and the second bubble imports the child records.
  3. Else, you can use 2 flows to completely separate the parent vs child imports.