cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Stijn007
Level: Powered On

"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
Community Support Team
Community Support Team

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
Dual Super User
Dual Super User

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!

Stijn007
Level: Powered On

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




Community Support Team
Community Support Team

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

Stijn007
Level: Powered On

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
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

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