Hi, I want to build a flow that does the following (Automate in bold):
Step 1: A form gets submitted through Power Apps.
Step 2: Flow picks up this new submission to Sharepoint 1.
[ - ]
Step 3: Adjusts item in Sharepoint 2 based on the information in the Sharepoint 1 item.
Between Step 2 and 3, the flow would be much clearer if I could match certain values to numbers, so it knows which item to update in Sharepoint 1.
For example, if the submitted form has a selected fiscal year of 2024. I would like a step that translates the year into an ID number:
| Fiscal Year | Sharepoint 2 ID |
| 2023 | 1 |
| 2024 | 2 |
| 2025 | 3 |
| 2026 | 4 |
Or even more complex, matching multiple values to a certain ID:
| Fiscal Year | Department | Sharepoint 2 ID |
| 2023 | Sales | 1 |
| 2023 | Procurement | 2 |
| 2023 | Internal | 3 |
| 2024 | Sales | 4 |
| 2024 | Procurement | 5 |
| 2024 | Internal | 6 |
So based on the last item, if I were to submit a form to Sharepoint 1 with the following details:
| Name | Department | Fiscal Year | Spending | Income |
| Smith, John | Internal | 2023 | 55.000 | 0 |
It would be able to deduce that the Sharepoint 2 ID would be 3, so I can use 3 in the 'Get Item' operation.
Does anyone know how to approach this within Power Automate?