cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Franklin_vaz
Frequent Visitor

Convert apply to each output to a single comma separated string

Hi Fellows,

 

Goal is to save all Outlook email properties to a single Sharepoint item, including attachments and its names. I have knowledge to save the attachment contents to one single line item using (Add attachment) action by referring to the ID of Sharepoint line item.

 

My challenge is, when i loop the incoming attachment property (Attachment Names), for every loop system creates a new line item in sharepoint. All i want is the names of attachments need to be stored as a comma separated string in Sharepoint column.

 

ApplyToEacg.png

My understanding is, the logic should be - Converting Apply to each output to a single comma separated string and then add it to the column when creating Sharepoint item. But i do not know how to do that. Please can you help?

 

The answer to this, will help me solve few more related doubts. Thank you in advance.

 
 
 
1 ACCEPTED SOLUTION

Accepted Solutions
DamoBird365
Community Champion
Community Champion

Hi @Franklin_vaz 

 

You want to setup a string variable and then append the item to the string on each loop.  If you want the new string to be comma seperated, instead of dropping in the attachments name, you would need to build an expression instead and use concat([AttachmentName......],',').

 

DamoBird365_0-1614842509869.png

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien

 

View solution in original post

1 REPLY 1
DamoBird365
Community Champion
Community Champion

Hi @Franklin_vaz 

 

You want to setup a string variable and then append the item to the string on each loop.  If you want the new string to be comma seperated, instead of dropping in the attachments name, you would need to build an expression instead and use concat([AttachmentName......],',').

 

DamoBird365_0-1614842509869.png

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien

 

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,619)