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 :
Microsoft Dynamics CRM (Archived)

C# console app calling javascript function or html page

(0) ShareShare
ReportReport
Posted on by

Hello,

1. I have a C# console app that retrieves records from CRM entities.

2. I have an external html page that uses JavaScript to send data to another website since the website only support json. 

Now I need to somehow pass the record data from the C# console app to a script or html page so I can send those data out.

Does anyone know how this can be done? or can I use JavaScript on my html page to retrieve record data directly from CRM?

Thank you!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    I would suggest you use javascript/webAPI from your html page and retrieve data from CRM. that would be easy and reliable.

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    Since it seems like your web site is external to CRM, I think that maybe the better choice would be either create your own Web Api or Web Services that will get the data that you need from CRM, and provide it to you in JSON format so that you can use it from your HTML/JavaScript code.

    The Console Application would be able to provide you the data and possibly export it to a file that you can read from, but that would not be dynamic/on-demand. The data would only be populated when you run the Console application.

    If you don't have where to create the web api or service, you can host them on Azure (for almost nothing).

    Hope this helps.

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans