Siebel GenerateReport Workflow
Hi
I am attempting to call BI Publisher from a button click. I am trying to set it up so that it also stores the report as an attachment.
This is the code I am using:
try
{
var BillingRunId = this.BusComp().GetFieldValue("Id");
var BillingRunName = this.BusComp().GetFieldValue("Name");
var svc = TheApplication().GetService("Workflow Process Manager");
var psInput = TheApplication().NewPropertySet();
var psOutput = TheApplication().NewPropertySet();
var psChild = TheApplication().NewPropertySet();
var bsPMANI = TheApplication().GetService("PRM ANI Utility Service");
var input = TheApplication().NewPropertySet();
var output = TheApplication().NewPropertySet();
input.SetProperty("Hierarchy Name", "AttachmentParams");
bsPMANI.InvokeMethod("CreateEmptyPropSet", input, output);
psChild = output.GetChild(0);
psInput.SetProperty("ProcessName", sName); // Workflow process you want to execute
1