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 / Concat object object
Power Apps
Answered

Concat object object

(0) ShareShare
ReportReport
Posted on by 726

I have an email that is sent with a concat with the information from a gallery, its displaying everything i want it to, but its also showing [object Object], in the email, what's wrong with my code that's coursing this and how do i fix it.

 

amyharkus86_0-1673358481763.png

 

Office365Outlook.SendEmailV2("Aharkus@xxxxx.com", "Customer Care Agent: Timesheet Form", 

"<font face = Calibri size = 7><font color=black>Customer Care Agent Timesheet:</Font></Font> <br> <br> <b> Submitted By: </b>" &
TI_CurrentUser.Text & 
 "<b> Submitted on: </b>" & CustomerCareAgent_Form.LastSubmit.Created & "<br>" & 
 "<br><b>Full Name: </b>" & CustomerCareAgent_Form.LastSubmit.'Full Name' & 
 "<br><b>Department: </b>" & CustomerCareAgent_Form.LastSubmit.Department & 
 "<br><b>Job Title: </b>" & CustomerCareAgent_Form.LastSubmit.'Job Title' & "<br><br>" &

 "Total Hours: " & CustomerCareAgent_Form.LastSubmit.'Grand Total' & "<br>
 Total Hours Worked: " & CustomerCareAgent_Form.LastSubmit.'Hours Worked Day Total' & "<br><br>" &

 Concat(CustomerCollection,"<br>
 Date :" & LineDate & "<br>
 Start Time : " & LineStartTimeHR & ":" & LineStartTimeMIN & "<br>
 finish Time : " & LineFinishTimeHR & ":" & LineFinishTimeMIN & "<br>
 Lunch : " & LineLunch & "<br>" & 
 "Hours Worked : " & With({_value:Value(LineHoursWorked),_num60:60},Concatenate(Text(RoundDown((_value/_num60),0)), " hours ", Text( Mod(_value,_num60 )), " minutes " )) & "<br>" & "<br><br>" 

 , {IsHtml:true, From:"SharePoint_NoReply@xxxxxxxx.onmicrosoft.com", Importance:"Normal"}));

 

Categories:
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Concat(CustomerCollection,&"<br>br>

     

    Is & missing in your code here?

  • amyharkus86 Profile Picture
    726 on at

    @zmansuri If i add & the whole code has a red line

     

    amyharkus86_0-1673362004028.png

     

  • Verified answer
    amyharkus86 Profile Picture
    726 on at

     

    Corrected the code,

    ) was after the email importance although this didn't show as an error when moved to after the "minutes" and added & as per @zmansuri comment. 

    concat(CustomerCollection,"<br>
     " &
     "<br> Date: " & LineDate &
     "<br> Start Time: " & LineStartTimeHR & ":" & LineStartTimeMIN &
     "<br> Finish Time: " & LineFinishTimeHR & ":" & LineFinishTimeMIN &
     "<br> Lunch Break: " & LineLunch &
    "<br> Hours Worked: " & With({_value:Value(LineHoursWorked),_num60:60},Concatenate(Text(RoundDown((_value/_num60),0)), " hours ", Text( Mod(_value,_num60 )), " minutes " )) 
    )
     

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard