JavaScript Data Injection Campaigns

As with self referencing campaigns BE has the ability to dynamically lookup data from an existing campaign. Unlike self referencing campaigns, you may wish to retrieve data from another campaign which is also possible. So if data can be retrieved it can also be inserted into fields to save on data repitition. A data injection is looking up data from a campaign and then inserting the retrieved data (if there is any) into fields in the current campaign. This can save a ton of data entry for users.

The setup of the retrieval is exactly the same as a self referencing campaign. It is useful to do self referencing first to ensure the data is being retrieved correctly.

JavaScript_Self-Referencing_Campaigns

Once the data is retrieved with two small changes, the retrieved data can be inserted into the desired fields.

Examining the self referencing function

Changes are required to line 19 and line 26.

Line 19, needs to have the key word "Insert" instead of "Table"

Line 26, is the list of fields in the current campaign, into which the data will be inserted. The fields in line 24 will be loaded into the corresponding fields in line 26. i.e. in the demo above strCDA_1_field_0_0 will be loaded into strCDA_2_field_0_24

Whilst testing it is useful to change back to the "Table" setup to ensure the correct data is being retrieved.