Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Can I Call web Resource from Workflow or Custom Workflow

Posted on by 556

Hi Expert,

Can we call web resource from workflow or custom workflow  ??????

*This post is locked for comments

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,804 on at
    RE: Can I Call web Resource from Workflow or Custom Workflow

    Hi Vikash,

    JavaScript usually runs on client side while workflow runs on server side.  While it is possible to call a custom action which then triggers a workflow from JavaScript, other way around is not possible easily.

    The only way I have experimented in the past to do something similar is using SignalR (https://www.asp.net/signalr), where JavaScript on a CRM Form makes a connection to a SignalR server and listens to messages, and from server side you can call SignalR server, which then passes the message to JavaScript code that is listening to the SignalR server.  From there, you can call whatever you like using JavaScript.

    Hope this helps.

    Cheers,

    Nadeeja

    My Blog: http://dyn365apps.com/ - Follow me on Twitter: https://twitter.com/dyn365apps

    LinkedIn: https://www.linkedin.com/in/nadeeja

  • vikash sharma Profile Picture
    vikash sharma 556 on at
    RE: Can I Call web Resource from Workflow or Custom Workflow

    No.

  • Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Can I Call web Resource from Workflow or Custom Workflow

    Hi Vikash Sharma,

    Please refer the following discussion. Hope this will clear your doubt.

    stackoverflow.com/.../trigger-a-jscript-webresource-with-a-workflow-on-dynamics-crm

  • ansrikanth Profile Picture
    ansrikanth 3,115 on at
    RE: Can I Call web Resource from Workflow or Custom Workflow

    What do you mean by Calling a web resource ?? what is your web resource and why do you want to call it in Workflow ? Is that some sort of XML data ?

  • vikash sharma Profile Picture
    vikash sharma 556 on at
    RE: Can I Call web Resource from Workflow or Custom Workflow

    I have tried many ways to call but i unable to call javascript.

    Please reply ?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans