
Announcements
I have a library with a custom column, in folder creation, how would I go about inserting a value to this column?
I tried using GET FOLDER METADATA but I don't see the Category column from the results and or from the list of columns to UPDATE FILE PROPERTIES.
I also tried SEND HTTP REQUEST to get the LIST ITEM ALL FIELDS
_api/web/GetFolderByServerRelativeUrl('@{triggerBody()['text']}/@{items('Apply_to_each')?['Acronym']}')/ListItemAllFields
which returned the column:
"Category": null,
So I switched it to POST with the following body
{
"Category":"Title"
}
I got an error message
Invalid request.
clientRequestId: dddddd-b0a3-4a03-9ac8-de4e50000000
serviceRequestId: ddddd59f-90f4-c000-051a-93172300000
Hello @Tamras ,
if you know the folder ID (which you should know after you create it), you can update the metadata with the HTTP request below.
Method: POST
Uri: _api/web/lists/GetByTitle('<libraryName>')/items(<folderID>)/validateUpdateListItem
Body:
{
"formValues":[
{
"FieldName": "...",
"FieldValue": "..."
}
]
}