Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Content API question


Hi good morning everyone.

One of our customer is looking out inform one of its partners when a new content (Content based on a PageType type) have been Published in the Episerver Web Site through the Epi's CMS; the main idea would be create a REST API.

Could we use the Episerver Content API for this? -->

What do you think about use that?, is there other solution?.

We are using Episerver 10 (v10.10.4).

Best regards.

Edited, Aug 12, 2019 10:51

1. For Content Delivery API you will need Episerver 11.4 if I recall correctly.

2. The easiest way to solve it is to use Episerver content events and listen on the published events. When a page has been published you can write code to send the mail, call a REST API or similar. 

Check out here for some example code for listening on events

3. Another option is to build a separate scheduled job, search the site for newly published pages either by using Episerver Find or FindPagesWithCriteria

This has an advantage since you can avoid spamming mails and only send one per day or similar.

4. Build a custom REST api that uses the same functionality as 3.  

Depends a bit if you want to push or pull information which option is the best. 2. is probably fastest to build.

Edited, Aug 12, 2019 11:20

Hi @Daniel Ovaska.

Thank you for your feedback, we'll try then use a workaround, using a mix of Episerver content event and our own REST Api Service, this was one of our first approach, because for is not going to be possible update to a new Episerver version (as you can imaging this could have a high risk for us).

Best regards.

Aug 12, 2019 11:48
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.