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 :
Service | Customer Service, Contact Center, Fie...
Answered

Call a C# method from javascript

(0) ShareShare
ReportReport
Posted on by 5

Hi,

Is it possible to write a method on C# (that calls an external web service, for example) nd then have the ability to call your custom c# method from javascript?

Kind Thanks!

I have the same question (0)
  • Verified answer
    Ankit Sabharwal Profile Picture
    on at

    Hy Partner,

    Can you please elaborate the details what you want to achieve.

    As far as Dynamics 365 is concerned , you cannot call a C# method directly from the plugin. Though you can achieve it by calling an action through JavaScript  and then action call the plugin.

    In plugin you can write your custom logic and achieve your business objective.

    pravinpawarweb.wordpress.com/.../ this blog may help you.

    Hope this helps.

    Best regards,

    Ankit

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Community Member Profile Picture
    on at

    You can do that by write a custom Service "WCF, or APi" then you can call it via javascript , or you can work with Custom activity in Action Process , then you can work with it by Odata

  • Jamie N Profile Picture
    5 on at

    Thanks for the direction.  I am relatively new to the platform.  I was just looking for geneeral direction, which you have provided perfectly.  Thank You!

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 61 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 52 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 42 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans