Several fields for primary key

Certified Senior Developer

Hello everyone, 

I have a table with several fields 'year_field' and 'month_field' forming the table's primmary key. It's mandatory that the fields remain as primary key. When I do that, Appian doesn't allow you create record or cdt associated with the data store.

I have come up with a solution, but it might not be the optimal one. I will show it to you just in case either you have something to add or different way to make it better.

The idea is to create a procedure to write, update and delete data in the table. Instead of using 'Write Record' node, the procedure would be triggered based on the operation you want to perform.

For reading purposes, I have thought to create a 'Materialize View' where the view includes the primary key.

That is my solution. If you have a smarter way to do this, please let me know.

King regards and thanks

  Discussion posts and replies are publicly visible

Parents Reply Children