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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Executing RenderTemplate from HTTP Web Request in C#

(0) ShareShare
ReportReport
Posted on by 7
Hi,
 
Apologies for posting it in a non-technical forum.
 
I'm trying to execute the RenderTemplate API of D365 to get the Excel sheet of the records using a fetch XML.
 
It takes Template, FetchXml, QueryApi & QueryParameters as input parameters and gives out an excel file. When I tried to use the same using OrganizationRequest in a console app, it does work as expected. Below is the snip of the same -
 
 
However, when I execute this using an HTTP web request. for which, I'm building its data like below -
 
 
This is giving me a 400 Bad Request error. By adding every parameter separately, I was able to deduce the problem in the last part - QueryParameter. Can anyone help me out figuring out where the problem lies or is there any way to achieve this?
I have the same question (0)
  • Roy_Harper Profile Picture
    7 on at
    Executing RenderTemplate from HTTP Web Request in C#
    Hi Bassi,
     
    Thanks for answering. It's just a simple Excel Template of view All Active Invoices.
  • Bassi Profile Picture
    10 on at
    Executing RenderTemplate from HTTP Web Request in C#
    Hey Harper,
     
    My name is Bassi, I am owner of I4D, gold MS partner and winner twice of MS Latam Partner of the year award, Can you send me a sample of your template? So I can simulate on my enviroment? My e-mail is marcelo@i4d.com.br
     
    Let´s Learn Share and Repeat!
    Bassi
     
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 141

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 132

#3
DAnny3211 Profile Picture

DAnny3211 130

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans