Samples > Sample stores > Consumer direct sample store > IBM Gift Center for the Consumer direct sample store > IBM Gift Center > Customize the Web (presentation) layer > IBM Gift Center actions


GiftRegistryAnnouncementPost action

This action stores announcement information that the gift registrant can use to notify gift givers of information regarding the gift registry or event. Optionally, the action also sends these announcements by e-mail.


URL structure

http://host/path/

The fully qualified name of the WebSphere Commerce Server and the configuration path (for example, wcserver.mydomain.ibm.com is fully qualified).
Diagram of the URL structure: The URL starts with the fully qualified name of the WebSphere Commerce Server and the configuration path, followed by the URL name, , and the ? character. End the URL with a list of parameters in the form of name-value pairs. Separate each <a href=name-value pair with the & character. For a detailed description of the parameters and their values, see the list entitled Parameter values." />


Parameter values

URL

Required: The URL to be called when the action completes successfully.

storeId

Required: The store reference number, which is required to help identify to which stores a gift registry belongs.

subject

Required: The e-mail subject or announcement description that the gift registrant will send to gift givers.

senderEmail

Required: The e-mail address of the gift registrant who is sending the announcement.

externalId

Required: The unique identifier for the gift registry.

errorViewName

A parameter that overrides the error view when an error occurs.

senderName

The name of the gift registrant who is sending the announcement.

recipients

A list of e-mail addresses for gift givers who will receive the announcement. Separate each e-mail address with a comma (for example, &recipients=ajones@email.com,bsmtih@myemail.com,cmiller@somemail.com). Optionally, you can specify the recipient names with their e-mail addresses (for example, Anne <anne@email.com>, Bill <bsmith@myemail.com>, Charlie Miller <cmiller@somemail.com>). If the recipients, recipientEmail_i, or recipientName_i parameters are specified, the recipients value takes precedence.

recipientName_i

The name corresponding to the e-mail address for the gift giver who will receive the announcement. If there are multiple recipients, specify as recipientName_1, recipientName_2, recipientName_3, and so on (for example, recipientName_1=Anne&recipientName_2=Bill&recipientName_3=Charlie Miller). If the recipients, recipientEmail_i, or recipientName_i parameters are specified, the recipients value takes precedence.

message

The message that the gift registrant wants to announce to gift givers.

sendEmailToRecipients

Specifies whether e-mails should be sent to gift givers. The e-mail can be composed and saved, to be sent at a later date. Valid values are as follows:

0

(Default) Send the announcement.

1

Wait to send the announcement.

sendEmailToSender

Specifies whether a copy of the announcement should be sent to the gift registrant sending the announcement. Valid values are as follows:

0

(Default) Send a copy of the announcement to the gift registrant.

1

Do not send a copy of the announcement to the gift registrant.

templateId

The template that the gift registrant wants to use for the announcement, as specified in the GRANNTMPLT database table.


Example

The following example illustrates a gift registrant's announcement about a milestone wedding anniversary and additional gift ideas for gift givers associated with gift registry 888 at store 1001. The gift registrant will e-mail this announcement to the specified e-mail addresses.

http://myhostname/webapp/wcs/stores/servlet/GiftRegistryAnnouncementPost?
URL=GiftRegistryAnnouncementView&storeId=1001&subject=Added More Gift Options
&externalId=888&senderEmail=johnsmith@email.com&recipients=anne@email.com, bsmith@myemail.com,cmiller@somemail.com&message=This is a milestone wedding 
anniversary - our 50th! We added more items to our gift registry.


Behavior


Exception conditions


Related concepts

IBM Gift Center architecture

Related reference

IBM Gift Center actions

Overview of customizing IBM Gift Center


+

Search Tips   |   Advanced Search