Hi Everyone!
We are currently trying to implement the Refer a friend Use case according to this: Use case: creating a Refer A Friend form
We followed the steps but always get 'technical error' after submitting the form.
We have the following questions regarding the process:
- 1. General
Properties: What do you fill in the following fields?
- Document type: ?
- Library: ?
=> We don't have the same view from "storage" as in the Use case (screenshot 1). We get the following options (screenshot 2) & (screenshot 3)
Screenshot 1 (from use case):
Screenshot 2:
Option 1 (Properties => Document type: Recipients; Library: Response to a recipients form )
Screenshot 3:
Option 2: (Properties => Document type: visitors; Library: visitors form reponse )
- 2.
What does the first line out of the code below mean?
Do we need to customise something besides "APP5"?
- ctx.recipient.visitor.@id = xtk.session.GetNewIds(1)
- ctx.recipient.visitor.@forwardUrl = "APP5"
- ctx.recipient.visitor.@referrerEmail = ctx.recipient.@email
- ctx.recipient.visitor.@referrerFirstName = ctx.recipient.@firstName
- ctx.recipient.visitor.@referrerLastName = ctx.recipient.@lastName
- 3. Do we need to change something from this code? (Besides "referrer"). The unique identifier's name in our Adobe account is "@uniqueAccountId" Do we need to change @id somewhere to this?
// Updtate visitor to have a link to the referrer recipient
- ctx.recipient.visitor.@referrerId = ctx.recipient.@id
- ctx.recipient.visitor.@xtkschema = "nms:visitor"
- ctx.recipient.visitor.@_operation = "update"
- ctx.recipient.visitor.@_key = "@id"
- xtk.session.Write(ctx.recipient.visitor)
// Send email to friend
- nms.delivery.QueueNotification("referrer",
<delivery>
<targets>
<deliveryTarget>
<targetPart type='query' exclusion='false' ignoreDeleteStatus='false'>
<where>
<condition expr={'@id IN ('+ ctx.recipient.visitor.@id +')' }/>
</where>
</targetPart>
</deliveryTarget>
</targets>
</delivery>)
Thanks in advance for your help!!
Kind regards,
Femke