This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Create Report Subscription script

Hello, 

I need to create the report subscriptions from script/process. 

I have a number of reports that are bundled as a standard package. All of them should be assigned to users automatically.
User can opt out from those subscriptions at any time. 

Is there any way to do this from script/process?

I've tried inserting records using object browser manually, the insert action is prevented (permission missing). 

If there is no out-of-the-box method, what records (in which tables) I should insert to create subscription manually?

 

Thanks, 
Piotr Markiewicz

Parents
  • Hi Markus,

    thank you for your reply. The reports will have only fixed and calculated parameters.

    I've managed to create successful subscription, by:
    * Creating manually in SQL entry in RPSSubscription (bypassing Object Layer permission check)
    * Calling method "Create default parameter set" on newly created report subscription (in Object browser)

    This way I was able to receive the report and manage it in the UI (change parameters/unsubscribe) without any errors.


    Thank you guys for all the help.
Reply
  • Hi Markus,

    thank you for your reply. The reports will have only fixed and calculated parameters.

    I've managed to create successful subscription, by:
    * Creating manually in SQL entry in RPSSubscription (bypassing Object Layer permission check)
    * Calling method "Create default parameter set" on newly created report subscription (in Object browser)

    This way I was able to receive the report and manage it in the UI (change parameters/unsubscribe) without any errors.


    Thank you guys for all the help.
Children
No Data