Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: SQL query to generate for the task inside a specific folder
Topic Summary: create SQL query to get the task repository reports
Created On: 10/11/2017 06:27 PM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 10/11/2017 06:27 PM
User is offline View Users Profile Print this message

Author Icon
RommelSilvero
Student (5-19 posts)

Posts: 15
Joined: 06/19/2017

Hi All,

I have this query below to try to generate the report like what we have in a execution events tab in Automate. 

I wanted to have a result look like the attach pic. Is there a way we can accomplish this in a DB query? I tried to look at the table structure i cant seem find the correct table to have the desired output.

 

The goal is create a DB query then load it in Automate task to execute then export the out to a file (excel sheet).

I appreciate everyone's idea on this.

Thanks,

Roy



 Category Survey



Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)
 10/16/2017 12:48 PM
User is offline View Users Profile Print this message

Author Icon
Justin Aucoin
HelpSystems

Posts: 360
Joined: 02/15/2016

Hi Rommel,

The correct table would be executionevents. This table will contain the start and end times in GMT, the ResultCode, ResultText and AgentID. Please note that this table will not contain the task and workflow names, only their construction ids. The duration will also need to be calculated from the start and end times.

 Category Survey
AutoMate BPA Server 9 version:
Windows version:


-------------------------

Justin Aucoin | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
 10/16/2017 06:14 PM
User is offline View Users Profile Print this message

Author Icon
RommelSilvero
Student (5-19 posts)

Posts: 15
Joined: 06/19/2017

Thanks for the reply.

So I guess there is no way we can query that on the DB as I worked on those tables I dont see any names on it and duration.

Manually generating the report should be the best way for now. As it sound more complicated if we get it from the DB itself.

Thanks,

Rommel



 Category Survey
 10/17/2017 04:44 PM
User is offline View Users Profile Print this message

Author Icon
Devin Cannon
HelpSystems

Posts: 398
Joined: 03/17/2016

Hi Rommel,

The names would be in automatecontructs.  The duration would have to be calculated.  There is a start and end time in executionevents.



 Category Survey
AutoMate BPA Server 9 version:
Windows version:


-------------------------

Devin Cannon | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 851 guests browsing this forum, which makes a total of 851 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog