Avatar

Correct answer by
Community Advisor

Hi Priyal,

code below works only if you're on hybrid mode. If you're hosted by Adobe use url-encoding cryptString('-1|<broadlog id in base16>|<delivery id in base16>')

 

If you want to use JS activity inside a workflow, see the example:

 

var url = nms.delivery.GetMirrorURL(000000001,"00000002")

 

000000001 is the delivery id

00000002 is the broadlogId (not the messageID) - passed as string in quotes

 

If you need to use it within variables:


instance.vars.deliveryId = 000000001

instance.vars.broadlogId = 00000002

instance.vars.broadlogId = instance.vars.broadlogId.toString()

 

var url = nms.delivery.GetMirrorURL(instance.vars.deliveryId,instance.vars.broadlogId)

 

To get the mirror page per user, you need to add a loop in your queryDef

Thanks,

David

View solution in original post