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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Error In IOM Provider Transformer flow

(1) ShareShare
ReportReport
Posted on by 12

I am trying to create a custom provider for order intake.

  1. I have created a provider and create a custom flow that transform my json.

The I activate the provider IOM create the flow that is the copy of my custom flow. IOM created flow run flows in the set where child flow is called named as "IOM Provider Transformer". When I open the flow IOM Provider Transformer flow this flow is also failed and said flowing error is showing "Expression.Error: The field 'accountid' of the record wasn't found."

Please help me to resolve this issue.

FYI: I am creating Walmart Order Intake.

I am using the following articles.

learn.microsoft.com/.../iom-creating-a-provider-and-an-order-intake-power-automate-flow

https://learn.microsoft.com/en-us/dynamics365/intelligent-order-management/lab-create-intake-provider

pastedimage1675955769620v1.png
pastedimage1675955820431v2.png

Thank you

I have the same question (0)
  • RayBennett Profile Picture
    on at

    You need to setup your account or customer mappings

    learn.microsoft.com/.../internal-external-id-mapping

    .

  • AhmedRaza12315 Profile Picture
    12 on at

    Thank your for response.

    I have also setup the mapping

    pastedimage1675956496614v1.png

  • RayBennett Profile Picture
    on at

    Can you share your transformation and sample data with me. If you prefer, you can email bennettray at microsoft.com

    Thanks

  • AhmedRaza12315 Profile Picture
    12 on at

    I am sharing my detail with you and I have also emailed you at bennettray@microsoft.com


    Transformation:

    shared ImportMappingKey = [ account = { [ ExternalRecordKey = [IOMAccountMapping = Source[billingAddress][email]], SelectedFields = {"accountid"} ] }, pricelevel = { [ ExternalRecordKey = [IOMPriceList = "ContosoIOMPriceList"], SelectedFields = {"pricelevelid"} ] }, product = List.Distinct(List.Transform(Source[orderdetails], each [ ExternalRecordKey = [sku = _[sku]], SelectedFields = {"productid"} ])), uom = List.Distinct(List.Transform(Source[orderdetails], each [ ExternalRecordKey = [unit = _[unit]], SelectedFields = {"uomid"} ])) ]; shared TransformSourceData = let leadtime = 5, useWriteInProductEnabled = Source[useWriteInProductEnabled], isDualWriteEnabled = Source[isDualWriteEnabled], orderProducts = Source[orderdetails], billingAddress = Source[billingAddress], shippingAddress = Source[shippingAddress], account = IOM.MapRecord(IOM.MappingTables[account], [IOMAccountMapping = Source[billingAddress][email]]), pricelevel = IOM.MapRecord(IOM.MappingTables[pricelevel], [IOMPriceList = "ContosoIOMPriceList"]), orderheader = Record.FromTable ( Table.SelectRows ( Record.ToTable ( [ ordernumber = Text.From(Source[ordernumber]), name = ordernumber, #"customerid_account@odata.bind" = "/accounts(" & Text.From(account[accountid]) & ")", #"pricelevelid@odata.bind" = "/pricelevels(" & Text.From(pricelevel[pricelevelid]) & ")", billto_city = Record.FieldOrDefault(billingAddress, "billtocity"), billto_stateorprovince = Record.FieldOrDefault(billingAddress, "billtostateorprovince"), billto_country = Record.FieldOrDefault(billingAddress, "billtocountry"), billto_postalcode = Record.FieldOrDefault(billingAddress, "billtozip"), shipto_name = Record.FieldOrDefault(shippingAddress, "firstname") & " " & Record.FieldOrDefault(shippingAddress, "lastname"), shipto_contactname = shipto_name, shipto_line1 = Record.FieldOrDefault(shippingAddress, "street1"), shipto_line2 = Record.FieldOrDefault(shippingAddress, "street2"), shipto_city = Record.FieldOrDefault(shippingAddress, "shiptocity"), shipto_stateorprovince = Record.FieldOrDefault(shippingAddress, "shiptostateorprovince"), shipto_country = Record.FieldOrDefault(shippingAddress, "shiptocountry"), shipto_postalcode = Record.FieldOrDefault(shippingAddress, "shiptozip"), emailaddress = Record.FieldOrDefault(shippingAddress, "email") ] ), each [Value] <> null ) ), orderlines = List.Transform(orderProducts, each Record.FromTable ( Table.SelectRows ( Record.ToTable ( [ productdescription = if useWriteInProductEnabled = true then if Record.HasFields(IOM.MapRecord(IOM.MappingTables[product], [sku = Record.FieldOrDefault(_, "sku")]), "productid") then null else if isDualWriteEnabled = false then Text.From(Record.FieldOrDefault(_, "sku")) else null else null, ispriceoverridden = true, #"productid@odata.bind" = "/products(" & IOM.MapRecord(IOM.MappingTables[product], [sku = Record.FieldOrDefault(_, "sku")])[productid] & ")", #"uomid@odata.bind" = "/uoms(" & IOM.MapRecord(IOM.MappingTables[uom], [unit = Record.FieldOrDefault(_, "unit")])[uomid] & ")", quantity = [quantity], quantityshipped = Record.FieldOrDefault(_, "quantity_shipped"), priceperunit = Decimal.From(Record.FieldOrDefault(_, "base_price")), baseamount = Decimal.From(Record.FieldOrDefault(_, "base_total")), tax = Decimal.From(Record.FieldOrDefault(_, "total_tax")), shipto_name = Record.FieldOrDefault(orderheader, "shipto_name"), shipto_contactname = Record.FieldOrDefault(orderheader, "shiptocontact_name"), shipto_line1 = Record.FieldOrDefault(orderheader, "shipto_line1"), shipto_line2 = Record.FieldOrDefault(orderheader, "shipto_line2"), shipto_city = Record.FieldOrDefault(orderheader, "shipto_city"), shipto_stateorprovince = Record.FieldOrDefault(orderheader, "shipto_stateorprovince"), shipto_country = Record.FieldOrDefault(orderheader, "shipto_country"), shipto_postalcode = Record.FieldOrDefault(orderheader, "shipto_postalcode") ] ), each [Value] <> null ) ) ), salesorder = Record.AddField(orderheader, "order_details", orderlines) in Text.FromBinary(Json.FromValue(salesorder));


    JSON:

    [ { "useWriteInProductEnabled": true, "isDualWriteEnabled": false, "ordernumber": "ExternalContosoOrder025", "billingAddress": { "billtocity": "BELLEVUE", "billtostateorprovince": "WA", "billtocountry": "US", "billtozip": "98007", "email": "test@gmail.com" }, "shippingAddress": { "firstname": "Connie", "lastname": "Vrettos", "street1": "123 Coffee Street", "street2": "Suite 300", "shiptocity": "Redmond", "shiptostateorprovince": "WA", "shiptocountry": "US", "shiptozip": "98052", "email": "test@gmail.com" }, "orderdetails": [ { "sku": "883988211855", "unit": "each", "quantity": 11, "base_price": 12.25, "base_total": 134.75, "total_tax": 20.21 }, { "sku": "cleankit443567", "unit": "each", "quantity": 21, "base_price": 20.00, "base_total": 420.00, "total_tax": 63.00 } ] } ]

  • RayBennett Profile Picture
    on at

    When you activated the provider, did you assign it to the Contoso Mapping Group? Can you screenshot the active provider?

  • AhmedRaza12315 Profile Picture
    12 on at

    Yes I have assigned the contoso mapping group during activating the provider.

  • Prem Singh Profile Picture
    65 on at

    I had a similar issue earlier, I tried mapping and everything as well but for some reason, it is not working on the trial environment. When I tried the same in sandbox, it worked.

  • AhmedRaza12315 Profile Picture
    12 on at

    Prem Singh

    Yes provider is working for me. Do you have any idea of Walmart US provider?

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans