/** * Post Case Notes * * @param string $app_uid {@min 1}{@max 32} * @param string $noteContent {@min 1}{@max 500} * @param int $sendMail {@choice 1,0} * * @copyright Colosa - Bolivia * * @url POST /case/:app_uid/note */ public function doPostCaseNote($app_uid, $noteContent, $sendMail = 0) { try { $usr_uid = $this->getUserId(); $cases = new \ProcessMaker\BusinessModel\Cases(); $sendMail = ($sendMail == 0) ? false : true; $cases->saveCaseNote($app_uid, $usr_uid, $noteContent, $sendMail); $result = array("status" => 'ok'); } catch (\Exception $e) { throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage())); } return $result; }
/** * Put Case Variables * * @param string $app_uid {@min 1}{@max 32} * @param string $note_content {@min 1}{@max 500} * @param int $send_mail {@choice 1,0} * * @author Brayan Pereyra (Cochalo) <*****@*****.**> * @copyright Colosa - Bolivia * * @url POST /:app_uid/note */ public function doPostCaseNote($app_uid, $note_content, $send_mail = 0) { try { $usr_uid = $this->getUserId(); $cases = new \ProcessMaker\BusinessModel\Cases(); $send_mail = $send_mail == 0 ? false : true; $cases->saveCaseNote($app_uid, $usr_uid, $note_content, $send_mail); } catch (\Exception $e) { throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); } }