Expand my Community achievements bar.

SOLVED

Generate mirror url for export

Avatar

Level 2

Hi

I need to export all mirror page urls for an email delivery in a workflow.

The idea is that we want another application to be able view the mirror pages so we need to generate the urls based on the recipient delivery logs using the unique message id:s.

Does anyone have an example for that?

/Mikael B

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Can only do it in JS, due to cryptString(). You can alter the file after export populating the col with js.

View solution in original post

4 Replies

Avatar

Community Advisor

Hi,

You can encode the url's yourself in js, it's just url-encoded cryptString('-1|<broadlog id in base16>|<delivery id in base16>'). Not sure what -1 is. If you want to do it the hard way there's jsapi call nms.delivery.GetMirrorURL().

Thanks,

-Jon

Avatar

Level 5

Hi @Jonathon_wodnicki,

 

Can you please give me an example for both the methods. The getMirrorUrl gives me error for messageId not being a valid 32 bit integer

 

Regards,

DG

Avatar

Level 2

Hi Jon

Ok. The problem is that this is not for a js context. I need to do it in an export workflow where I don't have access to js execution. I need to do it in Data extraction or Enrichment activity in a workflow.

Do you know how to that?

Mikael

Avatar

Correct answer by
Community Advisor

Can only do it in JS, due to cryptString(). You can alter the file after export populating the col with js.