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 :
Power Platform Community / Forums / Power Apps / Send an eMail with Lin...
Power Apps
Unanswered

Send an eMail with Links for Downloads from Attachments of the selected Item

(0) ShareShare
ReportReport
Posted on by 12

Hello, i have to use the german Version of Power APP and i have to use ;; and ; for the Syntax.
Can someone help me with my Code?

// Anlagen aus der SharePoint-Liste abrufen
Set(Anlagen; SelectedItem.Anlagen);;

// Leere Zeichenkette für Anlagenlinks initialisieren
Set(AnlagenLinks; "");;

// Durchlaufen jeder Anlage und Erstellen des Links
ForEach(Anlagen;
 Set(AnlagenLink; Concatenate("https://finanzfaironlinegmbh.sharepoint.com/"; SelectedItem.ID; "/"; Anlage.Name; "]"));;
 Set(AnlagenLinks; Concatenate(AnlagenLinks; AnlagenLink; "\n"));;
);

// Platzhalter "[Anlagen]" im Templatetext durch die Anlagenlinks ersetzen
Set(
 TemplateContent;
 Substitute(TemplateContent; "[Anlagen]"; AnlagenLinks)
);;

  This is the only Part that doesn't work to send an Email from PowerApp via Outlook (V2) with Links in the body of the Attachments (Anlagen).

Thanks.

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @cAhler 

     

    can u try this please:

    // Anlagen aus der SharePoint-Liste abrufen
    Set(Anlagen; SelectedItem.Anlagen);;
    
    // Leere Zeichenkette für Anlagenlinks initialisieren
    Set(AnlagenLinks; "");;
    
    // Durchlaufen jeder Anlage und Erstellen des Links
    ForEach(Anlagen;
     // Ensure AnlagenLink is reset properly inside the loop if necessary
     Set(AnlagenLink; Concatenate("<a href='https://finanzfaironlinegmbh.sharepoint.com/", SelectedItem.ID, "/", Anlage.Name, "'>", Anlage.Name, "</a>"));;
     Set(AnlagenLinks; Concatenate(AnlagenLinks; AnlagenLink; "<br>"));; // Use <br> for new lines in HTML emails
    );
    
    // Platzhalter "[Anlagen]" im Templatetext durch die Anlagenlinks ersetzen
    Set(
     TemplateContent;
     Substitute(TemplateContent; "[Anlagen]"; AnlagenLinks)
    );;

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard