cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AxelHE
Helper I
Helper I

Planner attachments to Sharepoint item

Hello
Need help with building a flow

1. When a task i completed

2. Update item (Sharepoint item)

3. Add attachments (Sharepoint item)

 

Only problem is to add the the attachments from Planner and add them to Sherepoint item.

I know that there is no straight way to do that.

I see that it should be possible, all these attachments are stored in Documents but can not get it working

AxelHE_0-1611732009436.png

 

This is how the file looks like in Sharepoint (title has changed)

 

AxelHE_2-1611732423356.png

 

 



1 ACCEPTED SOLUTION

Accepted Solutions
Mira_Ghaly
Dual Super User
Dual Super User

@AxelHE 

I made a test at my side , try to follow below steps and see how it goes:

 

 

Mira_Ghaly_0-1611736190695.png

Mira_Ghaly_4-1611736590763.png

Set Variable 2 Expression:

sub(length(split(outputs('url'),'/')),1)

Compose 2 Expression:

split(outputs('url'),'/')[variables('Length')]  

 

 

compose:URL:

Mira_Ghaly_2-1611736305795.png

 

Mira_Ghaly_3-1611736401280.png

In the step of GetFileMetadatausing path i suppose you already know the site and use add custom value to add it.

 

Hope this helps!

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

View solution in original post

2 REPLIES 2
Mira_Ghaly
Dual Super User
Dual Super User

@AxelHE 

I made a test at my side , try to follow below steps and see how it goes:

 

 

Mira_Ghaly_0-1611736190695.png

Mira_Ghaly_4-1611736590763.png

Set Variable 2 Expression:

sub(length(split(outputs('url'),'/')),1)

Compose 2 Expression:

split(outputs('url'),'/')[variables('Length')]  

 

 

compose:URL:

Mira_Ghaly_2-1611736305795.png

 

Mira_Ghaly_3-1611736401280.png

In the step of GetFileMetadatausing path i suppose you already know the site and use add custom value to add it.

 

Hope this helps!

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here
AxelHE
Helper I
Helper I

Hi @Mira_Ghaly 
Thank you so much!

Worked on the first try 😉

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,012)