Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hopefully a simple one, I am updating a Record Field in a workflow called on approval using:
var recordStorage = new RecordStorage();
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?
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..
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:
record.RecordData = record.GenerateRecordDataAsJson();
It does look like the UpdateRecordXml method is no longer valid.
try delete and insert, seems to do the job.
public static void UpdateRecord(Record record)
var form = record.GetForm();
using (var recordStorage = new RecordStorage())
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted