cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
braneyBI2
Frequent Visitor

Error Sending email from Outlook 0365 "Property 'shared_office365_2' doesn't exist"

We really scratched our heads on this one!!  We have a very complex flow with many switches which send email approvals from our PowerApp.  It was working great for a while.  After our latest round of change, it started failing only sometimes, and the error that was thrown: 

Unable to process template language expressions in action 'New_Reminder_Service_Offer_to_SVP_Approval' inputs at line '1' and column '1943': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_office365_2']['connectionId']' cannot be evaluated because property 'shared_office365_2' doesn't exist, available properties are 'shared_office365'. Please see https://aka.ms/logicexpressions for usage details.'.

We searched and could NOT find what was causing this!  FINALLY WE LEARNED, through a thought of hard work and stupefied brain power, about a quirk.  We had multiple authors working in the flows (one at a time so we did not step over each other).  It turns out, the Connector for the Primary Author was the only one that would connect to Outlook (only the primary connector could send emails from Outlook). 

FIX:  For Each EMAIL SEND connector, Click the Elipsis in the header of the connector and switch the connection to the email of the PRIMARY AUTHOR.  

Note:  Exporting the Flow and Re-importing to another environment strips the muliple connections and only the Outlook Connection for the current user will remain. (for migrating to Production).  

1 ACCEPTED SOLUTION

Accepted Solutions
braneyBI2
Frequent Visitor

See the red Note for the solution!  Smiley Happy

View solution in original post

1 REPLY 1
braneyBI2
Frequent Visitor

See the red Note for the solution!  Smiley Happy

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,239)