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
8
votes
4answers
489 views

To ensure they publish simultaneously, is it possible to publish pages and components in one transaction using core services?

We have an ‘article’ schema and for each component created using this schema there are two dynamic component presentations used by various queries on our websites and we also generate a static ‘...
-3
votes
1answer
134 views

How i increase my code performance when using core service?

I am creating a publication,schema,component, folder,structure group,pages,template,tenplate building block using core services. there is a lot of component it may be 200 or more and many folder and ...
2
votes
3answers
394 views

How can I put the HTML into the component RTF field using core service?

I am putting HTML into the component field using the core service. I write the following code: ComponentData componentData=(ComponentData)client.getDefaultDataItemType.COMPONENT,folderId, new ...
5
votes
1answer
106 views

FakePublish? Suggestions for workaround: SetPublishedTo with CoreService

In addition to this old question: SetPublishedTo with CoreService I have another question for the new Tridion 2011 EventSystem I'm updating our EventSystem from the old TOM API to CoreServices... ...
4
votes
2answers
132 views

core-service via PowerShell load of all users not returning all user data

I am curious if this is my issue, a defect, or something else. I am using PowerShell to connect to CME via core-service and load all users (excluding the "predefined" users). I get the user objects, ...
0
votes
3answers
86 views

Unable to add the keywords on the component in the classify window?

I have keywords in a category when I select the component and click on the classify a classify window open and it showing me a category and keywords but when I select the keyword there is a insert ...
4
votes
3answers
369 views

How to create a List type field in schema using core service?

I want to create a schema with a list field by using core service so I can select the keyword when I create a component. for this I create a "SingleLineTextFieldDefinitionData" type field but I did ...
2
votes
2answers
81 views

How to make unpublish event fail in event system?

When extending the Tridion event system, using the following code: EventSystem.Subscribe<Component, UnPublishEventArgs>(OnComponentUnPublishForInit, EventPhases.Initiated); private static void ...
2
votes
2answers
1k views

How to update Component Metadata Field using Core Service

I'm trying to update the components metadata field using core service API's.We are having around 5000 components in that few of the components metadata field was updated and remaining does not contain ...
1
vote
2answers
97 views

How to modify PublishInfoData.PublishedAt property via the Core Service

How can I modify a Component's PublishInfoData.PublishedAt property through Core Service? Code in C# PublishInfoData[] pubInfo = _client.GetListPublishInfo(id); PublishInfoData piData = pubInfo[0]; ...
1
vote
1answer
96 views

Difference between CMI publish and core Service publish method?

The same component, if I use Content Manager Explorer to publish it, its "Publish Status" changed. But if I use the Core Service to publish it, its "Publish Status" does not change. ...
1
vote
1answer
101 views

coreApi CoreService2010Client.Publish method and Unpublish method

Using coreApi to publish a component, method execute successfully and the publishing queue in tridion also show that the item published status as success. But the component in tridion which has been ...
4
votes
1answer
173 views

can't parse Component Content XML via XPath

I am using the PowerShell module to fetch a component via core service. My end goal is to update it and save it. however, I am failing to get started on the XML parsing aspect of things. So, this part ...
3
votes
1answer
111 views

Core Service - WebDavUrl null for Component

When I read a component's WebDavUrl via PageData using the Core Service its returning "null"? var page = (PageData)client.Read("tcm:71-122971-64", new ReadOptions()); Console....
3
votes
1answer
198 views

How to create MetaData Schema using Core Services?

I want to create a Metadata Schema using Core service with two fields Keywords and title so that I can attach this Metadata Schema on the page. But I didn't find any class to create a metadata. I ...
2
votes
0answers
510 views

Deserialize error when creating schema using core service

I am creating a Schema using core Service Following is My code I am using java client SchemaData schemas=new SchemaData(); SchemaFieldsData schemaFieldsData=new SchemaFieldsData(); ...
4
votes
1answer
92 views

