cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ajithd6368
Post Patron
Post Patron

Get the email ID of the Manager in List

Hi Group ,

 

I am using below statement to get the email ID of the Manager and send a email .. Seems i'm not doing it correctly ..

 

It's giving an error saying "The Function "SendEmail" has Invalid argument 

 

Office365Outlook.SendEmail(
LookUp(Employee,EmployeeName=User().FullName,Manager-Email),
User().FullName & " HAS REQUESTED TO MOVE FOLLOWING ASSET" & "</br></br></br>" & "Asset Number - ",
{
Importance: Normal,
IsHtml: true
}
)

rgds

AD

1 ACCEPTED SOLUTION

Accepted Solutions

 It is required to have subject and also a body of email. I don’t see one of them. 
Can you check please ?

View solution in original post

4 REPLIES 4
gabibalaban
Dual Super User
Dual Super User

@ajithd6368 ,

Use SendEmailV2 function as SendEmail was declared deprecated some time ago.

Hope it helps !

Thanks Gabibalaban ,

 

Used below statement , but still  get the same error 

 

Office365Outlook.SendEmailV2(
LookUp(Employee,EmployeeName=User().FullName,Manager-Email),
User().FullName & " HAS REQUESTED TO MOVE FOLLOWING ASSET" & "</br></br></br>" & "Asset Number - ",
{
Importance: Normal,
IsHtml: true
}
)

 It is required to have subject and also a body of email. I don’t see one of them. 
Can you check please ?

Thanks Gabibalaban ,

 

My bad .. all working fine 

 

rgds

AD

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,087)