[Arsperl-users] ars_SetEntry usage when updating remedy incident
Brought to you by:
jeffmurphy
|
From: Ravi <ra...@co...> - 2008-04-26 12:31:06
|
Hi: I trying to build a remedy incident update script which can be used to update different fields under different circumstances. In other words, what needs to be updated is provided as an argument to the script. So what I include as part of of the ars_SetEntry for update needs to be built dynamically within the script based on argument to the script. But I am running into issues. If I run the following statement, it updates the remedy incident fine ars_SetEntry($ctrl, $schema, $record, 0, 536871244, 3) || die "ars_SetEntry(User): $ars_errstr"; But if I set a variable $updRemString and run the ars_SetEntry, it gives me an error as shown below $updRemString = "536871244, 3" ars_SetEntry($ctrl, $schema, $record, 0, $updRemString) || die "ars_SetEntry(User): $ars_errstr"; Error: ars_SetEntry(User): [ERROR] Invalid number of arguments (ARERR #80000) at ./IncidentUpdProcess.sql line 75. Any suggestions. Thanks Ravi |