Using SDL Tridion 2011 Core Service to create Components programatically
Posted
by
user1428019
on Stack Overflow
See other posts from Stack Overflow
or by user1428019
Published on 2012-05-31T09:52:42Z
Indexed on
2012/05/31
10:41 UTC
Read the original article
Hit count: 407
I have seen some of the questions/answers related to this topic here, however still I am not getting the suggestion which I want. So I am posting my question again here, and I would be thankful for your valuable time and answers.
I would like to create “Component, Page, SG, Publication, Folders “ via programmatically in SDL Tridion Content Manager, and later on, I would like to add programmatically created components in Page and attach CT,PT for that page, and finally would like to publish the page programmatically.
I have done these all the activities in SDL Tridion 2009 using TOM API (Interop DLL's), and I tried these activities in SDL Tridion 2011 using TOM.Net API. It was not working and later on I came to know that, TOM.Net API will not support these kinds of works and it is specifically only for Templates and Event System. And finally I came to know I have to go for Core services to do these kinds of stuffs.
My Questions:
- When I create console application to create component programmatically using core service, what are the DLL’s I have to add as reference?
- Earlier, I have created the exe and ran in the TCM server, the exe created all the stuffs, can I used the same approach using core services too? Will it work?
- Is BC still available or Core Service replaced BC? (BC-Business Connector)
- Can anyone send some code snippet to create Component/Page (complete class file will be helpful to understand better)
Thanks Jai
© Stack Overflow or respective owner