Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I get the file name without the extension in ConfiForm IFTTT macro?

I am intended to rename a page using ConfiForm IFTTT with the action of "Rename Page". I wish the new page name to be the file name without the extension. Currently, I am using "[entry.file.toString().split(.).get(0)]" to get the filename. The "entry.file.toString()" statement returns the filename properly, but the ".split(.).get(0)" part is not getting rid of the file extension.

1 answer

1 accepted

Hi

I think you need to use something like

[entry.file.asAttachment.fileName.split(.).get(0)]

Alex

Hi

 

It works! Thanks a lot!

 

Yangyang Liu

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

628 views 7 23
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you