#1 2021-02-19 22:59:06

dannysalazar90
Member
Registered: 2021-02-10

Report and Schedule changes via API or Script

Hi,

I know that there is a way to execute reports in an API format (https://reportserver.net/en/guides/admi … a-the-URL/) but I have essentially two questions:

- is there any way to modify the schedule for a report, via API?
- if not, is there any library that I can use to change it (scripting), running a script in the API way?

Same for recipients, can I change those ones from API or via script?

Thanks for the support!

DS

Last edited by dannysalazar90 (2021-02-22 16:45:49)

Offline

#2 2021-02-23 08:07:18

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Report and Schedule changes via API or Script

Hi DS,

you can write a script for this, which may be scheduled periodically or similar, as described here: https://reportserver.net/en/guides/scri … rs/Basics/  3.2. Executing Scripts via URL

You can see all services available here: https://reportserver.net/api/current/services.html
and entities: https://reportserver.net/api/current/entities.html

You can get the corresponding ReportServerJob https://reportserver.net/api/current/ja … erJob.html and modify it accordingly e.g. using this service: https://reportserver.net/api/current/ja … rvice.html. For changing it you have to save the job into the database e.g. with the merge(AbstractJob job) method.

Same for recipients and any other properties.

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB