Hi All,
Had a good look in this forum and have found similar problems but wasn't able to tailor the solution to my situation.
I have a sharepoint list with many columns. Three of these are choice columns, two of which allow multiple selections and one does not. An end user will create a new record/item in the sharepoint list using a form in a PowerApp. After the form submission and following an Approval action, a field in the record is updated to "Approve" or "Reject" with all other fields in the record staying the same. Because most fields are required, I use dynamic content in each field to populate the original value from the item created in the sharepoint list. This works great apart from the three choice columns where the choice values are recorded in a code format (screenshot below - the first row is what it should look like (when item is created) , the second row is what the values look like after the Update Sharepoint List Item action is passed. In the scond row, "MSDS" is one of the choices that has been recorded.)
The flow:
Where it goes wrong. I've tried inputting the dynamic choice fields as arrays, but it still doesn't work 😞
Thanks for your help in advance! 🙂
Solved! Go to Solution.
Hi @Criptop ,
Please make sure it's formatted as follows-
It's an array and the attribute name of the single object is 'Value'.
Best Regards,
Wearsky
Hi @v-xiaochen-msft ,
Thank you for your response. Please see below screenshot which shows two of the multiple choice fields:
1. I think it is in the correct format, can you confirm?
2. Can I use dynamic values here as I have done?
3. When I add the "Documents_Required_From_Supplier2" field as a dynamic value, I am given the option to select the field, the field 'Value' or field 'Item'. I currently have the regular field selected. I tried it with Item and Value, which causes Automate to move the action into a nested Apply to Each action, but when I test the flow I still get the same error value in the Sharepoint List.
4. In your screenshot, you have two possible choices. Do I need to format the array as I have done in my screenshot, or do I need to supply a "Value" for each choice. For example, in the "Documents_..." choice field, there are 13 possible choices - do I need to format the array as :
[
{
"Value": *Choice 1/Dynamic Content*
},
{
"Value": *Choice 2/Dynamic Content*
}
etc up to Choice 13?
Regards,
Criptop
Thank you for those screenshots. I have replicated them in my flow, which formats the choices correctly and passes them to the choices field in the Update item action:
However, the choices are still not recorded correctly in the Sharepoint List:
Can you please advise what I should do?
Hi @v-xiaochen-msft ,
Thank you for your prompt reply. Sorry, but I don't think I understand what you are saying.
When I click on that button, it shows this:
It looks like the same format as the Output from the Select action.
Please see below screenshot from the Update item action in a flow test. Is the extra "[" the problem?
Should I change this:
To this?:
Regards,
Criptop
Hi @v-xiaochen-msft ,
You, sir, are a legend. Everything is now working as expected. Thank you so much for your help!
User | Count |
---|---|
101 | |
36 | |
29 | |
25 | |
16 |
User | Count |
---|---|
133 | |
54 | |
53 | |
37 | |
26 |