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)

Can I start an on demand workflow from Dynamics Portal using javascript?

(0) ShareShare
ReportReport
Posted on by 54

I want to track visits to a specific Portal page. And I want this log to be stored as an entity in CRM so I can use it for other CRM purposes.
I was wondering if I can start an on demand workflow from javascript within the Portal to perform this task. Or maybe someone has a better idea...


Thanks a lot!

Elowy.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    You can use entity form action buttons,using which you can call your on demand workflow.

  • Elowy GrootCRM Profile Picture
    54 on at

    Thanks Mahender.

    And is it possible to hide the entity form and 'push' the button from javascript? Otherwise I still need some user interaction to start the workflow.

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    No, I don't think you can do that.

  • Community Member Profile Picture
    on at

    You can use Odata calls to update your crm entity on Dynamics Portal.

  • Elowy GrootCRM Profile Picture
    54 on at

    Thanks, Saad.

    But I think you need the Xrm framework to perform Odata calls from javascript. And as far as I know the framework is not availble in the Portal.

  • Suggested answer
    Community Member Profile Picture
    on at

    you can do it easily using entity lists odata in portals. Refer this:

    arpitmscrmhunt.blogspot.com/.../adxstudio-portal-how-to-use-odata.html

  • Elowy GrootCRM Profile Picture
    54 on at

    Nice! But will this work for updates on entities a well? Or just for GET calls?

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    You can use OData Feed  only for querying you can't use it for entity creation from portal.

  • Suggested answer
    sandeepstw Profile Picture
    4,601 on at

    Hi,

    You can call workflow using JavaScript, please follow this article.

    crmhub.blogspot.com/.../execute-workflow-using-java-script-MS-Dynamic-CRM.html

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Alternatively you can use following approach - uds.systems/.../how-to-run-custom-code-in-dynamics-365-portal

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