How To Create A Visitor Group Via Code

Vote:
 

Hi,

I was wondering what API I need to use to be able to create a visitor group in code.  When the site loads if a visitor group that doesn't have every user in the system exist I want to create it in code.

I don't want to create a custom criteria. 

Thanks,

Jon

#140297
Oct 15, 2015 11:14
Vote:
 

I think the IVisitorGroupRepository implementation is what you need:

http://world.episerver.com/documentation/class-library/?documentId=episerverframework/7/c97ce72f-9b2c-6ac9-7815-d007d582c3bb

#140299
Oct 15, 2015 11:43
Vote:
 

Cheers mate, I was looking in VisitorGroupHelper :P

#140300
Oct 15, 2015 12:03
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.