cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pnass001
Post Patron
Post Patron

Creating a common column Number for two separate data sets within Sharepoint. "Help identify which signatures are related to which form"

Hi there - I will add pictures. I have 6 signatures that are within a form. 3 within "PDR" and 3 within "DDR." I have a Sharepoint database where all the form data is going to except these 6 signatures. The 6 signatures are going into separate folders. One for PDR and one for DDR. I would like to identify these 6 signatures in accordance with within the form data, so I had created a column "Number." I was wondering how I could create an automatic generated number for each submitted form that will go into the "Name" column within the form database and separate signatures folders? So far I created two separate flow that will allow 3 signatures to go in their respective folder but have no way of identifying them in accordance with the submitted form. Any help would be grateful

3 REPLIES 3
GarethPrisk
Super User II
Super User II

Are you trying to correlate the three separate lists, using the Number field in each?

If so, then you may just want to add a fourth list. This way, you could create a record in this fourth list, and then use that to correlate the three other lists using a lookup column to the fourth list.

Otherwise, there's going to be no guarantee that the Numbers will match, or not be edited.

@GarethPrisk Yes, correlating all 3 lists. How can I input and match the "Number" column within this 4th list within Sharepoint? And how to input this lookup column? 

First make your updates on the SharePoint side.

  • Create your 4th list (example name: Number List)
  • For each of the 3 other lists
    • Add a new column
    • Type = Lookup, to Number List

Then add the new list to your app, and refresh the others.

Then, for your save pattern.

ClearCollect(
    colNewNumber, // Temporarily collects the record created in list4
    Patch(
        list4,
        Defaults(list4),
        {Title: "Whatever You Want"} // However you want to track your 'numbers'
    )
);
Patch(
    list1,
    Defaults(list1),
    {
        Title: "Whatever You Want", // Enter the Title and other columns
        list4LookupField: {
            Id: First(colNewNumber).ID,
            Value: First(colNewNumber).Title
        }
    }
)
// Copy list1 patch code for list2 and list3, only ClearCollect colNewNumber each time you create a new correlation record in list4, for the other 3 lists

 

Be sure to enable some data integrity - meaning Restrict Users from deleting records in the fourth (Number) list: https://techenthusiast.in/2018/05/28/exploring-enforce-relationship-behavior-option-for-sharepoint-l...

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (34,965)