Iterating multiple replaces

I’m trying to build something dynamic but running into an issue.

I have 2 tables:

Table 1:
Includes a path with parameters, for example:
/company/{{company_id}}/employees/{{employee_id}}

Table 2 has different parameters, for example:
Line 1
ParameterName: company_id
ParameterValue: 12345
Line 2
ParameterName: employee_id
ParameterValue: 987

I’ve made an iteration on table 2, and inside the iteration, I have put a replace, however this now results the following:

Line 1
ParameterName: company_id
ParameterValue: 12345
Path: /company/12345/employees/{{employee_id}}

Line 2
ParameterName: employee_id
ParameterValue: 987
Path: /company/{{company_id}}/employees/987

I would like to receive back 1 line, that replaced all the options (whether it’s 1 parameter, 2 parameters or 10 parameters). How could I best do this?

It looks like you may not need iterations here. The "Replace with lookup" action would do the job.

See the example below:
multiple-replace.morph (3.7 KB)

This worked perfectly! Many thanks!

You're welcome! :slight_smile: