Hello,
Yes, you can update the
Insert query and set the siteid manually, so instead of:
INSERT INTO customtable_displayname ([ItemCreatedBy], [ItemCreatedWhen], [ItemModifiedBy], [ItemModifiedWhen], [ItemOrder], [ItemGUID], [displayname], [siteid] ) VALUES ( @ItemCreatedBy, @ItemCreatedWhen, @ItemModifiedBy, @ItemModifiedWhen, @ItemOrder, @ItemGUID, @displayname, @siteid); SELECT SCOPE_IDENTITY() AS [ItemID]
you will have:
INSERT INTO customtable_displayname ([ItemCreatedBy], [ItemCreatedWhen], [ItemModifiedBy], [ItemModifiedWhen], [ItemOrder], [ItemGUID], [displayname], [siteid] ) VALUES ( @ItemCreatedBy, @ItemCreatedWhen, @ItemModifiedBy, @ItemModifiedWhen, @ItemOrder, @ItemGUID, @displayname, 1); SELECT SCOPE_IDENTITY() AS [ItemID]
Best regards,
Jan Hermann