RetailChannelTable channelTable;
MCRChannelUser channelUser;
while select channelTable
where channelTable.ChannelType == RetailChannelType::MCRCallCenter
{
channelUser.clear();
changecompany(channelTable.DefaultCustDataAreaId)
{
channelUser = MCRChannelUser::find();
if(!channelUser)
{
channelUser.clear();
channelUser.initValue();
channelUser.Channel = channelTable.RecId;
channelUser.User = curUserId();
channelUser.insert();
}
}
}
No comments:
Post a Comment