cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Stijn007
Advocate III
Advocate 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

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

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!

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




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.

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
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (3,688)