Forum Discussion
christopher_gillis
8 years agoCommunity Manager
Hello,
You can accomplish this by changing this code to run from an OnAfterNew client event instead. In an OnBeforeNew, the new item has not yet been created, so you cannot set the value of any properties. Additionally, you can simplify the code that runs in the OnAfterNew event to be:
Christopher Gillis Aras Labs Software Engineer
this.setProperty("team_id", sTeamId); // Assumes that you assign sTeamId previously in the method
return this;
Chris
Christopher Gillis Aras Labs Software Engineer