Unfortunately we have features build on Squidex internal meta data timestamps. But as we have to recreate the data via sync-out and sync-in the timestamps would change. So we want to get the timestamps in our operational data with scripting.
In scripting, I would like to access createdAt
and lastModified
to move it to our operational data like this:
ctx.data.lastModified = {
iv: ctx.lastModified
};
replace();
I’m not a C# developer, but since we’re under some time pressure, I could probably submit a pull request next week if it speeds things up.
I took a quick look at the code, and it should be located somewhere under squidex/backend/src/Squidex.Domain.Apps.Core.Operations/Scripting/ContentScriptVars.cs at master · Squidex/squidex · GitHub, right?