Is there a way to Update a SQL field as a NULL value?
I am using an update record activity to update a record in SQL. I need to set a number field that was previously set to a number value, to NULL. Is there a way to do that? I've entered NULL, 'NULL', and "NULL", none work.

-
Hi Gwen,
To update record with NULL value you can use "UpdateProcessData" activity. In "UpdateProcessData" activity > Process Data variable , type the word "NullValue" and in Expression, type "System.DBNull.Value". In your "Update Record" activity assign the variable ${NullValue} for the column you wanted to update NULL value.
Please refer below screenshots for more info.


Thanks.
-
Is this still the way to update a record with a null value? My attempt to use this throws an exception:
AgilePointServerException: There was an error generating the XML document.
The type System.DBNull was not expected. Use the XMlInclude or SoapInclude attribute to specify types that are not known statically.
サインインしてコメントを残してください。
コメント
3件のコメント