web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans