Hi guys,
I am trying to use sg.create() instead of sgtk.util.register_publish().
I have a small problem with a path. I am not sure how to add it to the dictionary for sg.create().
First off, I’m noticing that you’re missing the entity type in your create() call. The entity type is the first argument to the method.
Given that you’re trying to set the path value and that you mentioned register_publish(), I’ll go ahead and assume that you want to create a PublishedFile record. To do this, you’d need a call that looks like this: