on 09-11-2014 9:58 AM
Hi,
I have a requirement to code the After Modify event of Task Extended BO.
If the Category on the task has some specific value, then the Owner needs to change.
Below is the code I have put in the After Modify event:
var elActivityParty : elementsof Activity.Party;
if(this.GroupCode.content = "Z001")
{
elActivityParty.PartyName = "Sumeet Narang";
this.EmployeeResponsibleParty.Create(elActivityParty);
}
I am getting the error "Please enter a party with role Employee Responsible". However I am not able to change the PartyID as it is a read only field. What else needs to be done in this case?
Hi Sumeet,
Before updating the user, you should also code for the Party Role which needs to get updated with the new Owner in this case which should be "Employee Responsible" as the Code needs to realize as to which Role needs to be updated with the new user.
Try this I hope it helps.
BR
Ankur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.