Steps to reproduce, FYI for anyone that runs into this:
<<Start: SELECT(table[UniqueID],[STATE] = [_THISROW].[STATE])>> <<[SomeField]>>: <<[Another Field]>> <br/> <<End>>
This fails, appsheet says it cannot find the function โSTART: SELECTโ - if you use actual < and > you get a different error.
<<Start: SELECT(table[UniqueID],[STATE] = [_THISROW].[STATE])>>
<<[SomeField]>>: <<[Another Field]>><<End>>
Let me know if you have ever seen this, or, put more simply: anyone have a working example of a start expression with an arbitrary select statement, and using the HTML output type?
Solved! Go to Solution.
The error is occurring because in the failing HTML file, the Start/End expression is not inside an HTML <p>
or <heading>
element. Instead, the Start/End expression is at the bottom of the HTML <body>
element. This is causing a parsing problem that is not easy for me to fix. You can circumvent the problem by enclosing that Start/End expression in an HTML <p>
element.
The HTML at the bottom of the file currently looks like this:
<p><<End>></p>
<br />
<br /><<Start: Select(Parent[Key],True)>>[Name]<br /><<End>></body>
</html>
It needs to look like this:
<p><<End>></p>
<br />
<br /><p><<Start: Select(Parent[Key],True)>>[Name]<br /><<End>></p></body>
</html>
And that error isโฆ?
eh. canโt find it nowโฆ itโs buried in there. Typical html invalid stuffโฆ
also if you use the email BODY field in the UX and put html in there, as opposed to an email attachment of type html , then all of this worksโฆ something is up with attachments of type html when attempting to use start expressions.
This worked for me as both the body template file and attachment template file:
<html>
<body>
v1
<p>before</p>
<ol>
<<start: filter("example", true)>>
<li>within</li>
<<end>>
</ol>
<p>after</p>
</body>
</html>
Also worked without enclosing HTML and BODY tags.
Also successful:
v4
<p>before</p>
<ol>
<<start: select(example[id], true)>>
<li>within</li>
<<end>>
</ol>
<p>after</p>
Where does this error occur? Screenshot?
I will try again late, thanks so much !!
Coming back to this this time with a repro.
The following app, meant to be copied so that one gets the templates, has two workflows - the html workflow fails and the PDF workflow succeed. Both have the same basic โStartโ syntax. the HTML escapes the LT/GT.
Wondering if anyone else has ever seen this!
The error is occurring because in the failing HTML file, the Start/End expression is not inside an HTML <p>
or <heading>
element. Instead, the Start/End expression is at the bottom of the HTML <body>
element. This is causing a parsing problem that is not easy for me to fix. You can circumvent the problem by enclosing that Start/End expression in an HTML <p>
element.
The HTML at the bottom of the file currently looks like this:
<p><<End>></p>
<br />
<br /><<Start: Select(Parent[Key],True)>>[Name]<br /><<End>></body>
</html>
It needs to look like this:
<p><<End>></p>
<br />
<br /><p><<Start: Select(Parent[Key],True)>>[Name]<br /><<End>></p></body>
</html>
@lizlynch, I don't see anything related to this seemingly crucial point in either of the following articles about this exact topic. I'm having trouble getting Start expressions to work in an HTML template in a Send an email task's Email Body property (including when I use the pattern that Steve's posts in this thread say worked for him). Could we please get clear, definitive documentation published?
@dbaum - Thank you for bringing this outage to my attention. Will work on getting it incorporated. Apologies for the frustration.
I can confirm that wrapping in
tags fixes this issue. Thanks @Phil !!
User | Count |
---|---|
44 | |
28 | |
28 | |
21 | |
13 |