web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

javascript attachment

(0) ShareShare
ReportReport
Posted on by 443

 Ok.  I am trying to have a form on my portal that has 3 text input fields for:   to, subject, body,  and attachment (for an email).

I am trying to send (ajax) these inputs to a power automate flow. 

The text input fields work just fine.   The flow gets them and uses them to create and send an email.

Getting the attachment to the flow has been problematic.

NOTE:  there is no ENTITY involved here.  this is not being done using additional settings.

The attachment input field is of type "file" and it does allow me to choose a file from my local computer using a file selector dialog.

I guess I am missing what to do with the file that is returned from the dialog and how it can be sent to the Flow.

Can anyone understand this?  I definitely need help..files; var request = { "url": "https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json" }, "data": secfile, };

I have been able to see attibutes of the file, like file.name

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 142 Super User 2026 Season 1

#2
Nagaraju_Matta Profile Picture

Nagaraju_Matta 128

#3
11manish Profile Picture

11manish 121

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans