[SalesForce] Exact Target upsertDE to more than one Data extension

I currently have a landing page which I'm writing the data to a Data Extension is it possible to write the same data for two different data extension at the same time?

currently i am using upsertDE Ampscript and cant get it to write to the second Data Extension

any help appreciated

Best Answer

Really, the only option is to run multiple upsertDE functions in your AMPscript block.

For example:

%%[

SET @DE1 = "dataextension_1"
SET @DE2 = "dataextension_2"

SET @attr1 = RequestParamater(attr1)
SET @attr2 = RequestParamater(attr2)

IF NOT EMPTY(attr1) AND NOT EMPTY(@attr2) THEN
upsertDE(@DE1, 1, "attr1",@attr1,"attr2",@attr2)
upsertDE(@DE2, 1, "attr1",@attr1,"attr2",@attr2)
ENDIF
]%%