Announcement

Migration of this forum

Dear users of this forum,

we are pleased to inform you that we will be updating the software behind this forum in the near future.

Existing posts, users and categories will remain untouched.

Important:

  • Each user will need to reset their password.
  • Please select "I forgot my password".
  • Enter the email address you used to register in this forum.
  • You will receive an email with a link to set a new password.
  • Please choose a new (secure) password and confirm the process.

We will keep you informed in the pinned thread.

Kind regards,
Your ReportServer Team


Migration des Forums

Liebe Nutzer dieses Forums,

wir freuen uns, euch mitteilen zu können, dass wir in naher Zukunft die Software hinter diesem Forum aktualisieren werden.

Existierende Beiträge, Nutzer und Kategorien bleiben weiterhin bestehen!

Wichtig:

  • Jeder Nutzer muss sein Passwort neu vergeben.
  • Wählt dazu einfach "Ich habe mein Passwort vergessen".
  • Gebt die E-Mail-Adresse ein, mit der ihr registriert seid.
  • Ihr erhaltet eine E-Mail mit einem Link zur Passwortvergabe.
  • Bitte wählt ein neues (sicheres) Passwort und bestätigt den Vorgang.

Wir halten euch im angepinnten Beitrag auf dem Laufenden!

Mit vielen Grüßen
Euer ReportServer Team

#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

IF_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