Modifying publish data on submission to Create

Hi,

I’m trying to use the SubmitterCreate hook that allows us to publish versions via the Create tool and not getting the results I expected - wondering if I’m maybe doing something wrong…

My call to SubmitterCreate.submit_version method correctly loads the interface with the mov I want to submit, what I’m missing is associated published files.

One of the arguments to the hook method is “sg_publishes”. The docs say I can provide a list of dicts for this, but I don’t seem to be able to get it to work. Doesn’t seem to be any errors, I just don’t get a published file attached to my version.

I’m assuming the list of dicts should be something like this: [{‘id’: 22285, ‘type’: ‘PublishedFile’}] ?

Any advice much appreciated!