Skip to main content
Solved

Set null value using xml update

  • December 20, 2022
  • 1 reply
  • 152 views

Forum|alt.badge.img+9

Hi Experts,

Is it possible to set a null value with an xml update?

ex: 
update task set person_id=null where task_id=123

how to do this with an xml?
I tried the following but didn’t work

<update_task>
  <task>
    <task_id>123</task_id>
    <person_id></person_id>
    <update />
  </task>
</update_task>

Best answer by anmise

I have a vague memory that you need to use = to set null. 
 

<update_task>
<task>
<task_id>123</task_id>
<person_id>=</person_id>
<update />
</task>
</update_task>

 

1 reply

  • Superhero (Employee)
  • Answer
  • December 21, 2022

I have a vague memory that you need to use = to set null. 
 

<update_task>
<task>
<task_id>123</task_id>
<person_id>=</person_id>
<update />
</task>
</update_task>