Hi all,
I would like to change the owner of a new phone call activity once the
save button has been pressed. Ideally, I would like this to be one of
the support Q's I have created as e-mails willl be sent from the owner
back to the caller and we do not want them coming from our
receptionist. I have written the folliwng code and put it in the OnSave
section for the phone call entity but it is incomplete as I am not sure
what to assign to the ownerid to change it to a Q? The owner type is
owner as per the documentation? Is this a strin, int etc.?
Can someone please assist?
Cheers,
Mark
/*Check if is is a general enquiry*/
if (crmForm.all.item("subject").DataValue = "General Enquiry")
{
/*Change the owner to the general Q*/
crmForm.all.ownerid = 0;
}
else
{
/*Do nothing*/
}