Slack flow to create a folder with a specific name not working and getting an error.
Hi guys, I’m trying to create a flow that does the following:
Can you create a flow that does this. When I send in a message in private slack that says "Create a folder for me, name it xxxx" It will automactly create that folder and according to the name I mentioned in the message.
But it is showing this error in step 2. Any idea on how to resolve this issue? And if my flow was correct?
Page 1 / 1
Hi @greysonz1997
Good question.
In the Filter step condition, you’ll want to remove the ()
It’s a warning (not an error), indicating the Zap would not have continued based on the test data from Step 1 that you are using.
Thanks Troy, so I changed it this what the step 2 looks like now. However in step 3, it seems like it is still not finding the slack message that contain the keywords “Create a folder for me, name it”. When I test it in step 4, the folder created in goolge is called “true”. Please see screenshots below.
@greysonz1997
No screenshots were posted.
Apologies. Please see attached below
@greysonz1997
You may need to remap the condition variable in Step 2.
You may need to remap the Input field in Step 3.
I just remapped, and still has the same result when i run test in the last step.
@greysonz1997
The variable you have mapped in step 4 is indicating there was a match found (true).
Try mapping a different variable from the output of Step 3.
These are all the options I have to choose from, i tried all of them under “extract the folder name from the message”, but non of them give’s me the correct folder name in Gdrive…
@greysonz1997
Try this regex pattern:
\((.*?)\)
Where exactly do i put this pattern after or on?
Hi @greysonz1997
Hope you don’t mind me jumping in to see if I can lend a hand with this!
You’d want to put the Regex pattern that Troy suggested directly into the Pattern field on that Formatter action:
Can you give that a try and let us know if that allows it to extract the folder name from the message?
Oh wow, it worked. THANK YOU SO SO MUCH!
Yay! That’s fabulous news @greysonz1997. I’m so pleased that Regex pattern Troy suggested that did the trick!
One more question. The folder is created now, but it has this “_” after the name I send in the slack. Is there a way to get ride of the “_”?
@greysonz1997
We would need to see updated screenshots with how your GDrive Zap step is configured.
Here is screenshot for each steps.
@greysonz1997
This was the Text value from Slack with had a trailing _
This was the extracted pattern value from the Formatter step which had the trailing _.
Bad DATA IN = Bad DATA OUT
That’s weird… Because in the slack message I sent there isn’t a “_” anywhere, but it is in Zapier. (See screenshot below)
@greysonz1997
The examples from Slack don’t show the example pulled into the Zap trigger: