Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Sales forum / Executing RenderTempla...
Sales forum
Unanswered

Executing RenderTemplate from HTTP Web Request in C#

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?
Categories:
  • Roy_Harper Profile Picture
    Roy_Harper 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
    Bassi 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
     
     

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,252 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,089 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans