Questions tagged [core-service]

The SDL Tridion Core Service (added in Tridion 2011) is a WCF-based webservice that can be used to interact with all Content Manager objects. It is the preferred (and recommended) API for 3rd party tools that integrate any functionality with the Content Manager.

Filter by
Sorted by
Tagged with
20
votes
2answers
426 views

Accessing configuration from events system when triggered via the core service

Having a bit of trouble with the events system when triggering an event via core service. We have components saved to a publication that we need to copy across to another publication in the same ...
17
votes
1answer
736 views

How do I get a list of checked out items with the Core Service?

I would like to get a list of all checked-out items in the system with the Core Service. I have a feeling I need to use: GetSystemWideList(filter) But, I can't find a filter to give me the list. ...
14
votes
4answers
594 views

Using Core service to copy items to different publications

Is it possible to use the core service to copy items from one publication to another? I have a scenario where I need to copy SGs and pages to a new publication, and whilst doing this loop through ...
14
votes
3answers
160 views

Why won't saveApplicationData accept dynamic TCM URIs?

I'm using the core service to create a new component, and then save some application data against it. When I create the component programatically - this returns me the dynamic TCM URI of the ...
14
votes
1answer
623 views

Get a list of all schemas for a publication, including inherited ones via core service

I wish to retrieve a list of all schemas for a given publication - including inherited ones. Originally I was using the getSearchResults core service method with a filter constraining to the current ...
13
votes
1answer
784 views

CoreService GetList() behaving differently to GetListXml()

