Bypass Power Automate Flows in Dynamics 365 Data Load Process

30 May 2023
KingswaySoft Team

Your Dynamics 365 system might be powered with many Power Automate flows in order to facilitate an event-triggered integration or process automation. When using API-based tools to load data into Dynamics 365, these Power Automate flows are generally automatically fired. This can create a couple of issues:

  • Such Power Automate flows can create some overhead for the data load process, which could include some unnecessary record creation or process automation.
  • They may incur some cost to you or your client as Power Automate is generally a usage-based subscription. The cost can be substantial when you work with a large number of records in your data load process.

The good news is that Microsoft Dynamics 365 API team has recently introduced a new platform feature designed to bypass Power Automate flows when the feature is enabled in SDK service calls. This feature is delivered under the SuppressCallbackRegistrationExpanderJob feature, according to Microsoft's online documentation.

  • If you are a Dynamics 365 developer, the following would be the way to enable the feature when working with the organization service call - we should note that this code snippet is based on the sample code provided by Microsoft, in the documentation above, with some minor adjustments.
    var account = new Entity("account");
    account["name"] = "Adventure Works";
    
    var request = new CreateRequest
    {
        Target = account
    };
    request.Parameters["SuppressCallbackRegistrationExpanderJob"] = true;
    orgService.Execute(request);
  • When working with the WebAPI service endpoint, the option should be inserted as an HTTP header.
    POST [Organization URI]/api/data/v9.2/accounts HTTP/1.1
    OData-Version: 4.0
    OData-MaxVersion: 4.0
    Content-Type: application/json
    Accept: application/json
    MSCRM.SuppressCallbackRegistrationExpanderJob: true
    
    {
        "name": "Adventure Works"
    }

It is worth noting that the feature was added in a manner that is almost identical to the the BypassCustomPluginExecution platform feature previously available, which makes the development significantly easier than if it had been done differently.

With the feature available, our team was able to enable such support in our recent v23.1 software releases, thanks to the information shared by the Microsoft team via the online documentation page and other channels. For reference, the feature is part of our Process Optimization feature group in our CRM/CDS Destination Component. When enabled, it should bypass your Power Automate flows.

It is worth mentioning that you will need to have our v23.1 release or above installed to be able to see and leverage the feature. We should mention that it was initially released as a preview feature in our v23.1 release.

The feature is straightforward to use, as you can see from the screenshots above. It is a single checkbox to enable the feature. Once enabled, your data load process should not trigger the firing of your Power Automate flows. We hope you find this useful for your large-scale data integration and migration.

 About 

Archive

October 2024 1 September 2024 1 August 2024 2 July 2024 1 June 2024 1 May 2024 1 April 2024 2 March 2024 2 February 2024 2 January 2024 2 December 2023 1 November 2023 1 October 2023 2 August 2023 1 July 2023 2 June 2023 1 May 2023 2 April 2023 1 March 2023 1 February 2023 1 January 2023 2 December 2022 1 November 2022 2 October 2022 2 September 2022 2 August 2022 2 July 2022 3 June 2022 2 May 2022 2 April 2022 3 March 2022 2 February 2022 1 January 2022 2 December 2021 1 October 2021 1 September 2021 2 August 2021 2 July 2021 2 June 2021 1 May 2021 1 April 2021 2 March 2021 2 February 2021 2 January 2021 2 December 2020 2 November 2020 4 October 2020 1 September 2020 3 August 2020 2 July 2020 1 June 2020 2 May 2020 1 April 2020 1 March 2020 1 February 2020 1 January 2020 1 December 2019 1 November 2019 1 October 2019 1 May 2019 1 February 2019 1 December 2018 2 November 2018 1 October 2018 4 September 2018 1 August 2018 1 July 2018 1 June 2018 3 April 2018 3 March 2018 3 February 2018 3 January 2018 2 December 2017 1 April 2017 1 March 2017 7 December 2016 1 November 2016 2 October 2016 1 September 2016 4 August 2016 1 June 2016 1 May 2016 3 April 2016 1 August 2015 1 April 2015 10 August 2014 1 July 2014 1 June 2014 2 May 2014 2 February 2014 1 January 2014 2 October 2013 1 September 2013 2 August 2013 2 June 2013 5 May 2013 2 March 2013 1 February 2013 1 January 2013 1 December 2012 2 November 2012 2 September 2012 2 July 2012 1 May 2012 3 April 2012 2 March 2012 2 January 2012 1

Tags