Button Flow error when run from executeFlow in SharePoint list

%3CLINGO-SUB%20id%3D%22lingo-sub-389810%22%20slang%3D%22en-US%22%3EButton%20Flow%20error%20when%20run%20from%20executeFlow%20in%20SharePoint%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-389810%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20figure%20out%20why%20my%20Flow%2C%20set%20up%20as%20a%20manual%20trigger%2C%20will%20not%20work%20when%20I%20try%20to%20run%20it%20from%20a%20json-formatted%20executeFlow%20action%20in%20a%20SharePoint%20list%20display.%20It%20runs%20fine%20when%20I%20trigger%20it%20manually%20from%20the%20Flow%20console.%20This%20is%20the%20error%20I%20get%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EUnable%20to%20process%20template%20language%20expressions%20in%20action%20'Get_item'%20inputs%20at%20line%20'1'%20and%20column%20'1865'%3A%20'The%20template%20language%20expression%20'json(decodeBase64(triggerOutputs().headers%5B'X-MS-APIM-Tokens'%5D))%5B'%24connections'%5D%5B'shared_sharepointonline'%5D%5B'connectionId'%5D'%20cannot%20be%20evaluated%20because%20property%20'X-MS-APIM-Tokens'%20doesn't%20exist%2C%20available%20properties%20are%20'Connection%2C%20Accept%2C%20Accept-Encoding%2C%20Accept-Language%2C%20Host%2C%20Referer%2C%20User-Agent%2C%20Origin%2C%20Content-Length%2C%20Content-Type'.%20Please%20see%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Flogicexpressions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Flogicexpressions%3C%2FA%3E%20for%20usage%20details.'.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20this%20is%20the%20json%20snippet%20that%20generates%20the%20action%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%22customRowAction%22%3A%20%7B%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%22action%22%3A%20%22executeFlow%22%2C%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%22actionParams%22%3A%20%22%7B%5C%22id%5C%22%3A%20%5C%22220f7fcf-cf31-4986-9dd9-058c458be0ba%5C%22%7D%22%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%7D%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20would%20be%20greatly%20appreciated!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-389810%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-525000%22%20slang%3D%22en-US%22%3ERe%3A%20Button%20Flow%20error%20when%20run%20from%20executeFlow%20in%20SharePoint%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-525000%22%20slang%3D%22en-US%22%3E%3CP%20style%3D%22text-align%3A%20left%3B%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F309397%22%20target%3D%22_blank%22%3E%40voodoolintman%3C%2FA%3E%20%2C%20Did%20you%20ever%20find%20a%20solution%20for%20this.%20I'm%20running%20into%20the%20same%20issue.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-738093%22%20slang%3D%22en-US%22%3ERe%3A%20Button%20Flow%20error%20when%20run%20from%20executeFlow%20in%20SharePoint%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-738093%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3EI%20had%20this%20issue%20too.%20Did%20you%20used%20this%20post%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwonderlaura.com%2F2018%2F07%2F18%2Fbutton-in-sharepoint-list-to-trigger-microsoft-flow%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwonderlaura.com%2F2018%2F07%2F18%2Fbutton-in-sharepoint-list-to-trigger-microsoft-flow%2F%3C%2FA%3E%3CBR%20%2F%3E%3F%3CBR%20%2F%3ELaura%20in%20her%20video%20is%20using%20Flow%20trigger%20%3A%20For%20a%20selected%20item%20.%20I've%20changed%20Flow%20trigger%20from%20'Manually%20trigger%20a%20flow'%20to%20'For%20a%20selected%20item'%20which%20is%20sharepoint%20trigger%20and%20then%20after%20pressing%20button%20in%20sharepoint%20flow%20got%20correct%20token%20and%20flow%20started%20without%20problems!%3CBR%20%2F%3EI%20hope%20it%20will%20help%20you.%3CBR%20%2F%3ECheers%3C%2FLINGO-BODY%3E
Deleted
Not applicable

I am trying to figure out why my Flow, set up as a manual trigger, will not work when I try to run it from a json-formatted executeFlow action in a SharePoint list display. It runs fine when I trigger it manually from the Flow console. This is the error I get:

 

Unable to process template language expressions in action 'Get_item' inputs at line '1' and column '1865': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_sharepointonline']['connectionId']' cannot be evaluated because property 'X-MS-APIM-Tokens' doesn't exist, available properties are 'Connection, Accept, Accept-Encoding, Accept-Language, Host, Referer, User-Agent, Origin, Content-Length, Content-Type'. Please see https://aka.ms/logicexpressions for usage details.'.

 

And this is the json snippet that generates the action:

 

"customRowAction": {
"action": "executeFlow",
"actionParams": "{\"id\": \"220f7fcf-cf31-4986-9dd9-058c458be0ba\"}"
}

 

Any help would be greatly appreciated!

2 Replies

Hi @Deleted , Did you ever find a solution for this. I'm running into the same issue.

Hi,
I had this issue too. Did you used this post:
https://wonderlaura.com/2018/07/18/button-in-sharepoint-list-to-trigger-microsoft-flow/
?
Laura in her video is using Flow trigger : For a selected item . I've changed Flow trigger from 'Manually trigger a flow' to 'For a selected item' which is sharepoint trigger and then after pressing button in sharepoint flow got correct token and flow started without problems!
I hope it will help you.
Cheers