Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR [Sitecore Services]: System.NullReferenceException: Object reference not set to an instance of an object.
- at Sitecore.Services.Infrastructure.Sitecore.Handlers.CreateItemHandler.HandleRequest(CreateItemCommand request)
- at Sitecore.Services.Infrastructure.Sitecore.Controllers.ItemServiceController.ProcessRequest[T](Func`2 handler, HandlerRequest query)
- $('#MyButton').click(function() {
- var url = "/sitecore/api/ssc/item/sitecore%2Fcontent%2F%home%2FMy%20Folder";
- $.ajax({
- method: "POST",
- contentType: "application/json",
- url: url,
- data: {
- ItemName: "TemporaryTestFile",
- TemplateID: "982F124F-B871-42DD-9915-D5411BFF8715"
- },
- success: function() {
- alert('success');
- },
- error: function(xhr, status, error) {
- alert(xhr.status + ' - ' + error);
- }
- });
- });
Add Comment
Please, Sign In to add comment