insert/upsert data to skuid image attachment field

Looks like the structure is even more complicated than I thought…


The image is actually in the salesforce Attachment object, with a parent of the skuid__Image__c object.

So, I need to:

  1. Insert create a skuid__Image__c  record for each image
  2. Insert an Attachment to actually upload the image,
  3. Somehow update the lookup field in my custom object that points to the skuid__Image__c File record?

We can’t see what’s happening behind the scenes in skuid’s triggers, so I want to be sure that some kind of process like this is going to work before I start just trying things.

Can anyone at Skuid confirm?
Are there best practices for migrating files for use with the skuid file upload component in ‘attach to a field’ mode?