How can one make bulk operations on relations?

is anyone able to solve how to save foreign key in bulk operation ?