Generate mirror url for export | Community
Skip to main content
Level 2
March 19, 2019
Solved

Generate mirror url for export

  • March 19, 2019
  • 3 replies
  • 4562 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jonathon_wodnicki

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

3 replies

Jonathon_wodnicki
Community Advisor
Community Advisor
March 19, 2019

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

Level 5
May 3, 2023

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

Level 2
March 19, 2019

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

Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
March 19, 2019

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