web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error when making a RE...
Power Automate
Answered

Error when making a REST call against Salesforce to get documents attached to an object

(0) ShareShare
ReportReport
Posted on by 64

I've followed the steps detailed at this help article, but I'm still running into issues. The access token I'm getting from Salesforce via REST early in my flow has invalid base64 characters (periods and exclamation points). When I attempt to make a REST call against a Salesforce object using this access token, I receive the error below.

 

InvalidTemplate. Unable to process template language expressions in action 'HTTP' inputs at line '0' and column '0': 'The template language function 'base64ToString' was invoked with a parameter that is not valid. The value cannot be decoded from base64 representation.'.

 

Has anyone been able to successfully get files from Salesforce, whether by REST or other means?

 

JColvin_0-1678224045051.png

 

Categories:
I have the same question (0)
  • Verified answer
    JohnColvin Profile Picture
    64 on at

    After much pain and anguish, I found that the issue was the formatting of the URI in the HTTP action. If I formatted the HTTP action like this...

     

    JColvin_0-1678295378743.png

     

     

    ...I kept getting the "invalid template" error. But once I put the URI into a variable, it started working!

     

    JColvin_1-1678295378724.png

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard