Forum Discussion
Thank you.
I just started working with pipelines and it works.
------------------------------
Costin Angelescu
------------------------------
Dear Mark Shiner,
Thank you again for recommending the pipelines. Now I face another issue.
I've set up the pipeline (see attached), but when a user adds 6 records, the entries that are searched and then added to the final table end up being multiplied by 6.
How can I ensure that when a user adds records to the table, the pipeline copies these records to the final record only once?
Please notice the attachment.
------------------------------
Costin Angelescu
------------------------------
- ChayceDuncan6 months agoQrew Captain
Costin -
Since you're triggering on each record being added your Pipeline will perform that same action for each being added. It seems from your setup that when a new TMS report is added - you want to copy it over to a new table automatically correct?
If that is the case - you technically do not need to do a search in step B where you are querying for similar records in the TMS table. Instead - you can just retrieve the fields in Step A when the 'New Record' is being triggered, and copy it straight away into your second table.
Reading back to your original post - your original comment was that you wanted this to run on a schedule, of which if that is your intent, then you probably don't actually want to trigger on a new record as you are doing in Step A. Instead - you would just launch the Pipeline with the Search in Step B and schedule it to run once a week.
So in summation - you should either 1) Remove Step A and just do a weekly search to copy your records, or 2) Remove Step B from searching the table and instead copy each record in real time.
------------------------------
Chayce Duncan
------------------------------- CostinAngelescu6 months agoQrew Member
Good day,
Thank you for your guidance!
It appears that I cannot trigger a single copy when there are more than one record added; this is clear in step A, where the option specifically mentions "When Record Created."
Later edit:
I just noticed the option below where the trigger is "On New Event".
The outcome looks like what I need.
A. When a user adds multiple records the pipeline is triggered by the event.
B. With the search option, I will retrieve the records based on my criteria.
C. The records are copied only once to the output table.
Concerns:
- Did anyone use this option? Do you see any risk in using it?
- Just noticed an error while running it. Came up while using the search option. Please notice the second picture below. I remember deleting the loop. Any suggestion?
------------------------------
Costin Angelescu
------------------------------- ChayceDuncan6 months agoQrew Captain
Costin -
The 'New Event' is a proxy for when records are added/modified - so you can handle both event types if needed in one Pipeline. It will work fine here.
As for the error - since you're still doing a search records you will still need a loop. The pipeline needs to index the record you're currently on - so IF you are still doing the search step you will need the loop.
I'll repeat one of my earlier suggestions that you don't need the search step at all. In your example it seems like you want to pick up the new record upon creation and immediately copy it. If thats true - then your 'trigger' in Step A can retrieve all the fields you need and then Step B is just copying the record. You would only need to do a search in this case if you were looking for other records of if these was on a schedule where you were running this weekly. Your Pipeline should probably look like:
Step A: New Event (On Record created) - include all the fields you want to copy in the fields the retrieve
Step B: Create new Record in clone table - include mapping of all the fields you wanted copied.
------------------------------
Chayce Duncan
------------------------------