Skip to main content
Solved

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

  • November 27, 2023
  • 11 replies
  • 499 views

Forum|alt.badge.img+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.

Best answer by Tamil Arasu10

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.

 

 

 

11 replies

Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • November 27, 2023

Hi @MohammedReyanZedra ,

 

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


Forum|alt.badge.img+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


Abhay Naik
Forum|alt.badge.img+8
  • Navigator | Tier 3
  • November 27, 2023

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!


Forum|alt.badge.img+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.


Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+18
  • Most Valuable Pathfinder
  • Answer
  • November 27, 2023

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.

 

 

 

Forum|alt.badge.img+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.


Forum|alt.badge.img+6
  • Navigator | Tier 3
  • November 29, 2023

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

 


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • November 29, 2023

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.

 

Forum|alt.badge.img+6
  • Navigator | Tier 3
  • November 29, 2023

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


Forum|alt.badge.img+1
  • Cadet | Tier 2
  • June 19, 2024

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.


Forum|alt.badge.img+1
  • Cadet | Tier 2
  • June 19, 2024

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.