FetchXMLBuilder icon indicating copy to clipboard operation
FetchXMLBuilder copied to clipboard

Convert OData to FetchXML

Open rappen opened this issue 2 years ago • 6 comments

OData / Flow ➡ FetchXML.

Get query:

  1. Paste full OData query
  2. Paste one/several parts from Flow Dataverse List rows parameter items

Create FetchXML from this.

Like the same as we have for FetchXML ➡ OData and Flow parameters.

rappen avatar Sep 15 '21 08:09 rappen

It should be possible, but... are people writing queries in OData format first that need to be converted back? Just trying to understand the use-case.

Or is it more like:

  1. Write the query in FetchXML Builder
  2. Convert it to OData and copy it into your Flow
  3. Close FetchXML Builder & don't save the query
  4. Realise you need to edit the query in the Flow and don't want to touch the OData

MarkMpn avatar Sep 18 '21 14:09 MarkMpn

Or easier: From anywhere you find OData (or the Flow List Rows with parameters, not a "full" OData) and start from that, and want to investigate the query in FXB, which is easier than in Flow - or wherever. And who knows why people would need it... 😉

rappen avatar Sep 29 '21 12:09 rappen

In older projects we had xrm.sdk nuget with fetch xml queries and used fetch xml builder + sql 4 cds to verify if something went wrong.

Currently we're using Simple.OData.Client + our custom wrapper on that package to use that type of processing in communication with dynamics. So in our current flow we have only a OData URIs. We use additionally postman/IDE debugging/logs to review our requests that we sent. In my opinion OData-way is the most clean approach (the most minimized queries).

rafek1241 avatar Mar 17 '22 07:03 rafek1241

One use-case I often have is that I create the OData query in FXB to be used in a Cloud flow. Sometimes I get a changed requirement or have to change the request for some other reason. In that case, I would have to adjust the OData manually (merge old with new generated) or rebuild it in FXB to export a new version. If we could automatically convert it to FetchXML, do our changes and convert it back to OData it would save a lot of time.

BenediktBergmann avatar Dec 15 '22 09:12 BenediktBergmann

I would also enjoy this feature for the same reasons

BenBitDesign avatar Apr 20 '23 12:04 BenBitDesign

I would use it to easier inspect the query and make changes to it

roblom avatar Jun 13 '23 19:06 roblom