function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jane Marchand 2Jane Marchand 2 

How to create multiple Opportunity Line Items

I've a scenario where I have to create an Opportunity Record and then I must using the Opportunity Id to create opportunity line items

My flow works like this:
I lookup and loop through service contracts
Using the information gathered I collect it in Sobject Variable and pass it to a collection (collection A)
Using that collection I fast create Opportunity
I then fast lookup and loop thru opportunities, and collect the id of the opportunity I've just created (Collection A).
I then use a fast create Opportunity Line Items using Collection A

I keep getting an error stating that the Opportunity Id is missing... 

Can any one help me with this?


Best Answer chosen by Jane Marchand 2
Jane Marchand 2Jane Marchand 2
I've been talking to sf support - the problem is due to a known issue with flows :(

Workaround is to use record lookup and not fast lookup