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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 419

#2
Vish WR Profile Picture

Vish WR 314

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard