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

Create Unique Record for a SharePoint List

Hi All, 

 

I need to create a single record in a SharePoint list when a file has been loaded to another SharePoint List.

 

Example: 

 

I have a SharePoint List called commission file data which is populated by an excel spreadsheet via a flow. It has 2 fields called Provider and StatementID.

 

hanbots_0-1596675548948.png

 

I want to create a single record in a different SharePoint list that shows only unique values for Provider and Statement to show up in this list.

 

hanbots_3-1596675807249.png

 

Does anyone have a recommended solution?

 

Thank you, 

Hannah

 

 

 

2 REPLIES 2
JohnAageAnderse
Super User
Super User

Hello @hanbots 

Create your list so you have one column in which you can fill with the concatenated values of the Provider and StatementID.

Make the column unique. This will make your flow action fail if it tries to insert a new item with the same Provider and StatementID in the unique column.

In the list, add any other columns as needed - probably would be a good idea to have one for Provider and one for StatementID.

In your flow, you then have to ensure that your flow can handle the failure by configuring the next action's Configure run after settings.

Kind regards, John

v-litu-msft
Community Support
Community Support

Hi @hanbots,

 

Has your problem been solved?
If your problem has been solved, You could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

Best Regards,
Community Support Team _ Lin Tu

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 (776)