5

Each item has publish info. You can use: PublishInfoData[] publishInfoData = CoreServiceConnector.Client.GetListPublishInfo(item); PublishInfoData class has the property PublishedAt, so you can filter there all for the last 24 hours. So you can list every item in Tridion, get its published info, and then see if it was published somewhere in the last 24 ...


4

Let me clarify to help you with this. SDL Tridion Docs comes in different WCF endpoints for different services. Here is the list of WCF services available and Web Services classes and methods refer to the SDL documentation it provided web service each methods request and response XMLs detail, to start with you are already found the document for "using ....


3

Core Service client, by default uses currently logged on user unless you want to use a different user, like it is explained here in the SDL docs: https://docs.sdl.com/783502/101707/sdl-tridion-sites-9-1/connecting-to-the-core-service-from--net-as-a-different-user You may probably have to impersonate it, for example: if (!String.IsNullOrEmpty(HttpContext....


3

The error happens if you call a Linq statement on a null object. The only Linq statement in your code is ToArray(). My guess is that the variable purposes is null.


2

For Core Service, read the BPT from the Publication and then you can get to TargetTypes and their Purpose: var pub = (PublicationData)client.Read("tcm:0-x-1", null); var bpt = (BusinessProcessTypeData)client.Read(pub.BusinessProcessType.IdRef, null); bpt.TargetTypes.Select(tt => tt.Purpose);


2

You should be using TargetTypesFilterData. Something like this should work: TargetTypesFilterData targetTypesFilterData = new TargetTypesFilterData(); var targetTypes = coreServiceClient.ClientInstance.GetSystemWideList(targetTypesFilterData); To work with other Topology Manager items, you should be using Tridion.TopologyManager. Client.dll. You can find ...


2

Complimenting Marko's answer on the Event System, you could also look at extending Tridion CM search to store such information within the SOLR index as well. This way you can leverage existing infra and benefit from SOLR's powerful querying which can be executed via Core Service. See Arjen's post: http://80000ft.blogspot.com/2012/08/search-indexing-handlers....


2

Another option, which might be a better one regarding performance would be to create Event System that would for each successful transaction send Transaction data to some custom storage (to some DB, or service). Then you can query that service periodically. It would give you flexibility where you would not check all items in Tridion for their publish info, ...


2

After lot debugging was able to figure out that on below code _client.Publish(new String[] { id }, pid, purposes.toArray(), PublishPriority.Low, new ReadOptions()); I was passing string array on purposes i.e. Live, Live1 But Publish method on core-service is expecting id instead of purpose string. Previously I was fetching purpose string by below line of ...


1

You would not be able to get the value of a Content Delivery environment's Marked Offline property using the Core Service API. You need to be using the Tridion.TopologyManager.Client DLL that allows communication with the Topology Manager items. You can find the DLL from the bin\client\TopologyManager subfolder of %TRIDON_HOME%. To get the value Marked ...


1

In general, to get a list of items related to some subject, you can use the Core Service methods GetList (returns Data Objects) or GetListXml (returns so-called R5 XML). Specifically, to get a list of child Keywords, you use one of those methods in combination with a filter of type ChildKeywordsFilterData. If you only want to get the "normal"/"...


1

A Publication/Repository has a BusinessProcessType property which tells you what the selected Business Process Type (BPT) is for that Publication/Repository (if any). A Business Process Type contains a set of Target Types which each have a distinct Purpose. So, if you are working with TOM.NET and want to get a list of publishing purposes for a given context ...


1

Reference sample Code for Unpublish PageByUrl using CoreService: using System; using Tridion.ContentManager.CoreService.Client; using System.ServiceModel; using System.Net; using System.Collections.Generic; using System.Linq; using System.Xml.Linq; namespace CoreService.PublishPageByPageURL { class Program { static void Main(string[] args) ...


1

You could well have valid connection parameters, but make sure that the ports you are using are open. For netTcp port 2660 must be open on your firewall, note also that netTcp is a non-routable protocol. So one example to connect over https would be Set-TridionCoreServiceSettings -ConnectionType Basic-SSL -HostName $SDLCloudCMS -Version Sites-9.0 -...


1

It can sometimes be a bit tricky to get exactly the right settings. The good news is that once you've found them, the core service is a very powerful tool for working with Tridion. Having imported the module you should be able to configure the settings using Set-TridionCoreServiceSettings. Here's a snippet from one of my own scripts. Obviously the variables ...


Only top voted, non community-wiki answers of a minimum length are eligible