Page 1 of 1

Email the FileOwner

Posted: Fri Jul 15, 2016 9:50 am
by deesloop
I want a fileshare that users can drop things into and then have an action performed on them.

What I'm needing from robotask is a way to find out who dropped the item in and then get their email address.
I'm not seeing anything under file attributes

Is this available anywhere?

Re: Email the FileOwner

Posted: Mon Apr 03, 2017 4:37 pm
by deesloop
Yes, I use something similar in another product that extracts names from a pdf and creates filenames accordingly.
But I dont see there being an option to figure out who dropped the file in, like a file owner attribute.

Anyone?

Re: Email the FileOwner

Posted: Wed Apr 12, 2017 9:47 am
by Oleg
We'll investigate this.
Maybe we will implement variable or/and action to determine file owner in future versions.

I mean Owner attribute on NTFS file system

Re: Email the FileOwner

Posted: Wed Apr 11, 2018 8:27 pm
by Oleg
Now you can use Get File Metadata action to retrieve FileOwner
Each file has Owner property on NTFS file system

Get File Metadata is new action in version 7.1

Look at the example below:

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1752101565
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
ExternalName=STRING|"Task88"
Hide=INTEGER|0
ID=INTEGER|1495788740
LogOnAsUser=INTEGER|1
Name=STRING|"Get File Metadata from some file"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER

[Actions\Action1]
ActionID=STRING|"A_DIALOG_OPEN"
Enabled=INTEGER|-1
Name=STRING|"Open Dialog"
Params=FOLDER

[Actions\Action1\Params]
allowseveral=STRING|"0"
caption=STRING|"Select file"
default=STRING|"None"
filter=STRING|"Text files|*.txt|All files|*.*|"
variable=STRING|"FILE"

[Actions\Action2]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER

[Actions\Action2\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"1"
type=STRING|"0"
value1=STRING|"{File}"
value2=STRING|"none"

[Actions\Action3]
ActionID=STRING|"A_GETMETADATA"
Enabled=INTEGER|-1
Name=STRING|"Get File Metadata from file {file}"
Params=FOLDER

[Actions\Action3\Params]
filename=STRING|"{file}"
prop00000000=STRING|"Owner"
propcount=STRING|"1"
var00000000=STRING|"own"

[Actions\Action4]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""File: {File}"""
Params=FOLDER

[Actions\Action4\Params]
icon=STRING|"1"
msg0=STRING|"File: {File}"
msg1=STRING|"Owner: {own}"
msgcount=STRING|"2"
playsound=STRING|"0"
showmessage=STRING|"1"

[Actions\Action5]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"
Save the text of the task to a file and use menu Task->Import to import the task into RoboTask.