@v-jefferni ,
It's a big mess with lots of nested string operations. The string comes from a SharePoint column that contains unstructured data that I need to get into individual columns in another list.
I thought if I have it in a nice collections I can easily reference to patch to the new list.
With(
{
w_String: PlainText(
Substitute(
Substitute(
Substitute(
Substitute(
Substitute(
Substitute(
ThisItem.'Task Summary',
"<span style=" & Char(34) & "font-size:1.0em;" & Char(34) & ">",
":"
),
"</span>",
":"
),
"VEHICLE DISPATCH DETAILS",
""
),
"Expected Arrival",
",Expected Arrival"
),
"-",
""
),
"::",
"NULL"
)
)
},
Trim(
Substitute(
Substitute(
Mid(
w_String,
Find(
"Hubodometer Installed",
w_String
),
Len(w_String) - Find(
"Hubodometer Installed",
w_String
)
),
": :",
"NULL"
),
",Expected Arrival",
"Expected Arrival"
)
)
)