Skip to main content

Notifications

Announcements

No record found.

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?
  • 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
     
     

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans