web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : f7xIhVngdXCaMjnAqB079u
Power Automate - Building Flows
Answered

Delete Fin & Ops record cross company

Like (0) ShareShare
ReportReport
Posted on 31 May 2023 13:08:54 by 49

Hello,

 

I've build a Flow which gets a list of items from Finance & Operations and deletes the records found.

This works as expected until we change the default company of the service account with which the connection was made.

The flow returns"An error has occurred. No resources were found when selecting for update." because it didn't find the records in the company where the service account is currently set up for, even though the Company code (DataAreaID) is included in the record ID we're trying to delete.

 

The 'List items in table' action can be set to cross company, but this is not possible for the 'Delete a record' action.

 

I found a workaround where you change the Company of the service account in the Flow itself, but this could lead to timing issues when multiple companies use multiple flows where this logic is applied.

 

Looking for some inspiration on how to solve with this and couldn't find much on the forums.

Ideally you'd want to be able to set "&cross-company=true" but this seems impossible.

 

I hope someone can inspire me 😊

 

Peter

I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    32,859 Most Valuable Professional on 01 Jun 2023 at 11:11:49
    Re: Delete Fin & Ops record cross company

    Hi @NLPeter,

     

    I would suggest to have a look at the OData feeds for this. That should should support CRUD operations.

     

    And you can append the cross-company query parameter to your URI:

    https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/odata#cross-company-behavior

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard
Loading complete