Create a new row while uploading an attachment

  • 1
  • Question
  • Updated 3 years ago
I'm looking for a way to create a new row on a deferent model once a new file is attached against to another model.

Please see the below diagram,


I want to create an Object B record when a file is attached against Object A. I have three skuid models, Model A, Model B and Attachment model.
I've tried to create a new record with using skuid action framework, however it behaves deferently for attachments and could't find a way to create a new record.

Can someone explain how could I go about this? What is the best approcach? with using Action framework or custom javascript.

Thanks in advance.
Photo of Hasantha Liyanage

Hasantha Liyanage

  • 1,446 Points 1k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 18,126 Points 10k badge 2x thumb
When using the uploader set to chatter, the model automatically requeries after upload. I'm not sure if the same is true of attachment uploads. If it is, you can put a model action on the model to trigger upon require to create a new record in your other model.