Zum Hauptinhalt gehen

Is there a way to get a ProjectEnvironment from BaseContext

Kommentare

3 Kommentare

  • Zendesk API User
    Author: kai1 - 6/17/2021 14:49

    Might be solved. I don't get a ProjectEnvironment object - but the name and id of the project via:

    ProjectAgent projectAgent = baseContext.requireSpecialist(ProjectAgent.TYPE);
    String projectAgentName = projectAgent.getName();
    long id = projectAgent.getId();

    That can give me a Project object which might suffice.

    0
  • Zendesk API User
    Author: StefanSchulz - 6/18/2021 9:06

    Hey Kai,

    What exactly are you up to? Without an application scenario it is a bit difficult to give advice. And your goal most probably will not be to get hold of a project object, or is it?

    Best regards

    Stefan

    0
  • Zendesk API User
    Author: kai1 - 6/18/2021 9:14

    I also need the project configuration, which can be obtained via ModuleAdminAgent (as I found out just now ^^).
    So it seems, there is no way to get a ProjectEnvironment object - but problem is solved for me, because the FileSystem object and Project object suffice for me.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.