Hi All,
I am trying to run and schedule the Alteryx workflow with the help of python batch script and when I try "User is logged in" then alteryx workflow running fine. but when I tried to run and schedule the same with "User is logged in or not" then it will not running the alteryx workflow.
Windows Task Scheduler setting
General- Run User is logged in or not, Run with highest Privileges
Action- Program/script - Masterflow.bat , Start in- Full path of Masterflow.bat
Conditions -Wake the computer to run this task
Batch script
python "C:\Alteryx_Data\MasterFlow.py"
Python Script
import pyautogui as pg
import os
import time
time.sleep(10)
os.startfile('C:\Alteryx_Data\MasterFlow.yxmd')
time.sleep(60) #build in enough time for Alteryx to open the workflow
pg.hotkey('ctrl', 'r')
time.sleep(10)
Please guide me on this, the above is all the details that I have used to run and schedule the workflow with the help of python batch file but when it comes to "User is logged in or not" then it will not get executing.
Thank you in advance.