Replacing the Default Attestation Report with a Custom Version

Hello,

We are using OneIM 9.3.

By navigating to > Attestation > Attestation Run > Select a policy in Web Portal. I can download a report using the "Download Report" button for any policy I choose. This report shows the name of the last approver or rejector in the approval flow. However, I would also like to include the information of the first approver/rejector in this report.

It seems that I cannot modify the default report directly. Is there a way to create a custom report and configure the system so that when the "Download Report" button is clicked, my custom report is downloaded instead of the default one?

Best Regards,

Volkan Ceylan

Parents
  • This cannot be configured currently. You would need to create a custom compostion API and modify the HTML 5 portal for that.

    The composition API looks similar to this one:

        public class CCC_Policy_Report : IApiProviderFor<PortalApiProject>
        {
            public void Build(IApiBuilder builder)
            {
                builder.AddMethod(Method.Define("attestation/policy/{uidpolicy}/report")
                    .With(m => m.Settings.SortOrder = 1)
                    .WithDescription(
                        "Your description....")
                    .WithParameter("uidpolicy", typeof(string), "Unique policy identifier", isInQuery: false)
                    .HandleReport(req =>
                    {
                        var parameters = new System.Collections.Generic.Dictionary<string, object>
                        {
                            ["UIDAttestationPolicy"] = req.Parameters.Get<string>("uidpolicy")
                        };
    
                        // This is the report including the decision history
                        const string reportName = "ATT_AttestationPolicy_AttestationRun_Results_with_history";
                        // Alternate report showing more details about the cases.
                        // const string reportName = "ATT_AttestationPolicy_AttestationRun_Details_with_history";
    
                        return new ReportGeneration {ReportName = reportName, Parameters = parameters};
                    })
                    .With(m => m.Route.ClientSuffix = "bypolicy")
                );
            }
        }

Reply
  • This cannot be configured currently. You would need to create a custom compostion API and modify the HTML 5 portal for that.

    The composition API looks similar to this one:

        public class CCC_Policy_Report : IApiProviderFor<PortalApiProject>
        {
            public void Build(IApiBuilder builder)
            {
                builder.AddMethod(Method.Define("attestation/policy/{uidpolicy}/report")
                    .With(m => m.Settings.SortOrder = 1)
                    .WithDescription(
                        "Your description....")
                    .WithParameter("uidpolicy", typeof(string), "Unique policy identifier", isInQuery: false)
                    .HandleReport(req =>
                    {
                        var parameters = new System.Collections.Generic.Dictionary<string, object>
                        {
                            ["UIDAttestationPolicy"] = req.Parameters.Get<string>("uidpolicy")
                        };
    
                        // This is the report including the decision history
                        const string reportName = "ATT_AttestationPolicy_AttestationRun_Results_with_history";
                        // Alternate report showing more details about the cases.
                        // const string reportName = "ATT_AttestationPolicy_AttestationRun_Details_with_history";
    
                        return new ReportGeneration {ReportName = reportName, Parameters = parameters};
                    })
                    .With(m => m.Route.ClientSuffix = "bypolicy")
                );
            }
        }

Children
No Data