Appian documentation at - https://docs.appian.com/suite/help/22.4/records-data-sync.html#smart-services-that-automatically-sync-data mentions following
Data sync will automatically sync any data changed by select smart services.
I have the following database record type with the sync enabled.
I am writing new record to DB using write to DSE smart-service.
The record gets created into DB table, however the record list does not get refreshed. I have to do full-sync manually to retrieve the newly added record.
Am I missing something?
Discussion posts and replies are publicly visible
Quick ques,"If you use this smart service to add or update data in a database table, and that table is the source of a record type with data sync enabled, those changes will be automatically synced in Appian" - did you verify this? is this table you are updating is the source of that record?
Use the "Write Records" smart service to persist your data. The "WDSE" node bypasses the record and sync.
Yes the table is same.
Thanks Stefan, that's the ideal way to do it. However I was wondering why record does not sync with WDSE.
The Appian documentation clearly mentioned that - "Data sync will automatically sync any data changed by select smart services" and WDSE is one of those.
OK. I had in mind that the WDSE node does not trigger sync and I seem to have ignored you mentioning this in your initial post.
The documentation also mentions the following
"Additionally, your CDT should not contain any fields that accept an array of values. If you write data to a field that accepts an array of values, those changes cannot be synced."
Maybe this is the issue.
The CDT does not have any array. I have deleted the record and all the objects created automatically and then have recreated it. It worked this time.
Hello and My requirement is also kind of similar.I am adding or updating relationship record but main record didn't sync up.I tried with main record too didn't workout.How do i sync record when i adding or updaing relationship record.Note: I have used writeRecord function on interface.
What is the purpose of syncing a record which you did not change? What do you miss on the main record? Is that just an UI update issue?
Yeahh on UI it's not sync up after evaluation.It takes time or multiple refresh.
OK. This is NOT a record sync issue. You need to refresh the local variables in your UI. The best way to do that depends very much on your implementation.