Service to Update Products

Posted by Community Admin on 04-Aug-2018 23:02

Service to Update Products

All Replies

Posted by Community Admin on 28-May-2015 00:00

In my company's ecosystem Sitefinity is not the owner of 'products'.  As such we need to constantly update products in two systems when a products is updated or added to our catalog.

 What I would like to do is set up a project, not in the sitefinity website, that can create/update products in the sitefinity system.

 So far I have not been able to find any documentation that show how to do this.  How can I go about doing this?

Posted by Community Admin on 29-May-2015 00:00

Hi Geoffrey,

You can use the webservices to do these kind of actions. See: http://docs.sitefinity.com/for-developers-client-side-programming-and-web-services

Another option is to create your own with e.g. WebAPI or ServiceStack.

You could also check out Babaganoush, which comes with WebAPI services out of the box: http://babaganoush.falafel.com/documentation/tutorials/how-to-retrieve-data

Best regards,
Daniel

Posted by Community Admin on 29-May-2015 00:00

Thanks, your post was very helpful.

 The Babaganoush looks very interesting.  Though it seems to only support getting product information.  At this point I am not seeing any create/update.  Also it is something that seems to only work within the sitefinity project itself.

 When you say you can 'Another option is to create your own with e.g. WebAPI or ServiceStack.'  I am assuming that this is also creating a WebApi layer that resides inside of the Sitefinity project?  Ideally I would prefer not to have this limitation.  I would prefer to have a project that is not a part of my public website to handle this type of action.

 I guess I am used to working with API layers that allow me to reference dlls and then start using them.  Unless I am reading things incorrectly it seems that you have to go through your sitefinity project if you want to use their api.  If this is the case I find that very disheartening.

 

Posted by Community Admin on 30-May-2015 00:00

Hi Geoffrey,

I see. Of course it is possible to access the WCF services from outside Sitefinity. I have a project running with this, but I think you could also look at the project from Tim Williamson. He created a REST Client for Sitefinity and shared the code on GitHub. That would be a more easier start then me trying to find the right code for you :)

Check out: https://github.com/timw255/timw255.Sitefinity.RestClient and let me know if that gives you an idea on how to solve your problem?

Best,
Daniel

Posted by Community Admin on 01-Jun-2015 00:00

Thanks again Daniel.

 

Very helpful information.

This thread is closed