Skip to content

Conditional pipeline processors #21248

@niemyjski

Description

@niemyjski

I wish there was a way to do some very basic conditional pipeline actions without going straight to scripts. For example, run this pipeline only if this field exists. I don't want to have to specify a failure action when a field doesn't exist....

            var response = await Configuration.Client.PutPipelineAsync(Pipeline, d => d
                .Processors(p => p
                    .Lowercase<Employee>(l => l.Field(f => f.Name))
                    .Trim<Employee>(t => t.Field(f => f.Name))
                ).OnFailure(of => of.Set<Employee>(s => s.Field(f => f.Name).Value(String.Empty))));

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions