cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
elaaadani
Helper IV
Helper IV

Problems with creating duplicate items in sharepoint and document attachment

Good afternoon

I would like to know if someone can help me.
I am creating items in a sharepoint list.
As this is an item inside folders, I am using the send HTTP request action.
Once the item is created, I am attaching a file.

elaaadani_2-1625248067738.png

elaaadani_3-1625248101449.png

 

The problem I am having is that I can have duplicate named items, so the attach file action fails because the name is duplicated. I do not have the action to be able to keep both elements without the file attachment action failing, since I then have to move the file to a folder
Thank you in advance

1 ACCEPTED SOLUTION

Accepted Solutions

If your attachment is causing error because there already exist an attachment with that name, then yes. Append datetime to attachment name by formatting it without any seperators e.g. 'ddMMyyyyhhmmss'

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

View solution in original post

4 REPLIES 4
PrasadAthalye
Super User
Super User

Do you mean your attachment action is failing because there is duplicate Attachment name? If yes, may be you can append datetime to it to make it unique?

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

Do you mean to add the date in the attachment name ?

If your attachment is causing error because there already exist an attachment with that name, then yes. Append datetime to attachment name by formatting it without any seperators e.g. 'ddMMyyyyhhmmss'

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

View solution in original post

Thank you so much ! @PrasadAthalye Thank you for being so kind

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.

Top Solution Authors
Users online (1,937)