You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: