Skip to main content

Notifications

Announcements

No record found.

Customer Service forum

Is it possible to call a web resource (Jscript) in a process workflow ?

(0) ShareShare
ReportReport
Posted on by 45

To simplify a two step process, I am trying to see if the webresource (java script) I use in a form can be invoked as a step within a process that runs on create (and on demand) of a record. Any thoughts if this is possible ? Could not immediately locate an option in the process steps or 'run action' option.

1805.pic.png

PS : Found many forum questions around using process flow in a Jscript, but not other way around :) 

Categories:
  • SudhirPr Profile Picture
    SudhirPr 45 on at
    RE: Is it possible to call a web resource (Jscript) in a process workflow ?

    Thanks - Rocker and TIA.

    Did one workaround which helped reduce one save event - repeated the websource to run on the form on save event. Should do for now... Thanks !

  • Verified answer
    Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: Is it possible to call a web resource (Jscript) in a process workflow ?

    No you can not but you can do same operation by creating workflow activity in C#.

  • SudhirPr Profile Picture
    SudhirPr 45 on at
    RE: Is it possible to call a web resource (Jscript) in a process workflow ?

    Is it easy to create / run a plugin ?

    docs.microsoft.com/.../tutorial-write-plug-in

    looks very complicated - - not very deep into tech / coding...

  • Suggested answer
    T.I.A Profile Picture
    T.I.A 1,760 on at
    RE: Is it possible to call a web resource (Jscript) in a process workflow ?

    Would it be easier to move all of this business logic into a plugin that runs on update of the net amount?

  • SudhirPr Profile Picture
    SudhirPr 45 on at
    RE: Is it possible to call a web resource (Jscript) in a process workflow ?

    I have a calculated field ("Net Amount") based on inputs on a form; and a Jscript updated field that converts the "Net Amount" into words and saves on another field in the form. Now literally, I need to save the record three times, to get the job done. First normal (create &) save for the "Net Amount" to populate; then the amount to words (since it is dependent on the calculated field) and then save again to save the words convertion .. !

    My thought is to plug the Jscript into a different process that already runs on create and save. Hope this clarifies. Thanks !

  • T.I.A Profile Picture
    T.I.A 1,760 on at
    RE: Is it possible to call a web resource (Jscript) in a process workflow ?

    What is your scenario if you don't mind me asking?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans