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

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,964 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,964 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans