Documentation and Examples on Server-Side Scripting

Thanks Ben. My question is located here. I don’t know if I worded that well enough not to confuse but hopefully you will understand what I am trying to achieve. LINK HERE

But to simplify it a little say I have script the following event script wp_postmeta.get.post_process

if (event.response.record) {
    _.each(event.response.record, function (record, index, list) {
        if (record.meta_key == "_end_ts"){
            record.endseconds = record.meta_value;
        }
        if (record.meta_key == "_start_ts"){
            record.startseconds = record.meta_value;
        }
});
}

This table (wp_postmeta) is a child of the wp_posts table. So when I call a GET on wp_postmeta I get the modified data but when I call a GET on wp_posts and I include it’s relationships the wp_postmeta data (or wp_postmeta_by_id) is not modified. How can I have the above script do it’s work on the postmeta data whilst calling a GET on wp_posts?

Any clue you could give or direction you could point me would be hugely appreciated.

For example if I do a platform.api.get on the wp_postmeta table within another script how can I go about iterating over this data as we do in an event script with the _each function?

Thanks heaps.