GithubHelp home page GithubHelp logo

smatechnologies / opcon-reports-powershell Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 8 KB

A PowerShell script that runs OpCon reports in batch mode.

License: Other

PowerShell 100.00%
reporting birt

opcon-reports-powershell's Introduction

OpCon Reports PowerShell Script

A PowerShell script that runs OpCon reports in batch mode, allowing the user to get the PDF result attached to an email.

Prerequisites

Optional (Desirable)

  • OpCon Self-Service

Instructions

Steps for Script and Job Setup

Paste or import the script into the OpCon Scripts Repository and add a job into a Schedule.

The script has several different parameters, allowing the user to use it without having to make too many changes.

There are only 2 required parameters: -ReportName and -password (this is the password of the account that will send the email).

Check the OpCon documentation for more information on report names (Ex: Comparative Job Execution Statistics => admin03)

The following line shows an example of the Arguments field in the Job Details tab (in this case we are using Instance Properties):

        -SkdDateIni "[[JI.DATEINI]]" -SkdDateEnd "[[JI.DATEEND]]" -Schedule "[[JI.SCHEDULE]]" -ReportName "[[JI.REPORT]]" -password [[EMAILPASSWORD]] -to "[[JI.EMAIL]]" -SendEmail [[JI.SENDEMAIL]]

Add an On Request frequency.

Steps for Self-Service (Optional)

If desired, the user can setup a Self-Service button to run this report. Create the button that will have an event like this:

        $JOB:ADD,CURRENT,<Schedule name>,<Job Name>,<Frequency name>,Report=${REPORT};Schedule=${SCHEDULE};DateINI=${DATEINI};DateEnd=${DATEEND};EMAIL=${SM.USER.EMAIL};SENDEMAIL=${SENDEMAIL}

Where:

  • Report=${REPORT} (Required field) is a List field that contains a list of the reports;

  • SENDEMAIL=${SENDEMAIL} (Required field) is a List field that MUST contain Yes and No as options to tell the script if the PDF file created has to be emailed or not;

  • Schedule=${SCHEDULE} is a Schedule Master field;

  • DateINI=${DATEINI} is a Date field that can be used as starting date for the information in the report;

  • DateEnd=${DATEEND} is a Date field that can be used as the end date for the information in the report;

  • EMAIL=${SM.USER.EMAIL} (can be a field in Self-Service; in this case we are using the current Solution Manager OpCon user's email) is the email address of the the person that will get the email;

Disclaimer

No Support and No Warranty are provided by SMA Technologies for this project and related material. The use of this project's files is on your own risk.

SMA Technologies assumes no liability for damage caused by the usage of any of the files offered here via this Github repository.

License

Copyright 2020 SMA Technologies

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contributing

We love contributions, please read our Contribution Guide to get started!

Code of Conduct

Contributor Covenant SMA Technologies has adopted the Contributor Covenant as its Code of Conduct, and we expect project participants to adhere to it. Please read the full text so that you can understand what actions will and will not be tolerated.

opcon-reports-powershell's People

Contributors

rmaia-sma avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.