I have a service that gets the data I need and I want to be able to create a post with that information so no manual involvement is needed. Whats the best way to programmatically add a post?
I'm assuming I would just add a node with the type set for contentTypeAlias to Articulate. What about something like tags? I'm guessing I would need to check to see if the tag already existed before creating the parent tag to relate it to?
Programmatically Add Post
I have a service that gets the data I need and I want to be able to create a post with that information so no manual involvement is needed. Whats the best way to programmatically add a post?
Thanks,
Hi Matthew,
If you want to create content node (for post) into umbraco backend programatically, then please check the Umbraco API documentation at here -https://our.umbraco.org/documentation/reference/management/services/contentservice
I'm assuming I would just add a node with the type set for contentTypeAlias to Articulate. What about something like tags? I'm guessing I would need to check to see if the tag already existed before creating the parent tag to relate it to?
Yeah, Matthew
You have to check before creating post that is there any parent tag exist or not and then you will insert the post accordingly.
Hi,
Did you figure out how to add the postImage programmatically?
Thanks in advance Mark
is working on a reply...