Register a project
•
Version: 9
Some tooltip text!
• Less than 1 minute to read
• Less than 1 minute to read
NSProjectAgent agent;
NSProjectEntity newProject = agent.CreateDefaultProjectEntity();
newProject.SetName("Back to school campaign");
NSListAgent listAgent;
newProject.SetProjectType(listAgent.GetProjectType(1));
NSAssociateAgent associateAgent;
newProject.SetAssociate(associateAgent.GetAssociate(5));
DateTime dt;
dt.addMonth(2);
newProject.SetEndDate(dt);
newProject = agent.SaveProjectEntity(newProject);
print(newProject.GetProjectId().toString());