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 Piotr,

    What version are you using?

    Are the entries for the reports already present in the RPSReport table?

    What table is preventing an insert?

    PersonHasRPSReport is the table that stores subscriptions for Person records. Provide there is an actual report, UID_RPSReport, and a person to assign to, UID_Person, you should be able to insert a row here.

    But if there is a permissions issue, that should be addressed first. Any script you use would fail for the same reason if permissions are insufficient.

    Trevor
Reply
  • Hi Piotr,

    What version are you using?

    Are the entries for the reports already present in the RPSReport table?

    What table is preventing an insert?

    PersonHasRPSReport is the table that stores subscriptions for Person records. Provide there is an actual report, UID_RPSReport, and a person to assign to, UID_Person, you should be able to insert a row here.

    But if there is a permissions issue, that should be addressed first. Any script you use would fail for the same reason if permissions are insufficient.

    Trevor
Children
No Data