-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I'm trying to obtain the WBS numbers but not getting any information. The response is currently returning null. I'm using the sample project file from this repo. What are the proper steps for get WBS information?
Thank you
import { TasksApi } from "@asposecloud/aspose-tasks-cloud";
import { UploadFileRequest, GetTaskLinksRequest, GetOutlineCodesRequest, GetWbsDefinitionRequest } from "@asposecloud/aspose-tasks-cloud";
import fs from 'fs';
// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
const tasksApi = new TasksApi("", "");
const fileName = "SummaryTaskWithSubtasks.mpp";
const localPath = "./" + fileName;
const remotePath = "/data";
const remoteFullPath = remotePath + "/" + fileName;
const uploadedFiles = new Set();
const request = new UploadFileRequest();
request.path = remoteFullPath;
request.file = fs.readFileSync(localPath);
uploadedFiles.add(remoteFullPath);
await tasksApi.uploadFile(request);
const getWbsDefinitionRequest = new GetWbsDefinitionRequest();
getWbsDefinitionRequest.name = fileName;
getWbsDefinitionRequest.folder = remotePath;
const result = await tasksApi.getWbsDefinition(getWbsDefinitionRequest);
Metadata
Metadata
Assignees
Labels
No labels