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)

How to call a JavaScript function from workflow/action

(0) ShareShare
ReportReport
Posted on by

Hi,

Scenario is I have to schedule execution of a JavaScript function daily at 6 pm ,how can I achieve this using workflow/action?Or simply how to call a JavaScript function from workflow/action?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    jlattimer Profile Picture
    24,562 on at

    You can't execute client side code from server side code like a workflow. You'd need to replicate whatever functionality in a different workflow or a plug-in.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Purnima,

    This is not possible using java script  as JavaScript executes client side you can say with UI action, so until and unless you make any action in UI JavaScript code will not trigger .

    As you are using online instance so you can not do using C# console/batch  application which needs server to host .

    So I would suggest to do using workflow , custom workflow .

    Have a look below article to create recurring workflow in dynamics 365 may get help.  -

    www.axpulse.com/scheduling-recurring-workflows-in-microsoft-dynamics-365-crm-cloud

    In addition you can also take advantages of timeout options in the OOB workflow .

    Take a look below article -

    mscrmonline.wordpress.com/.../how-to-set-up-a-crm-workflow-timeout-condition

    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