-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConvertListToHtmlListAction.cs
More file actions
41 lines (33 loc) · 1.69 KB
/
Copy pathConvertListToHtmlListAction.cs
File metadata and controls
41 lines (33 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// ---------------------------------------------------
// Copyright (c) Jesus Fernandez. All Rights Reserved.
// ---------------------------------------------------
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK;
using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes;
namespace PowerAutomate.Desktop.Modules.HTML.Actions;
[Action(Id = "ConvertListToHtmlList")]
[Throws(ErrorCodes.Unknown)]
[SuppressMessage("ReSharper", "AutoPropertyCanBeMadeGetOnly.Global", Justification = "PowerAutomate.Desktop.Module.Action")]
[SuppressMessage("ReSharper", "MemberCanBePrivate.Global", Justification = "PowerAutomate.Desktop.Module.Action")]
[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global", Justification = "PowerAutomate.Desktop.Module.Action")]
[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global", Justification = "PowerAutomate.Desktop.Module.Action")]
[SuppressMessage("ReSharper", "UnusedType.Global", Justification = "PowerAutomate.Desktop.Module.Action")]
public class ConvertListToHtmlListAction : HtmlActionBase
{
public ConvertListToHtmlListAction()
{
}
internal ConvertListToHtmlListAction(HtmlActionsContext context) : base(context)
{
}
[OutputArgument(Order = 1)]
public string HtmlList { get; set; } = null!;
[InputArgument(Order = 0)]
[DefaultValue(false)]
public bool IsOrdered { get; set; }
[InputArgument(Order = 1)]
public List<object> List { get; set; } = null!;
protected override void Run(ActionContext context) => HtmlList = Context.MarkupService.ConvertListToHtmlList(List, IsOrdered);
}