Вопрос

I have a Feature Receiver where I access the Term Store to get / set something.

My problem is, the code needs to connect to 'specific' term store.. but what if the Term store name changes when I deploy to different environments?

Is there a way where before activation of the feature I can "request" for a parameter (ex. Term Store name) to which I can use in the Feature Receiver?

Thank you!

Edit: I am using SharePoint 2010.

Это было полезно?

Решение

You can put the specific term store name in the Site property bag and in the feature receiver fetch it from there.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top