New-NectarReport
    • 22 Jul 2024
    • 3 Minutes to read
    • Contributors
    • Dark
      Light
    • PDF

    New-NectarReport

    • Dark
      Light
    • PDF

    Article summary

    Creates a new report

    Description

    Creates a new report using previously defined widgets from New-NectarReportWidgetConfig

    Syntax

    New-NectarReport
      -Name  <String>
      -Description  <String>
      -Type  <String>
      -WidgetList  <ArrayList>
      -ReportTimeZone  <String>
      -ScheduleMode  <String>
      -SchedDayOfMonth  <Nullable`1>
      -SchedWeekdays  <String[]>
      -SchedStartDate  <String>
      -SchedEndDate  <String>
      -SchedStartTime  <DateTime>
      -SchedTimeZone  <String>
      -SchedNotifyMethod  <String>
      -SchedEmail  <String[]>
      -SchedEmailSubject  <String>
      -SchedEmailMessage  <String>
      -SchedRepeatEveryNumDays  <Nullable`1>
      -SchedRepeatEveryNumWeeks  <Nullable`1>
      -TenantName  <String>
    

    Examples

    Example 1

    New-NectarReport -Name 'Test Report -Description 'This is a test report' -WidgetList $WidgetList -Type User
    

    Creates a user-level report using a pre-defined set of widgets stored in the $WidgetList variable

    Parameters

    -Name <String>
    The name of the report

    ParameterValue
    Requiredtrue
    Position1
    Requiredtrue
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -Description <String>
    A description to go with the report

    ParameterValue
    Requiredfalse
    Position2
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -Type <String>
    The report type (or scope). Select from User or Tenant. User reports are visible only to the creator.
    Tenant reports are visible to all users.

    ParameterValue
    Requiredfalse
    Position3
    Requiredfalse
    Default ValueUser
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -WidgetList <ArrayList>
    An arraylist containing the definitions for all the widgets to put in the report. Widgets are defined
    using New-NectarReportWidget

    ParameterValue
    Requiredtrue
    Position4
    Requiredtrue
    Default ValueNone
    Accept pipeline input?false
    Accept wildcard characters?false

    -ReportTimeZone <String>
    The timezone used for report display

    ParameterValue
    Requiredfalse
    Position5
    Requiredfalse
    Default Value"Etc/GMT$((Get-TimeZone).BaseUTCOffset.hours)"
    Accept pipeline input?false
    Accept wildcard characters?false

    -ScheduleMode <String>
    How often to run the report when on a schedule

    ParameterValue
    Requiredfalse
    Position6
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -SchedDayOfMonth <Nullable`1>
    If report is run on a schedule, what day of the month to run the report. Only works with ScheduleMode MONTHLY

    ParameterValue
    Requiredfalse
    Position7
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -SchedWeekdays <String[]>
    The days of the week to run the report. Only works with ScheduleMode WEEKLY

    ParameterValue
    Requiredfalse
    Position8
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -SchedStartDate <String>
    When the report schedule should start

    ParameterValue
    Requiredfalse
    Position9
    Requiredfalse
    Default Value((Get-Date).AddDays(1)).ToShortDateString()
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -SchedEndDate <String>
    When the report schedule should end

    ParameterValue
    Requiredfalse
    Position10
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -SchedStartTime <DateTime>
    The time of day that the report should start processing

    ParameterValue
    Requiredfalse
    Position11
    Requiredfalse
    Default Value00:00
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -SchedTimeZone <String>
    The timezone the schedule should run on

    ParameterValue
    Requiredfalse
    Position12
    Requiredfalse
    Default Value"Etc/GMT$((Get-TimeZone).BaseUTCOffset.hours)"
    Accept pipeline input?false
    Accept wildcard characters?false

    -SchedNotifyMethod <String>
    How to notify users when the report is ready

    ParameterValue
    Requiredfalse
    Position13
    Requiredfalse
    Default ValueNONE
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -SchedEmail <String[]>
    One or more email addresses, separated by commas to notify upon report completion.
    Only usable when SchedNotifyMethod is EMAIL

    ParameterValue
    Requiredfalse
    Position14
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -SchedEmailSubject <String>
    The subject line of the email.
    Only usable when SchedNotifyMethod is EMAIL

    ParameterValue
    Requiredfalse
    Position15
    Requiredfalse
    Default Value$Name
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -SchedEmailMessage <String>
    The content of the email message.
    Only usable when SchedNotifyMethod is EMAIL

    ParameterValue
    Requiredfalse
    Position16
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -SchedRepeatEveryNumDays <Nullable`1>
    How often to repeat a daily schedule

    ParameterValue
    Requiredfalse
    Position17
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -SchedRepeatEveryNumWeeks <Nullable`1>
    How often to repeat a weekly schedule

    ParameterValue
    Requiredfalse
    Position18
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    -TenantName <String>
    The name of the Nectar DXP tenant. Used in multi-tenant configurations.

    ParameterValue
    Requiredfalse
    Position19
    Requiredfalse
    Default ValueNone
    Accept pipeline input?true (ByPropertyName)
    Accept wildcard characters?false

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence