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

Yangyang Liu February 16, 2021

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

0 votes
Answer accepted
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 16, 2021

Hi

I think you need to use something like

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

Alex

Yangyang Liu February 16, 2021

Hi

 

It works! Thanks a lot!

 

Yangyang Liu

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events