cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

"Has Attachements" always turn false

Hello, 

 

I'm building a flow 

When an item is created 

Check if there is an attachement 

post message in teams with or without url and attachments name (depending of there is an attachement. )

 

When I look to the flow execution, I see that "has attachement" value is always false in the  the part of "get items". 

So the condition ( next step) will always be false (attachement or no attachement) 

In Dutch Has attachement is "met bijlagen" 

 

flow bijlagen.png

The steps I take are :

When item is created

Condition: Has attachements is equeal to true 

If true: 

Get attachements 

Get content attachements 

Post message 

 

If false: 

Post message 

 

 

 

flow bijlagen 2.png

 

 

 

flow bijlagen 3.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: "Has Attachements" always turn false

Hi @Stijn007,

 

What's the size of the attachment?

If the attachment isn't huge, the attachment will upload once the item created then the Has attachment will be true;

If the attachment is huge, such as 8 MB, the file will upload after the item created, and the Has attachment will be false.

So in case the situation 2, you can create a delay after the trigger, add 1-minute delay (for example), then add Get item to get last version of the item.

Annotation 2020-01-20 154918.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Highlighted
Dual Super User III
Dual Super User III

Re: "Has Attachements" always turn false

Hi @Stijn007 

 

You need to add the get item action after the when an item is created trigger to actually get all the details metadata and attachment boolean in the flow as shown in the screenshot below: 

dde.PNG

 

Can you take a try with the above recommendation and check if you continue to face the same issues? 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted
Helper III
Helper III

Re: "Has Attachements" always turn false

Hey,

Adding "get item" didn't work. No displayname or URL is in the message.

When i try without condition, the url and Displayname is In the Message but when the item has no attachment, the message fails.

So This works with attachment but fails without attachment :
When item is created
Get attachment
Get content attachment
Post message




Highlighted
Community Support
Community Support

Re: "Has Attachements" always turn false

Hi @Stijn007,

 

What's the size of the attachment?

If the attachment isn't huge, the attachment will upload once the item created then the Has attachment will be true;

If the attachment is huge, such as 8 MB, the file will upload after the item created, and the Has attachment will be false.

So in case the situation 2, you can create a delay after the trigger, add 1-minute delay (for example), then add Get item to get last version of the item.

Annotation 2020-01-20 154918.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Helper III
Helper III

Re: "Has Attachements" always turn false

Hey,

 

It's not the size of the attachment. (only 1312kb) 

I do use powerapps, so that will also be a part of the delay (i think) 

 

 

 

I tried your suggestion (with delay) and now the attachments is true in the "get item" and it'post it in the message. Thanx for the solution. 

 

 

 

 

 

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (4,260)