Skip to main content
Kris Webster 님이 #Ask An Expert에 질문했습니다
I am implementing a flow that will search the system for records where the Sales_Invoice__c field matches on both records and then am hoping to then create a new record on the sales commission with the records that are found in Get Records. 

 

Here is a high level of the flow 

 

FLOW - Creating Multiple Records when only should create one - PLEASE HELP

 

User-added image

 

As you can see in the Get Records we are searching for commission Detail Records where the Sales_Invoice__c field = the SalesInvoiceIdforUpdate. This is a field that is updated from a Process Builder that gets called when the Sales Invoice field on the Commission Detail Record IS NOT EQUAL to NULL (as seen below).

 

User-added image

 

We then add all the records that meet this criteria to a record collection variable and store some of the values from the commission details so we can use those on record create. 

 

User-added image

 

After that we enter the loop. 

 

User-added image

 

We then assign variables 

 

 
답변 4개
  1. 2019년 12월 20일 오후 10:09
    Well, it's quite obvious that if you are looping over a collection and then adding them to a collection, then using that collection to create records, then obviously it will create multiple records.
0/9000