I am currently migrating to a managed package and I wish I could copy unmanaged [protected -- in case it matters] custom settings values to the managed ones in my post install script.
However, I'm getting the following exception when trying to query the unmanaged CS:
Custom Setting cannot be referenced outside code from the same namespace.
Does it mean I won't be able to copy them automatically? What is the best way to copy them then? I think I'm going to have to serialize them via unmanaged code but maybe there's a better way to do it.
This post says that 'without sharing' would grant my post install script with access to all data but it doesn't seem to be working for my unmanaged custom settings.
Thanks
ns__Setting__c
andSetting__c