Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

Update operation



How should we use Update operation?

Uncompleted example:

            var updateRequest = new UpdateRequestBody
                Language = ScriptLanguage.Native,
                Parameters = new List>
                    {new Tuple("isDeleted", true)}
                Script = "ctx._source.IsDeleted = isDeleted"
    public class Video
        public string ServiceId { get; set; }
        public string Name { get; set; }
        public bool IsDeleted { get; set; }

What should we use as commandAction?

Did we create correct UpdateRequestBody item? 

I'll be grateful for any links to this topic.

Best regards,


Dec 07, 2015 14:55

Example setting IsDeleted to true:

client.Update<Video>("147249251").Field(x => x.IsDeleted, true).Execute();
Dec 07, 2015 15:21

The only place I have seen Update mentioned in the documentation is at the end of this page:

Dec 07, 2015 15:39
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.