Loading

Microsoft OneDrive Connector | How to set "Item properties" parameter when using the Create Drive Item operation

게시 일자: Mar 2, 2024
단계

QUESTION

What is the significance of the "Item properties" Parameter in the "Create Drive Item" operation of Microsoft OneDrive Connector and How to pass the value?
https://docs.mulesoft.com/microsoft-onedrive-connector/1.1/microsoft-onedrive-connector-reference#parameters-6

User-added image

ANSWER

Item properties parameter in the Create Drive Item operation is for a folder or file metadata settings described here:
  • for folders: https://learn.microsoft.com/en-us/graph/api/resources/folder?view=graph-rest-1.0
  • for files: https://learn.microsoft.com/en-us/graph/api/resources/file?view=graph-rest-1.0

ADDITIONAL INFORMATION

So in the Anypoint studio the "Item properties" are of a map type, so they can be filled for example (in the case of folder type) with:
output application/json
---
{
"childCount": 1024,
"view": { "@odata.type": "microsoft.graph.folderView" }
}
And the request to Microsoft OneDrive Graph API will be formed as below by the connector:
For example:
{
"name":"New Folder",
"folder": {
"childCount": 1024,
"view":{"@odata.type":"microsoft.graph.folderView"}
},
"@microsoft.graph.conflictBehavior":"rename"
}
Knowledge 기사 번호

001116105

 
로드 중
Salesforce Help | Article