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

Notifications

Announcements

No record found.

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)
  • Bassi Profile Picture
    10 on at
    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
     
     
  • Roy_Harper Profile Picture
    7 on at
    Hi Bassi,
     
    Thanks for answering. It's just a simple Excel Template of view All Active Invoices.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans