Hi,

I'm stuck...
Using as an example report 'Resource Assignment by Resource' and can
sucessfully scheduler and run the report from a workflow in UA thru
REST-service for *all* resources and email is sent to recipient.
Working Payload send to REST endpoint: /rpt/definition/<GUID>/sched is:

'{"DisplayName":"User accesses to resource","Description":"Some
descr","Comments":"",\
"Format":"PDF","CollectOnRun":false,\
"Email":{"To":"someaddress@test.com", "Cc":[], "Subject":"Resource
permission", "Message":"See attached file"},\
"Parameters":[{"Value":"","Description":"Location of plugin
files","DisplayName":"User accesses to
resource","InternalName":"Resource_Assignments_by_ Resource"
,"IsForPrompting":"0","Type":"String","Required":" 0"}],\
"Schedule":{"StartDate":1378386042000,
"RepeatNumber":1,"RepeatUnit":"MONTH", "EndDate":1378386642000}}'


Now I want to select specific resources from the form in UA and pass
that to the report.
But as this parameter 'Resource' seen in iReport is an ArrayList I'm not
sure how to deal with this.

When trying to add parameter-info for InternalName 'Resource' I only get
error like 'Input data are invalid.':

'{"DisplayName":"User accesses to
resource","Description":"","Comments":"",\
"Format":"PDF","CollectOnRun":false,\
"Email":{"To":"someaddress@test.com", "Cc":[], "Subject":"Resource
permission", "Message":"See attached file"},\
"Parameters":[\
{"Value":"","Description":"Location of plugin files","DisplayName":"User
accesses to resource","InternalName":"Resource_Assignments_by_ Resource"
,"IsForPrompting":"0","Type":"String","Required":" 0"},\
*{"Value":["testresource"],"Description":"Resource","DisplayName":"Resource" ,"InternalName":"Resource"
,"IsForPrompting":"0","Type":"ArrayList","Required ":"0"}],*\
"Schedule":{"StartDate":1378386042000,
"RepeatNumber":1,"RepeatUnit":"MONTH", "EndDate":1378386642000}}'

So, some question rises:
What should I pass to Resource-parameter, resource CN, resource DN,
name... ?
What would be the right syntax for the 'value' parameter then be?
Tried "Value":["res1","res2"], "Value":[{"res1","res2"}],
"Value":[{"Value":"res2"}]....
Is ArrayList the right Type-value ?

Thanks,
/Andreas


--
ar
------------------------------------------------------------------------
ar's Profile: https://forums.netiq.com/member.php?userid=1816
View this thread: https://forums.netiq.com/showthread.php?t=51072