Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Fire custom .JS without having to open the form after record is created from integration

(0) ShareShare
ReportReport
Posted on by 160

Good Morning,

I have a scenario where I need custom .JS to fire after record is created via integration without having to open the form.  Right now the only way I can run it is to have it as on onload/onsave form property but this requires me to manually open the record and save. What I'm attempting to do is have it fire after the record is created via integration so the user does not have to manually open the record. I've tried putting the JS as an editable grid event, but is not working. Any recommendation would be appreciated!! Thanks

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,959 Super User 2024 Season 1 on at
    RE: Fire custom .JS without having to open the form after record is created from integration

    Hi,

    Not possible to call javascript function from workflow step.

  • kcpacker85 Profile Picture
    kcpacker85 160 on at
    RE: Fire custom .JS without having to open the form after record is created from integration

    Thanks Bipin, I need to keep the Javascript code. Do you know if it's possible to call my Javascript function as a step in a workflow?

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,959 Super User 2024 Season 1 on at
    RE: Fire custom .JS without having to open the form after record is created from integration

    Hi,

    Unfortunately client side code will not trigger when you create record from integration.

    What you can do is to replace Javascript code with plugin /workflow/Business Rule with scope Entity

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans