Umbraco Forms UpdateRecord not updating in back end
Hi Guys/Gals,
Hopefully a simple one, I am updating a Record Field in a workflow called on approval using:
var recordStorage = new RecordStorage();
recordStorage.UpdateRecord(record, e.Form);
This appears to be working fine, no errors etc.
But when I go in to the Umbraco Forms section of the back end and check my records, the values are not shown as changed. If I restart IIS Express (I'm still on my dev pc), the changed values show up, so clearly a caching thing.
How do I force these changes to show, do I need to update something else too?
In the UFRecords database table it looks like there is a "RecordData" field and I'm guessing the Umbraco backend uses this for the UI. So after updating the record field value I also updated the RecordData:
public static void UpdateRecord(Record record)
{
var form = record.GetForm();
using (var recordStorage = new RecordStorage())
{
recordStorage.DeleteRecord(record, form);
recordStorage.InsertRecord(record, form);
}
}
Umbraco Forms UpdateRecord not updating in back end
Hi Guys/Gals,
Hopefully a simple one, I am updating a Record Field in a workflow called on approval using:
This appears to be working fine, no errors etc. But when I go in to the Umbraco Forms section of the back end and check my records, the values are not shown as changed. If I restart IIS Express (I'm still on my dev pc), the changed values show up, so clearly a caching thing.
How do I force these changes to show, do I need to update something else too?
I tried:
But that throws an error, see here: https://our.umbraco.org/forum/umbraco-pro/contour/64073-Manipulating-values-on-submit#comment-216403
So appears that the XML table no longer exists and this method is a hangover?
Any thoughts here?
Thanks in advance..
Mark
In the UFRecords database table it looks like there is a "RecordData" field and I'm guessing the Umbraco backend uses this for the UI. So after updating the record field value I also updated the RecordData:
It does look like the UpdateRecordXml method is no longer valid.
try delete and insert, seems to do the job.
is working on a reply...