Solved

AARI File Upload: Is there a way to get the name of the file which is uploaded on to the AARI Form

  • 27 November 2023
  • 11 replies
  • 165 views

Badge +1

I want to get the name of the File, which is uploaded into the AARI Form, in order to further use it in my Task Bot.

icon

Best answer by Tamil Arasu10 27 November 2023, 13:49

View original

11 replies

Userlevel 7
Badge +13

Hi @MohammedReyanZedra ,

 

You can try using the AARI Web → Get Storage File in order to get the uploaded file details.

Badge +1

Hi @Padmakumar,
I have done the same to get the file and store it in my local,
But when I want to get the file name, I am unable to retrieve it.
 

 


When I am extracting $MeetingFile.File:getName$ i am getting error like 
 


Please let me know if you think I can do it in any other way.

 

Thank You

Userlevel 3
Badge +7

Hi @MohammedReyanZedra,

were you able to get the file path of the file that you are uploading to the AARI? May be you can follow the link below. Once you get the path then you can do string manipulation and get the desired value.

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/hbc/aari-use-case-file.html

 

Hope this helps!

Badge +1

Hi @Abhay Naik ,
I tried that, but again we are naming the file here in Get Storage File like this 
 

I want to know the name of the file $FileVar$ which in my case is Barclays_bank_Statement, I want to get this name in my Task Bot
 

Thank you for your response.

Userlevel 6
Badge +15

Please check the process that you have created it.

 

 

Checkin the input value in the process task and use the same variable in message box.

 

 

 
Badge +1

Great @Tamil Arasu10 
Thank you so much,

We have to use the same $input[File0]$ but as string INPUT in our TaskBot and use it as file name.

Badge +5

Great @Tamil Arasu10 
Thank you so much,

We have to use the same $input[File0]$ but as string INPUT in our TaskBot and use it as file name.

Hi I am dealing with a similar issue, but when I try the above method, I get this as file name whereas the file that I uploaded was named “uae pvt inv 90911081”, how do i get only the filename part

 

Userlevel 7
Badge +13

Great @Tamil Arasu10 
Thank you so much,

We have to use the same $input[File0]$ but as string INPUT in our TaskBot and use it as file name.

Hi I am dealing with a similar issue, but when I try the above method, I get this as file name whereas the file that I uploaded was named “uae pvt inv 90911081”, how do i get only the filename part

 

 

You can make use of RegEx to extract the required part from the above string.

 
Badge +5

Great @Tamil Arasu10 
Thank you so much,

We have to use the same $input[File0]$ but as string INPUT in our TaskBot and use it as file name.

Hi I am dealing with a similar issue, but when I try the above method, I get this as file name whereas the file that I uploaded was named “uae pvt inv 90911081”, how do i get only the filename part

 

 

You can make use of RegEx to extract the required part from the above string.

 

Ok i will do that, thank you

Badge

Hi @khondoker,

 

You should be able to use String: Extract text command where the file name would always be located after the keyword ‘?fn= and before the file extension, also you can use a find and replace to replace all the ‘+’ with spaces.

Badge

Please check the process that you have created it.

 

 

Checkin the input value in the process task and use the same variable in message box.

 

 

 

 

For me using the Desktop file option with a string variable holding the value of the file location helped.

Reply