Have a bundle that goes through workflow and needs to be published to two different targets (staging & live) at different times of the workflow. Both targets have a minimum approval status which gets set in the activity step prior to publishing.
The bundle gets queued for publishing when the target is staging but I never see the bundle in the publishing queue when the target is live. I can iterate through the bundle and add some individual items (but doesn't seem like all) and those queue.
What could be the issue/difference between publishing to the two different targets?
Also two different activity steps calling the same C# class to do the publishing
foreach (WorkItemData wid in activityInstance.WorkItems)
{
int value = Convert.ToInt32(Enum.Parse(typeof(ItemType), "VirtualFolder"));
if (wid.Subject.IdRef.EndsWith(value.ToString()))
{
itemsToPublishList.Add(wid.Subject.IdRef);
}
}
PublishTransactionData[] publishTransactions = CoreServiceClient.Publish(itemsToPublishList.ToArray<String>(), publishInstruction, targets, PublishPriority.Normal, null);
The variable targets get set with a string[] of either the tcm:1-1-65538 (staging) or tcm:1-2-65538 (live)