public void CanPreviewViews() { var preview = new PreviewViewRequest() { View = new PreviewView() { All = new List<All>() {new All() {Field = "status", Value = "open", Operator = "is"}}, Output = new PreviewViewOutput() {Columns = new List<string>() {"subject"}} } }; var previewRes = api.Views.PreviewView(preview); Assert.Greater(previewRes.Rows.Count, 0); Assert.Greater(previewRes.Columns.Count, 0); }
public async Task<ExecutedViewResponse> PreviewViewAsync(PreviewViewRequest preview) { return await GenericPostAsync<ExecutedViewResponse>("views/preview.json", preview); }
public ExecutedViewResponse PreviewView(PreviewViewRequest preview) { return GenericPost<ExecutedViewResponse>("views/preview.json", preview); }