Hi
I’m new to PowerApps and I’m still learning.
I have a form to add new items to Sharepoint, FDM Request Form.
I created a column named Cost_Center and used Choice for a drop down. I used another data source ('FDM Cost Centers' SharePoint) to populate the dropdown.
Items : 'FDM Cost Centers'.FDM_CostCenter
I tried a Patch Function to add the new items with the selected cost center but, I kept getting an error regarding Record, Text, and Data type. Watching tutorials and searching this forum, gave me lots of possible answers, but I also got really confused. So, I ended up creating the other columns, CostCenterNum and CostCenterText. Please see attached images.
I even deleted the DataCardValue and replaced it with a ComboBox. (SelectMultiple: False, I only need one selection)
Update: Patch('FDM Request Form', Defaults('FDM Request Form'), {Cost_Center: ComboBox1.Selected.Value})
- What is the correct way to Patch the cost center to FDM Request Form SP?
- I would prefer the cost center without commas. eg 1001293790
- Also, in New and Edit mode, I see all the possible cost center from the FDM Cost Center SP list, but when I use the details pane or the quick edit mode, my ComboBox only have the original default selection from drop down. The other two columns (CostCenterText and CostCenterNum) are regular input fields. Is there a fix for this?
Any feedback or suggestion would greatly be appreciated.
Thank you