Signature
global static void addToDataroom( List<Types.AddDataroomChildrenInput> childrenInputs, String runAs )
Parameters
| Parameter | Description | |
|---|---|---|
childrenInputs |
required | List of Types.AddDataroomChildrenInput entries describing the children to add to the dataroom. |
runAsString |
required | Email Id of the user on whose behalf the function should run. To run the action as the automation user, supply integrationUser. |
Return Type
void
Example
List<cldfs.Types.DataroomChild> children = new List<cldfs.Types.DataroomChild> { new cldfs.Types.DataroomChild('67a09ad4e249057a78212c17', 'file', 'sharepoint', 'b!nJBtPq_z5UeJtFrj_f24XEQqlPUD8vtFsg7GBcrXJepiUn9bkb_7QbDPtqHVD-cP') }; List<cldfs.Types.AddDataroomChildrenInput>childrenInputs = new List<cldfs.Types.AddDataroomChildrenInput> { new cldfs.Types.AddDataroomChildrenInput('67a09ad4e249057a78212c16', children) }; cldfs.Client.addToDataroom(childrenInputs, 'integrationUser');
TestingUse
ClientFactory with default mock values to get coverage without callouts. See How to get test coverage of code that uses Client methods.