on 02-01-2016 4:21 PM
Hello,
I want to reschedule webi report through restful webservices.
I can see if a schedule is failed or not with http://{servername}:{port}/biprws/raylight/v1/documents/{documentID}/schedules/{schedulID}. (get method)
Then I want to lauch again the webi reports that has been failed:
I am using post method :
url : http://{servername}:{port}/biprws/raylight/v1/documents/{documentID}/schedules/
with value :
{
"schedule" : { "name" : "test",
"format" : {"@type":"pdf"}},
"destination": {"mail": {
"from": "bo@domaine.fr",
"to": "user@domaine.fr",
"cc": "",
"bcc": "",
"subject": "Test DEV",
"message": "",
"addAttachment": true
}}
After this, here is the schedule parameters
{"schedule": {
"id": 207755,
"name": "test",
"format": {"@type": "pdf"},
"status": {
"@id": "1",
"$": "Completed"
},
"destination": "",
"once": {
"@retryIntervalInSeconds": "1800",
"@retriesAllowed": "0",
"startdate": "2016-02-01T15:55:07.888+01:00",
"enddate": "2026-02-01T16:55:07.888+01:00"
},
"serverGroup": {
"@required": "false",
"@id": "0"
}
}}
destination parameters disappeared !
Could you help me to know the reason of this ?
Thanks
Antoine
Hi Antione,
As far as I can see, the body you are sending in the POST looks fine. <edit>(it is missing a final close tag though)</edit>
Are you scheduling again using the {documentID} of the parent document or are you replacing it with the ID of the scheduled instance?
does this happen for all REST schedules to email destination or only when rescheduling failed documents?
Also, what version are you using? GET /raylight/v1/about
Dan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dan,
I am using BI 4.1 SP6 patch 1 with Apache Tomcat. I am trying to use WACS to be able to automatic reschedule failed instance.
{"about": {
"title": "Web Intelligence - Raylight",
"version": 1,
"vendor": "SAP SE",
"build": "14.1.6.1760",
"timestamp": "20150729.175734",
"copyright": "©2010 - 2015 SAP SE or an SAP affiliate company. All rights reserved."
}}
The final close was not missing in my test, it was missing only in my post!
I am trying to reschedule again with document id only, I am not using schedule instance.
After posted new schedule parameters, there is a schedule instance created with a specific number.
This schedule is working fine usually, this behavior is not specific to failmed schedule.
Thanks for yor help.
Antoine
Hello,
I have just trying with another destination :
{"schedule": {
"name": "NAME",
"format": {"@type": "pdf"},
"destination": {"filesystem": {
"username": "",
"directory": " //servername/Informatique/"
}}
}}
and it worked!
Instance has been rescheduled directly and pdf file was available on the filesystem.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.