cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Stian-MPA
New Member

When a work item is updated - BadRequest. The request failed. Error code: 'ErrorInvalidRecipients'. Error Message: 'One or more recipients are invalid.'.

Hi,

what i want to achieve: 
- Send a mail to the assigned person on a work item when the item is updated. This shall by a personalized mail, dont just a notification.

My current flow:

 

StianMPA_0-1638447826772.png(The mail doesnt need to be with options)


I moved all my work items into a query so i could get the "Assigned to" variable from my work items, as the "when a work item is updated" doesnt pull out the necessary information (everything except "Assigned to").

Problem:

BadRequest. The request failed. Error code: 'ErrorInvalidRecipients'. Error Message: 'One or more recipients are invalid.'.

Question: 
Is there a bettery way to do this or is it a simple solution to my problem? 

1 ACCEPTED SOLUTION

Accepted Solutions
v-chenzhi
Community Support
Community Support

Hi @Stian-MPA ,

 

The output of ‘Assigned to’ is in this format, so the Email action cannot be recognized correctly.

vchenzhi_0-1638521713663.png

I have a test on my side, please try the following workaround.

vchenzhi_1-1638522026915.png

Here is the expression:

first(split(last(split(items('Apply_to_each')?['System.AssignedTo'],'<')),'>'))

 

first(split(last(split(items('Apply_to_each')?['System.AssignedTo'],'<')),'>'))

 

 

Best Regards,

Zhi Chen

 

 

View solution in original post

1 REPLY 1
v-chenzhi
Community Support
Community Support

Hi @Stian-MPA ,

 

The output of ‘Assigned to’ is in this format, so the Email action cannot be recognized correctly.

vchenzhi_0-1638521713663.png

I have a test on my side, please try the following workaround.

vchenzhi_1-1638522026915.png

Here is the expression:

first(split(last(split(items('Apply_to_each')?['System.AssignedTo'],'<')),'>'))

 

first(split(last(split(items('Apply_to_each')?['System.AssignedTo'],'<')),'>'))

 

 

Best Regards,

Zhi Chen

 

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,663)