{ '__metadata':
{ 'type': 'SP.FieldChoice', 'addToDefaultView': 'true' },
'Title': 'NewColumn',
'FieldTypeKind': 6,
'Required': 'false',
'Choices': { 'results': ['A', 'B', 'C' ] }
}
Hi @Feibien
The JSON for addSiteColumn should as below:
{
"verb": "addSiteColumn",
"internalName": "siteColumnUser",
"addToDefaultView": true
}
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for your reply.
I tried to add that code in my flow, but it gaves me this error
I gave out on Flow and solved the problem using on Powershell the command add-pnpfield https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/add-pnpfield?view=sharepoint-ps
Join digitally, March 2โ4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
80 | |
55 | |
55 | |
43 | |
39 |
User | Count |
---|---|
83 | |
81 | |
76 | |
64 | |
42 |