Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Not getting any information related to WBS #14

Open
sebworks2024 opened this issue Feb 8, 2025 · 0 comments
Open

Not getting any information related to WBS #14

sebworks2024 opened this issue Feb 8, 2025 · 0 comments

Comments

@sebworks2024
Copy link

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);

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant