Content connection and languages
Because of the daily work (most MCMS programming) little time remains left for investigation. So I am still working to find out what is the best way to connect CMS and Commerce through MSIB.
OK, my goal is: get rid of the Commerce Catalog Manager and do all the product management from within CMS.
What I have done so far: I got into the CMS approve event and created a Commerce product using the Catalog Web Service. I did not call the Catalog Web Service directly, but used the Microsoft.CatalogServer.Bridge.dll as suggested by Vinayak Tadas (see blog April 19th). I made a CMS template file with placeholders for the product properties, and ProductPropertyDataSetPlaceholders to connect Commerce product properties to CMS placeholders. Finally, in the approve event of CMS, after I created the product, I made a new ProductPosting and called the MakeRich method like this:
ProductPosting productPosting = new ProductPosting(<ProductCode>, ProductDefinition>, <CatalogName>, postingBeingApproved);
productPosting.MakeRich(postingBeingApproved);
This in order to make my recently made product rich, i.e. store the CMS guid in the RichPostingId field of the product in Commerce. Unfortunately, instead of what I expected, the program returns the error message "the language you specified is not associated with the current catalog.". I have created the catalog for the culture "nl-NL" and have deleted the standard "en-US" culture. Does MSIB have trouble with cultures other than "en -US". Why is it not clear that the catalog is "nl-NL"? The catalog I have has only one culture. Now I wonder how MSIB wants you to implement multiple cultures. Should there be a product posting for each culture? Or should all the cultures be integrated in one posting. Logically speaking, only the first option makes sense. I hope to come back soon and inform you further on my investigations.
