MicroStrategy ONE
Create Cache Update Subscription statement
Create a Cache Update subscription.
Do not include any leading or trailing spaces in the ANSWER parameters. This causes a SQL error and prevents the command from executing.
CREATE CACHEUPDATESUBSCRIPTION [subscription_name]
[FOR OWNERlogin_name] SCHEDULEschedule_name (USERuser_name | GROUP user_group_name) CONTENT (report_or_document_nameIN FOLDERlocation_name | GUID report_or_document_guid) [CONTENTTYPE (REPORT | DOCUMENT)] IN PROJECTproject_name [SENDNOTIFICATION(TRUE|FALSE)]
[(SENDNOTIFICATION_ADDRESS notification_address" | PHYSICALADDRESS "physical_address"
DEVICE "notification_device")] [RUNFRESH (TRUE|FALSE)] [CREATEUPDATECACHE (TRUE|FALSE)]
DELIVERYFORMAT (PLAINTEXT | EXCEL | CSV | HTML | PDF | FLASH) [SENDNOTIFICATION
(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
-
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