I am trying to use GetList to return all the users in a group, as below: client.GetList(id, new GroupMembersFilterData()) However, I get the exception {"Unexpected list type: Tridion....
13
votes
3answers
1k views

What's the fastest way to get all Components content using Core Service?

I'm using Tridion 2011 SP1 and having issues getting all Components of a specific schema using the CoreService. string schemaUri = "tcm:2-10-8"; // My Schema Uri var filter = new UsingItemsFilterData ...
13
votes
1answer
506 views

Creating a Bundle and adding items to it with Core Service

I am experimenting with creating bundles and adding items to them using the Core Service, and am struggling to find examples of this. I seem to recall someone telling me that bundles are actually ...
12
votes
2answers
507 views

Core Service Keyword Creation

I am creating keywords using the core service with the below code, the problem is I don't want to use a hardcoded TCM ID for the Category, as this may change between environments. Is there any way to ...
12
votes
4answers
681 views

Core Service WebDav Paths

I am creating components and folders with the core service, but when trying to read back the components via WebDav paths i am noticing some characters need to be encoded, while others don't (e.g. "?" ...
12
votes
3answers
171 views

How to set RenderMode property in PowerShell?

The PowerShell code to instantiate an object is something like this: $rm = new-object coreservice.RenderMode the default value of RenderMode is Publish: PS > $rm Publish listing its members ...
12
votes
2answers
206 views

Is it possible to retrieve the history for a component via the Core Service?

I'm investigating certain operations against the Core Service for an upcoming project. I'm wondering whether its possible to retrieve the version history of a component via the Core Service? (As in, ...
11
votes
5answers
390 views

Distinguish exceptions thrown by the Tridion core service

I am trying to distinguish different Exceptions being thrown in the core service. The core service throws only one Type of Exception: CoreServiceFault. Now I want to start reading the ErrorCodes to ...
11
votes
4answers
2k views

Creating Binary Components using the Core Service

I'm trying to create a copy of an existing component using the core service which has worked fine up until I hit a binary component when running my console app. To give you an example of what my code ...
11
votes
4answers
507 views

Using Core Service in Event system 2011

I am trying to consume Core Services through the Event System. The Event System is a Class library as expected. I added the content nodes from Tridion.ContentManager.CoreService.Client.dll.config to ...
11
votes
2answers
259 views

CoreService 'ReadFlags' enum 'none'

I'd like my core service application to be as efficient as possible so i'm checking and double checking when I create a 'ReadOptions' object that I'm using the correct ReadFlags property. I see there ...
11
votes
3answers
1k views

How do I configure or set up the tridion-powershell-modules in PowerShell?

I came across the tridion-powershell-modules project. It offers some handy PowerShell commands which help setting up a CoreService connection and some examples like listing the publication. What do I ...
11
votes
2answers
201 views

How can I tell if event system code has been loaded?

We've written some event handlers to handle editing, building on the example that was started in http://www.tridiondeveloper.com/intro-to-the-event-system The code worked well in development but didn'...
11
votes
1answer
796 views

Retrieve local components using Core Service

I have a console app that is using the Core Service to try and retrieve localized and local components for a given publication Id. I've had a look at the documentation on SDL Live Content and have ...
11
votes
1answer
225 views

Search on field in Content Manager

I'm using the Core Service client in Tridion 2011SP to do a search for components with a certain schema. I managed to filter out all components that have a certain value in a single line value field....
10
votes
5answers
204 views

Referencing data stored in other systems from Tridion 2011?

I have a number of external systems I would like to integrate my Tridion Published website with. I need my editors to be able to tag Components (or maybe Pages) with an ID of an item stored in another ...
10
votes
3answers
1k views

Retrieving a taxonomy hierarchy via the Core Service

I'm trying to retrieve a hierarchy of categories/keywords from the Core Service on Tridion 2013. I want to either retrieve the whole tree in one request, i.e. pass in a Category ID and get its child ...
10
votes
4answers
1k views

How to identify if a Component is published or not in a child Publication using the Core Service

We have a scenario where we will get an Item Id of a particular Component from its parent level. We basically want to know whether that Component is published (in a child Publication), and if it is, ...
10
votes
1answer
466 views

How to Get Keyword from Metadata or Item XML Using Core Service

When working with the Core Service I am loading item XML that has Keywords inside and I need to replace some Keywords with others. Unfortunately the XML lists only the keyword name and not the tcm ...
10
votes
1answer
461 views

Tridion: localization when creating components using coreservice

I have a problem creating components using the coreservice. I create components with code on master level(tcm:76). The given source code of the master component is correct, but when viewing this ...
10
votes
1answer
674 views

Tridion Core Service endpoint

I'm using the Core Service Client to get a list of keywords by a given category. However when viewing the page I get the following error: Could not find default endpoint element that references ...
10
votes
2answers
3k views

Core Service error when using Stream Bindings

I have quite a specific problem which I'm hoping I can explain thoroughly enough for someone to be able to help me with. Basically I've been working on a script that uses the the Core Service (2011) ...
9
votes
4answers
673 views

How can I automate publishing?

I have some familiarity using Core Services. I am wondering if I can use this (or another feature) to batch a publishing routine. I frequently publish 2 pages from 2 different sites and I find it ...
9
votes
2answers
236 views

How do I retrieve publish failure data with the core service?

The 2013 SP1 Publishing Queue shows some great information for failures, including at which stage the publish failed and, for render failures, what the error was. I have been looking through the ...
9
votes
2answers
379 views

Search in multiple folders via core service?

The code snippet below successfully returns a list of items that have changed recently. Is there a way to include multiple search folders or do I need to do separate searches for that? ...
9
votes
3answers
584 views

Core Service client in PowerShell

I am trying Andrey's way to create a Core Service client in Powershell and having this issue. I recreate the example on my Windows 7 machine. So far I learned I have run PowerShell ISE as root and ...
9
votes
2answers
280 views

Delete components which are in use

I want to remove a publication with over 5000 components. First I unpublished all pages. Then I ran a decommission script. When finished, I deleted all pages. Now are only the components left. I ...
9
votes
1answer
1k views

Core Service to publish pages in a structure group in SDL Tridion 2011 Sp1

I am writing a core service to publish the entire pages in a structure group. I have written a recursive method to get all pages in a structure group. I am loading all pages in a list and publishing ...
9
votes
1answer
292 views

List of processed items in Publish Transaction

In the UI, you can get a list of processed items linked to a given publish transaction. For instance if you publish a Structure Group, the publishing queue will show the SG. Double click on it and in ...
9
votes
2answers
1k views

Using CoreServiceClient in C#, how do I get the latest published version of an item?

I'm new to Tridion, thanks for your help :-) I can successfully bind to a service endpoint, validate CoreServiceClient.IsExistingObject("tcm:xx-xxx-xx"), and now I would like to retrieve the version (...
9
votes
2answers
437 views

Update and Save Folder using Core service 2011

I am new to Core service. I have a requirement to update metadata schema of a folder( from the drop down) and on successful selection of Metadata schema, I need to update the value for a field(...
9
votes
1answer
417 views

Get Page Filename from Core Service GetListXml

I would like to get the filename with a core service GetListXml call. Currently my returned XML is: <tcm:Item ID="tcm:9-26-64" Title="abc" Type="64" Modified="2013-03-27T21:27:54" IsNew=...
9
votes
2answers
150 views

Can Publish Transaction be updated via core service?

Just for discussion sake, I am interested can any of the properties of publish transaction be updated via core service? client.Update() method does work with PublishTransactionData object, however it ...
9
votes
3answers
506 views

Publishing via Core Service

Using the Tridion 2011 Event System I have some code that modifies a text file whenever a Page is published. If I set a page to publish via the Content Manager the code runs fine. If I set a page to ...
9
votes
2answers
239 views

Is Core Service's ReadSchemaFields supposed to work for metadata schemas too?

I'm attempting to call CoreServiceSession's ReadSchemaFields and pass the result to Frank's wrapper for content & metadata found here. However, when I call ReadSchemaFields with the ID of a ...
9
votes
1answer
307 views

How to Publish from PowerShell?

The following PowerShell code to publish an array of pages fails, because the arguments or parameters are in the wrong format. Example code: $client.publish($toPublish, $publishInstruction, @($...
9
votes
1answer
114 views

Fetch all the items under workflow using core service

I want to fetch all the items which are in workflow using core service (.Net). Browsing through the core service documentation suggested that ProcessDefinitionAssociationsFilterData class would solve ...
9
votes
1answer
215 views

Creating nested Structure Groups using Tridion Core Service

I'm using the Tridion Core Service to create Structure Groups and copy them to a specific Publication. I have this working but cannot nest the structure groups properly whilst creating them. I had the ...
9
votes
1answer
569 views

How can i check the publication target for a given component?

I am retrieving components in a specified folder using Core Services to build an API to expose some content. We have a preview and live environment and I need to retrieve components that have been ...
9
votes
1answer
288 views

Set Permissions on Categories using the Core Service

I would like to set access rights to allow the 'Everyone' group read access on categories using the Core Service. I don't know what values to use in the setValue method, but I guess one value is the ...
8
votes
3answers
681 views

Java client, CoreService, without SSO?

Question about Core service "java client", in order to be able to connect with a java application to Tridion, a certain webservice "CoreService" should be made available on the server side, is that ...
8
votes
2answers
855 views

How to retrieve component by name using the Core Service?

I'm using Tridion 2013 and creating components within a folder in Tridion. Its possible these components may have the same name, which obviously Tridion does not allow. I'm using the following code ...
8
votes
1answer
206 views

Quickest way to confirm an item exists with the Core Service

I want to confirm if an item exists in Tridion with the Core Service. I'm building a URI myself, using a parent Page item ID and the local Publication ID, and want to try to get it. I see 2 methods ...
8
votes
2answers
120 views

Core Service Xml Element Order

I am copying data from "legacy" components over to "new" components. For the meta data it should be a simple xml copy (replacing the namespace) i.e. newComponent.Metadata = oldComponent.MetaData....
8
votes
1answer
117 views

How to Remove a Metadata Schema from a Folder using Core Services?

I want to remove the Metadata Schema from a folder using the core service API. I have tried setting the MetaDataSchema and MetaData properties of the folder to null but this doesn't change anything. ...