2

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.

  • What is the scope of the feature? – Unnie Oct 20 '14 at 7:43
  • Hello, the scope is for the Site Collection. – Water Oct 21 '14 at 13:36
  • 2
    You can put the specific term store name in the Site property bag and in the feature receiver fetch it from there – Unnie Oct 21 '14 at 13:37
  • Wow, that looks interesting! I'll give it a go and get back to you :D Thanks! – Water Oct 21 '14 at 13:51
  • Hey, it worked great! Thanks very much! How can I mark you as anwer? – Water Oct 23 '14 at 7:26
3

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.