Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Unable to setup a webh...
Finance forum
Answered

Unable to setup a webhook on product create/update in FinOps

Posted on by 10

Hello

Reference: Microsoft Finance & Operations

I am trying to setup a business event or an alert, where whenever a product is created or any field of it is updated, we want to send the notification to an external tool via WebHook.

I tried to setup alerts in Released Product section, but it allows alert on specific field updates, not all fields.
7853.pastedimage1631191553572v1.png

I also tried to setup a webhook plugin through plugin registration tool, but apparently it does not load entities/tables from finops.

https://community.dynamics.com/crm/b/nishantranaweblog/posts/register-a-new-webhook-through-plugin-registration-tool-in-dynamics-365


Please let me know if there is a reliable way to setup webhooks in finops. In addition to products, I have to add webhooks on prices and contracts as well.

Any pointers shall be highly appreciated.

Thanks

  • Verified answer
    Sheikh Sohail Profile Picture
    Sheikh Sohail 6,125 on at
    RE: Unable to setup a webhook on product create/update in FinOps

    Yes, I am referring to the same link, But you can configure it on your local VM, no need to download the VM from LCS. but the rest of the things will be required.

  • waqashassan98 Profile Picture
    waqashassan98 10 on at
    RE: Unable to setup a webhook on product create/update in FinOps

    Are you referring to this:

    docs.microsoft.com/.../business-events-dev-doc

    Please correct me, if I am wrong. I guess I need to download VM from lcs.dynamics.com, and tinker with code in this scenario.

  • Suggested answer
    Sheikh Sohail Profile Picture
    Sheikh Sohail 6,125 on at
    RE: Unable to setup a webhook on product create/update in FinOps

    Hi

    You can create your custom business event and can trigger on insert and update or any other event.

  • waqashassan98 Profile Picture
    waqashassan98 10 on at
    RE: Unable to setup a webhook on product create/update in FinOps

    Ideally I would like to use business events, but I believe that it is lacking some trigger points. i.e. I want to track updates on Product table.

    I don't see any such option in the default business events.

    Edit:

    Is your suggestion for the Business Event Framework, valid for Finops as well, or just for CRM?

  • Suggested answer
    Sheikh Sohail Profile Picture
    Sheikh Sohail 6,125 on at
    RE: Unable to setup a webhook on product create/update in FinOps

    Hey Waqas

    Kindly confirm, either you want to use the business event feature or want to write everything on your own? using the business event feature you can also make the HTTPS call.

    I would recommend you to go with the Microsoft Business event framework and avoid unnecessary customization.

    Please have look

    gfeaxblog.wordpress.com/.../

  • waqashassan98 Profile Picture
    waqashassan98 10 on at
    RE: Unable to setup a webhook on product create/update in FinOps

    Hi

    I want to send messages to http instead of service bus.

    To send messages, I need to add custom triggers for business events, for which I will have to write code (I am not sure where to write that code)

    The custom trigger that I need is --> on update any field of a product, or on adding a new product

  • Suggested answer
    Sheikh Sohail Profile Picture
    Sheikh Sohail 6,125 on at
    RE: Unable to setup a webhook on product create/update in FinOps

    Hi

    As your plugin is reading the data from the service bus. So, please confirm the below items are properly configured.

    Services Bus On Azure Porta?

    End Point for the Business event on Dynamics Finance & Operations is configured?

    Require Business event is Active in  Dynamics Finance & Operations?

    Are you able to send the message to the service bus?

    dynamicsnavax.blogspot.com/.../detailed-guide-on-creating-business.html

  • waqashassan98 Profile Picture
    waqashassan98 10 on at
    RE: Unable to setup a webhook on product create/update in FinOps

    Thanks André for pointing me to the right direction. However, I am not sure how to setup the development environment for X++.

    1. Do I need to install anything other than default Visual Studio?

    2. How do I connect it with our finops account?

    3. How to publish changes?

    Most links I found, they are referring to AOT, but I couldn't find any such option in default Visual Studio installation.

    Sorry for sounding noob, but I am new to .net stack.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 290,186 Super User 2024 Season 2 on at
    RE: Unable to setup a webhook on product create/update in FinOps

    Hi Waqashassan98,

    The link about webhooks you shared is for CRM, this is a different technology compared to F&O. You can add business events with help of a customization to bypass setting up rules for each individual field: docs.microsoft.com/.../business-events-dev-doc

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,186 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,996 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans