Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Portals: Is it possible to call a plugin/workflow from a button and wait for the response and show the message from js/wf/plugin?

Posted on by 290

Hello Guys!

I would like to to call a plugin/workflow from a button on Entity form and wait for the response and show the message in Client side? Is this supported?

Right now, I can see that only plugin can return the generic error message... I would like to show the message based on the response either from plugin/wf or javascript

BR,

Miha

*This post is locked for comments

  • michigan Profile Picture
    michigan 100 on at
    RE: Portals: Is it possible to call a plugin/workflow from a button and wait for the response and show the message from js/wf/plugin?

    As far as I know yes.

    We're using two versions of portal. In on premise version plugin errors doesn't work despite setting is inserted. But it works OK in online version if plugin errors are enabled.

    Best Regards,

    M

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Portals: Is it possible to call a plugin/workflow from a button and wait for the response and show the message from js/wf/plugin?

    Hi Matej Mlinšek,

    Did you still need to have Site/EnableCustomPluginError set to True in Site Setting for this to work? Thanks.

  • michigan Profile Picture
    michigan 100 on at
    RE: Portals: Is it possible to call a plugin/workflow from a button and wait for the response and show the message from js/wf/plugin?

    portalerror.png

    Helloo, I am developing plugin for duplicated account prevention for records created from portals entity form. So I tried again to show plugin errors on portal. Now I had more luck. Error was shown successfully.

    Current portal version: Portals 9.0.7.22

    I think custom errors are not working for on premise version of portal, but are working OK on latest online version.

  • Suggested answer
    Justinjose Profile Picture
    Justinjose 2,707 on at
    RE: Portals: Is it possible to call a plugin/workflow from a button and wait for the response and show the message from js/wf/plugin?

    Hi Nandhini,

    If you cant fine, then create the site setting Site/EnableCustomPluginError and set its value to True.

    Thanks

    Justin Jose

  • Nandhini Profile Picture
    Nandhini 115 on at
    RE: Portals: Is it possible to call a plugin/workflow from a button and wait for the response and show the message from js/wf/plugin?

    Hi Ravi,

    I'm using v 8.4.2.21 but unable to find "Site/EnableCustomPluginError"  in site setting to enable plugin error.

    I tried to enable this setting in both dev and trial instance but no luck.

  • Fubar Profile Picture
    Fubar 2,750 on at
    RE: Portals: Is it possible to call a plugin/workflow from a button and wait for the response and show the message from js/wf/plugin?

    Just be aware of the following if you are using the Odata suggestion

    "The OData feed that is published is anonymous and does not have any authorization checks; therefore, it is important not to enable oData feeds for Dynamics 365 data that is unsuitable for anonymous portal access."

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/portals/add-webpage-render-list-records#entity-list-odata-feeds

  • michigan Profile Picture
    michigan 100 on at
    RE: Portals: Is it possible to call a plugin/workflow from a button and wait for the response and show the message from js/wf/plugin?

    Not yet. I have invest a lot of my time, but couldn't figure out why it is not working. I am not sure if there is a problem with application or I am doing something wrong. In case you will solve the problem I would be very thankful if you post your soluton to this thread.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Portals: Is it possible to call a plugin/workflow from a button and wait for the response and show the message from js/wf/plugin?

    Hi Miha,

    I am getting same issue on portal (Version - 8.4). Were you able to solve this problem? 

    Thanks,

    Shweta

  • Suggested answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: Portals: Is it possible to call a plugin/workflow from a button and wait for the response and show the message from js/wf/plugin?

    Yup Matej, you are absolutely right.

    XRM model is not yet supported on Portal.

    Also you can cannot communicate with CRM from portal by sending input and collecting output like custom workflow.

  • michigan Profile Picture
    michigan 100 on at
    RE: Portals: Is it possible to call a plugin/workflow from a button and wait for the response and show the message from js/wf/plugin?

    Hi Javed,

    you don't have access to Microsoft Dynamics CRM framework from MS Dynamics CRM Online Portal form. I think XRM is undefined, because Portal has its own framework that is a bit limited. You can build a form within CRM and add button that executes Workflow logic, but I think it is not possible to send output parameter to portals web page.  Please correct me Arpit if I am wrong. :)

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans