cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Manan_200
New Member

Gmail Attachment showing Error

I have taken connector - Gmail through with I want to send email with attached in form of pdf.

I tried to configure the app with Attachment but facing error into send button.

I use this formula OnSelect property.
Gmail.SendEmail("info@msdindia.app",
"Subject: Offer No: "&EnquiryGallery.Selected.ID & " , Customer Name: "&EnquiryGallery.Selected.CustomerName,
HtmlText1_1.HtmlText,
{
Attachments: AddColumns(
RenameColumns (
DataCardValue84_2.Attachments,
"Value",
"ContentBytes"
),
"@odata.type",
""
),
IsHtml: true,
Cc: "service@####",
Importance: "High"
}
)

Manan_200_0-1627148562574.png

 

What I want to do is when I click on send mail my html show send with pdf to client.

Thanks.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @Manan_200 ,

 

Your attachment table is missing a column ‘ContentType’.
vjefferni_0-1627265725964.png

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

2 REPLIES 2
v-jefferni
Community Support
Community Support

Hi @Manan_200 ,

 

Your attachment table is missing a column ‘ContentType’.
vjefferni_0-1627265725964.png

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

Hi  @v-jefferni,
Thanks for the formula you provided me, I was able to solve my issue.
I did some modification in the formula.

ClearCollect(
ColLAchment1,
DataCardValue84_2.Attachments
);
Gmail.SendEmailV2("info@msdindia.app",{Subject: "Offer No: "&EnquiryGallery.Selected.ID &
" , Customer Name: "&EnquiryGallery.Selected.CustomerName,
Body: HtmlText1_1.HtmlText,
Importance: "High",Attachments:AddColumns(
RenameColumns (
DataCardValue84_2.Attachments,
"Value",
"ContentBytes"),"ContentType","")})

 

Thanks

Manan Mishra

 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,122)