MicroStrategy ONE

Create History List Subscription statement

Create a subscription to a History List message.

Do not include any leading or trailing spaces in the ANSWER parameters. This causes a SQL error and prevents the command from executing.

Copy
CREATE HISTORYLISTSUBSCRIPTION [subscription_name] 
 [FOR OWNERlogin_name] SCHEDULEschedule_name (USERuser_name | GROUP user_group_name) CONTENT (report_or_document_name IN FOLDERlocation_name | GUID report_or_document_guid) [CONTENTTYPE (REPORT | DOCUMENT)] IN PROJECTproject_name [OVERWRITEOLDERVERSION (TRUE | FALSE)] [HISTORYLINKURL 
 historylinkurl] [HISTORYLINKWEBSERVER historylinkwebserver] [EXPIRATIONDATEmm/dd/yyyy] [SENDNOTIFICATION (TRUE | FALSE)] [(SENDNOTIFICATION_ADDRESS 
 "notification_address" | PHYSICALADDRESS "physical_address" 
 DEVICE "notification_device")] [MODIFICATIONBYRECIPIENTS (TRUE|FALSE)] [PROMPT 
 prompt_name1 ANSWER prompt_answer1 [, PROMPT prompt_name2 ANSWER prompt_answer2 [, .. PROMPT prompt_namen ANSWER prompt_answern]]];

where:

  • subscription_name is the name of the subscription

  • login_name  is the login name of the subscription owner

  • schedule_name is the name of the schedule

  • user_name is the name of the user

  • user_group_name is the name of the group

  • report_or_document_name is the name of the report or document

  • location_name is the name of the folder where the report or document resides

  • report_or_document_guid is the GUID of the report or document

  • project_name is the name of the project where the report or document resides

  • historylinkurl is the hyper-link to the history list

  • historylinkwebserver is the "base URL" to the history list

  • mm/dd/yyyy is the date of the subscription

  • notification_address is the address to which notifications are sent

  • physical_address is the physical address to which notifications are sent

  • notification_device is the device to which notifications are sent

  • prompt_name1..n are the names of prompts in the report or document

  • prompt_answer1..n are the answers to the corresponding prompts