How to download unique mirror link for each recipient? | Community
Skip to main content
Level 3
August 16, 2017

How to download unique mirror link for each recipient?

  • August 16, 2017
  • 1 reply
  • 18177 views

I have a requirement to download the mirror link of each recipient. The link which I see on left bottom of Delivery tab of a Email Delivery.

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

1 reply

Jean-Serge_Biro
Level 10
August 16, 2017

Hello ckumari12,

The mirror page is generated for a (delivery / message) couple, so it is not unique for each recipient. It means, if you send 3 deliveries to a contact, this contact will get 3 mirror pages, one by delivery message he has been targeted for.


The mirror page is usually generated and kept for a duration defined in the delivery property (validity period). It takes resources on the web server (MTA or dedicated web server) so please take care, if you want to raise the default value, check the server resources.

If you need to do it programmatically (Javascript code), please use the GetMirrorURL method of nms:delivery, and do loops on the dedicated deliveries/messages to list them and act accordingly, for instance to write them in a file, doing a report or whatever you need.
MirrorPage is based on several fragments of messages, but it is easy to manage with the GetMirrorURL method, don't do it using the nms:MirrorPageInfo and nms:MirrorPageSearch, in my opinion.

If you know how to achieve forms (AC XML standard forms), you can manage to display a list of these URLs quite easily, by adding a tab to a delivery, or by doing a specific navtree node for displaying them. In that case, use this extract of nms:delivery xml form below, to implement your own form list convenient for your business case; the idea is to use the soapCall to GetMirrorURL and retrieve easily the information you are looking for:

        <input discardReadOnly="true" img="xtk:html.png" label="Afficher la page miroir de ce message..."
               prebuildSubForm="false" type="subFormLink" xpath=".">
          <form img="xtk:html.png" label="Contenu de la page miroir du message sélectionné">
            <enter>
              <soapCall name="GetMirrorURL" service="nms:delivery">
                <param exprIn="@id" type="int"/>
                <param exprIn="[/ignored/@selectedMessage]" type="string"/>
                <param type="string" xpathOut="/ignored/@mirrorPageUrl"/>
              </soapCall>
            </enter>
            <input type="browser" urlMode="true" xpath="/ignored/@mirrorPageUrl"/>
          </form>
        </input>
        <container type="visibleGroup" visibleIf="EV([mailParameters/@needMirrorPage], 'yes')">
          <static type="warning">Le chargement de la page miroir peut prendre un certain temps.</static>
        </container>

Regards

Jean-Serge

giusepped934715
February 7, 2018

HI Jean-Serge

This is really interesting, do you have an example of the call in Javascript for Workflows?

I'm using this

nms.Delivery.GetMirrorURL(1232,3444,link);

is that right?

Thanks in advance,

Giuseppe.

Adhiyan
Adobe Employee
Adobe Employee
February 14, 2018

Hi Giuseppe,

Unfortunely, the JSAPI.chm documentation is quite light for this method but only 2 arguments.

Well, I give it below, to avoid further misleading. florentlb​ feel free to suppress it if it is not allowed to share, as far as I understand.

GetMirrorURL

Obtains the URL of an HTML mirror page.

String url = GetMirrorURL (
    Number      deliveryId,
    String      message
)

Parameters

deliveryId

Delivery identifier

message

Message ID

Return value(s)

url

Mirror page URL

Regards
JS


Hi Giuseppe,

I was able to use it like this inside JS

var url = nms.delivery.GetMirrorURL(xxxx,"yyyy")

logInfo('mirror Url is: ' + url)

Where xxxx = Delivery ID

yyyy = BroadLog ID

This is will give you the mirror page of a particular recipient not all.

Regards,
Adhiyan