Hi,
I'm wanting to send an email out with an image and some information.
I have a Concat formula already which details the information. I
now want to add an attachment to the email that relates to the information. The Concat formula is
Office365.SendEmail(
"Email address", (Receptiant email is included in original formula)
"Perimeter Check Issues",
Concat(Perimeterissue,
"Building: " & Building & Char(10) &
"Area: " & Title & Char(10) &
"Comments: " & Comments & Char(10),
"Issue: " & Issue & Char(10) & Char(10)
)
)
'Perimeterissue' is the name of my collection which also contains the image.
The Collection is triggered by Clicking on the Camera function
Collect(
Perimeterissue,
{
Title: txtChecklistSpecificArea.Text,
Image: txtChecklistSpecificArea.Text & " .jpg",ContentBytes:Camera1.Photo,'@odata.type':"",
Hint: txtChecklistDescription.Text,
Building: drpSelectedBuilding.Selected.Result,
Issue: RadChecklist.Selected.Value,
Comments: txtChecklistComments.Text,
CheckedBy: txtCheckedBy.Text,
Date: txtDate.Text,
Time: txttime.Text
}
);
Reset(RadChecklist);
Reset(txtChecklistComments);
Any assistance would be grateful
Solved! Go to Solution.
Hi
Solved it.
I had a opening bracket before the Concat. Doh!!!!!
Removed that and it works perfectly.
Thanks for your help
HI @ClarkyPA365
Hi @yashag2255
Thanks for your reply.
I've amended my formulas to the changes you have hi-lighted.
The send email formula is show red underlining
Office365.SendEmail(
"Email",
"Perimeter Check Issues",
(Concat(Perimeterissue,
"Building: " & Building & Char(10) &
"Area: " & Title & Char(10) &
"Comments: " & Comments & Char(10) &
"Issue: " & Issue & Char(10) & Char(10)
),
{Attachments:(Perimeterissue,"Name","ContentBytes")}
)
Where you have emoji and howcolumns what needs to be here?
Can you try with this?
Hi @yashag2255
Thanks for that couldn't find a formula howcolumns. Not sure why the emoji displays in the community form but not in the email I get???
I still seem to be getting an error against th last 'Comma' before the curly brace {Attachment........
Error Msg Unexpected characters. The formula contains 'ParenClose' where comma is expected.
Hi @ClarkyPA365
Hi
Still getting the last comma underlined in red and the same error message?
Office365.SendEmail(
"Email",
"Perimeter Check Issues",
(Concat(Perimeterissue,
"Building: " & Building & Char(10) &
"Area: " & Title & Char(10) &
"Comments: " & Comments & Char(10) &
"Issue: " & Issue & Char(10) & Char(10)
),
{Attachments:ShowColumns(Perimeterissue,"Name","ContentBytes")}
)
Can you please share a screenshot? (of the error message and the expression on the control)
Hi,
I've attached two screenshots showing the formula without the error msg and one with the error msg
Hi
Solved it.
I had a opening bracket before the Concat. Doh!!!!!
Removed that and it works perfectly.
Thanks for your help
User | Count |
---|---|
139 | |
132 | |
79 | |
74 | |
74 |
User | Count |
---|---|
207 | |
196 | |
70 | |
62 | |
55 |