11-03-05 12:49 PM
Hi,
To rebuild a specific virtual catalog, you can use the following code:
Set oCatMan = CreateObject("Commerce.CatalogManager")
VirtualCatalogName = "Catalogname"
call oCatMan.Initialize("sitename", false)
Set oProdCatalog = oCatMan.GetCatalog(VirtualCatalogName)
oProdCatalog.RebuildVirtualCatalog true, true
OR
To rebuild all the virtual catalogs:
Set oCatMan = CreateObject("Commerce.CatalogManager")
call oCatMan.Initialize("sitename", false)
oCatMan.RebuildAllVirtualCatalogs true, true
Hope the sample above will help. Please let me know if you have further
question.
Best regards,
WenJun Zhang
Microsoft Online Partner Support
This posting is provided "AS IS" with no warranties, and confers no rights.
[ Post a follow-up to this message ]
|