why does look up HTTPS Publication Destination via webdav url has extra "/"?

I am using the PowerShell Core-Service module (https://code.google.com/p/tridion-powershell-modules/) and I can easily obtain the schema Publication Target Destination by tcm id: $schema1 = Get-...
2
votes
2answers
320 views

How to remove the transaction time out error?

I am getting Transaction time out error many time when I create a publication using core service .some time it create successfully and some time it give me following error "com.sdltridion....
7
votes
2answers
488 views

Can I get the Tridion item XML through the CoreServiceClient?

Is is possible to retrieve Tridion item XML though the core service client in Tridion? In TOM.NET this would be Tridion.ContentManager.IdentifiableObject.ToXml(). I am not looking for the Core ...
2
votes
1answer
496 views

Update Structure Group Metadata with Core Service

I have a new namespace for my Structure Group metadata schema and I want to update all my Structure Groups using this metadata schema to the use the new namespace. I am using Elena's script here. ...
0
votes
2answers
2k views

Unable to use netTCP binding for core service

For one of the custom application, trying to connect to coreservice using netTcp binding (net.tcp://localhost:2660/CoreService/2011/netTcp) which is faster than basichttp binding. However, when I try ...
4
votes
1answer
181 views

Where to get the JARs for sdltridion.contentmanager

(I asked this question on stackoverflow and they pointed me to the existence of tridion.stackexchange.com, so I repost it here.) For our automated tests I want to connect to Tridion from our Java ...
4
votes
1answer
225 views

Find user by name using coreservice

I want to use the CoreService API to get a User object from Tridion. But, instead of using the tcm-id, I want to use the user's domain name, e.g. "ad-ent\xyz" I don't see a webdav url for the User ...
5
votes
3answers
685 views

What is the equivalent of Tridion.ContentManager.TcmUri in the CoreServiceClient DLL?

The TcmUri class is a handy tool, for example to grab the publication id from a component id. string publicationId = new TcmUri(new TcmUri(componentId).PublicationId, ItemType.Publication); How ...
3
votes
1answer
145 views

How do I set up Core Service security?

What is the best way to set up security for the core service? I'm using BasicHttpBinding at the moment and running the client project on my local PC, which does not have the Tridion CM. I got the ...
2
votes
2answers
123 views

Transaction aborted Error when creating publication using core service.How to resolve this error and what the reason of this error?

This is my code String publicationName="WebSite"; PublicationData publicationData=(PublicationData)client.getDefaultData(ItemType.PUBLICATION,"tcm:0",new ReadOptions()); publicationData.setTitle(...
8
votes
2answers
580 views

Trying to create a Component with the Core Service: Data at the root level is invalid

I'm trying to import some content into Tridion using the Core Service and have a problem with one of my Rich Text Fields when trying to save a new Component to Tridion. I'm getting the following ...
4
votes
1answer
213 views

WhereUsedFilterData using coreservice throwing exception

I am trying to get whereUsed data of a component/page template ? It throws the below fault exception. "Cannot create an abstract class." WhereUsedFilterData usingItemsFilterData = new ...
2
votes
2answers
289 views

Undo checkout is giving exception

Below is my code for checking if a page is checked out using core service. My code is running with MTS user. I have checked out the page and the condition is getting evaluated to true but once the ...
0
votes
0answers
47 views

Get list of target types to which a component is published [duplicate]

I am trying to publish a page to a target based on a components publish details. If a component is published to a particular target type then i need to publish the page to the same target type. I am ...
4
votes
3answers
316 views

Error while updating page metadata using core service

I am doing metadata update for Pages as below. I am constantly getting the below error XML validation error. Reason: The required attribute 'http://www.w3.org/1999/xlink:href' is missing.. Code is ...
-10
votes
3answers
798 views

How to create a WebSite on Sdl Tridion using core service.please write the step.

I want to create a website using core service on Sdl Tridion .please write the steps of creating a web site using this.
6
votes
1answer
612 views

How to get a page's full URL using the Core Service?

I have a Core Service app which shows links to published pages on the staging site, for this I am trying to get the page URL from the PageData object, but I cannot find a property for this? Is there ...
7
votes
1answer
237 views

How to get the owning publication of a component via the Core Service?

Probably I am missing something obvious, but I can't see how to find out the owning repository (ie the publication where a component is created) when I have opened a component with the Core Service... ...
3
votes
3answers
382 views

How to create custom table in SDL tridion 2011?

I am not sure whether to ask this question here. I have a requirement where I have to validate a product code entered by a user on a page. Client will provide product data in CSV format and that will ...
2
votes
1answer
178 views

Getting Unauthorized Error after configuring the custom HttpServiceHealthMonitor in Tridion Application Monitoring Service

I have created a simple page which will give the "true" status of publishing queue when it is stuck for any reasons for last 15 minutes. Sample code below: protected void Page_Load(object sender, ...
2
votes
2answers
246 views

Process of Validating components against their schema

From earlier posts I found responses that one of the most common way to validate a content component or keyword, or whatever, is to open the component and try to save it. What is the advised process ...
3
votes
2answers
192 views

How to use "FullTextQuery" for metadata date field of a component?

Following code is returing me all the component list in 'compList' where Test_Date field in metadata is having value. var Querydata = new SearchQueryData { FullTextQuery = "Test_Date", ItemType = New ...
9
votes
1answer
605 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 ...
5
votes
1answer
140 views

Category and its structure

Using Tridion Core Service which method would provide me a whole object of below tree Core service provinding me whole xml but not .net object of ProductCatalog.
5
votes
1answer
211 views

How do I obtain a list of the members of a Tridion group which is mapped to an Active directory group using Core Services?

I am trying to get members of a Tridion group which is mapped to an Active directory group. I am trying to get these details using the Core Service. The Groupdata/GetXMLList() gives only the users/...
4
votes
2answers
185 views

Getting Error in listing publication data

In CMS there are many publications and some of them are giving following error while accessing them: The formatter threw an exception while trying to deserialize the message: There was an error ...
2
votes
1answer
105 views

How to get the next activity based on the current instance id in Tridion2013

How can I get the next Workflow activity after I have gotten the processdefinition for the current instance id using the Core Service? Below is the code which I have already: ActivityInstanceData ...
3
votes
2answers
208 views

Search if user is part of specific group

We have implemented a functionality via the Core Service and we want to have this functionality only available to one SDL Tridion group (e.g. TridionGrp) and all others should get an unauthorized ...
5
votes
2answers
488 views

Core service fails because of partial trust.

I have encountered a problem when calling the core service. The error message is as follows: The WSHttpBinding with name WSHttpBinding failed validation because it contains a BindingElement with ...
2
votes
4answers
633 views

Publishing Transactions, Query Timeout

I am having trouble with publishing queue, getting query timeout error. I am also trying to read publish transactions using following code but getting same error. var filter = new ...
11
votes
5answers
404 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 ...
3
votes
1answer
304 views

Tridion Core Service & Webdav issues with SSO integration

We have integrated one of our Tridion Content Manager server (version = Tridion 2011 SP1 HR2 on Windows 2003 R2 SP2 with IIS 6) with single sign-on (SSO) authentication. To do that, we have followed ...
4
votes
1answer
87 views

How to read NextActivityDefinitions of a TridionActivityDefinitionData using Core Service?

I need to get the next activity definitions on a TridionActivityDefinitionData object using Core Service in Tridion 2011 SP1. My activity definition object represents an automatic activity with 2 next ...
4
votes
1answer
436 views

How do I get a list of all versions of a Component?

I am having a difficult time getting a list of all versions of a Component. When I run my code I get the error: Error 9 foreach statement cannot operate on variables of type 'Tridion....