function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Devise SoftwareDevise Software 

How to create New Folder in "Documents" by using REST API in ASP.Net C#?

Hello Everyone,

How to create New Folder in "Documents" by using REST API in ASP.Net C#?

Any help would be appreciated , 

Thanks 
Sumitkumar_ShingaviSumitkumar_Shingavi
You need to create object of type "Document". Exactly similar process as that of how you create standard or custom object records.

For field details: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_document.htm

Thanks,
Sumit
 
KaranrajKaranraj
Devise - To create New Folder in Document you have call the "Folder" object from your ASP.Net application. Folder object Represents a repository for a Document, EmailTemplate, Report, or Dashboard. Only one type of item can be contained in a folder. To know more about that 'folder' object field details check this link - https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_folder.htm

Make HTTP post callout the salesforce API with the below input,once it created Folder in the system then it will send the ID of the folder in the response
Example Input:
{
"Name":"API Folder",
"DeveloperName" : "APIFolder",
"AccessType" : "Public",
"Type" : "Document"
}

Output:
{
  "id" : "00l90000000okzdAAA",
  "success" : true,
  "errors" : [ ]
}

Thanks,
Karanraj




 
Nav_GupNav_Gup
Hello Karanraj, 

Please share HOST URL for creating the API and pass body which you gave