Update single column in a table (Update single field in cdt)

Certified Lead Developer
Hi,
In Appian normally we will update a record by passing complete record with updated data.
I have a requirement to update single column in a table(updating single field in a record) instead of updating complete record.
like, update <table> <field>=<value> where <key>=<value>.

OriginalPostID-243101

  Discussion posts and replies are publicly visible

Parents
  • As @rodgraham mentioned above, what is called a "summary CDT" works well here. You make a CDT that, in the JPA annotations, maps to the correct table in the DB. It will have two fields:

    the PK for that table
    field you want to update

    When you use a write to DB node in conjunction with this CDT, it will find the row in the table that corresponds to the PK of your CDT, and update the columns in the table that match up to the other fields in the CDT. You can use this to write one, or really as many fields as you want, which can be useful for various processes and events.
Reply
  • As @rodgraham mentioned above, what is called a "summary CDT" works well here. You make a CDT that, in the JPA annotations, maps to the correct table in the DB. It will have two fields:

    the PK for that table
    field you want to update

    When you use a write to DB node in conjunction with this CDT, it will find the row in the table that corresponds to the PK of your CDT, and update the columns in the table that match up to the other fields in the CDT. You can use this to write one, or really as many fields as you want, which can be useful for various processes and events.
Children
No Data