I have an engagement plan and there are number of contacts in each state.

How can I programmatically obtain list of contacts which are in specific engagement plan state by state ID?

1 Answer 1


Have just found a method:

var pageableContactIds = AutomationManager.Provider.GetEnrolledContactsIdsByStatePaged(engagementPlanStateId);

This will return an object of type Sitecore.Common.IPageable<ID> which provides a method .GetAll()

Seems to work for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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