Skip to main content

Properties

Methods

Invoke

C#
1
2
3
public void Invoke(string event) { }
C#
1
2
// Submit the entry for approval. entry.Workflow.Invoke("submit");

InvokeAsync

C#
1
2
3
public async Task InvokeAsync(string message) { }
C#
1
2
// Submit the entry for approval. await entry.Workflow.InvokeAsync("submit");

Invoke with Dictionary

C#
1
2
3
public void Invoke(string event, Dictionary<string, object> data) { }
C#
1
2
3
4
5
// Submit the entry for approval. entry.Workflow.Invoke("submit", new Dictionary<string, object> { { "message", "Added additional photos to the intro" } });

InvokeAsync with Dictionary

C#
1
2
3
public async Task InvokeAsync(string message) { }
C#
1
2
3
4
5
6
7
// Submit the entry for approval. await entry.Workflow.InvokeAsync("submit", new Dictionary<string, object> { { "message", "Added additional photos to the intro" } } );

Invoke with anonymous object

C#
1
2
3
public void Invoke(string event, object data) { }
C#
1
2
3
4
5
6
7
// Submit the entry for approval. entry.Workflow.Invoke("submit", new { Message = "Added additional photos to the intro" }; );

InvokeAsync with anonymous object

C#
1
2
3
public async Task InvokeAsync(string message) { }
C#
1
2
3
4
5
6
7
// Submit the entry for approval. await entry.Workflow.InvokeAsync("submit", new { Message = "Added additional photos to the intro" }; );

Still need help?

New support request