1
votes

I'm creating a Power Automate flow that will create an opportunity in Dynamics CRM if certain conditions are met when a record is created in a SharePoint Online List, but the Create New Record block for Dynamics asks as mandatory the Currency field.

I have tried typing USD, US Dollar, Empty, etc., and none of them works. Tried different approaches to that field. Even created a new currency in Dynamics called DOL and its the same.

How could I fix this?

This is the error message I'm getting.

{
  "_transactioncurrencyid_value": "DOL",
  "_customerid_value": "A",
  "_customerid_type": "Bronze",
  "name": "Bakery",
  "budgetamount": 900,
  "_parentcontactid_value": "Saul",
  "description": "CCC",
  "_ownerid_value": "Stefano"
}

{
  "status": 400,
  "message": "Invalid lookup_type value",
  "source": "dynamicscrmonline-eus2.azconn-eus2.p.azurewebsites.net",
  "debugInfo": "clientRequestId: f80d8df5-d57c-46f8-83a1-8b579352aa5b"
}
1

1 Answers

1
votes

We call that lookup datatype (aka EntityReference) which is a foreign key of another entity (aka Database table). The expected value to be passed on that payload is GUID.

"_transactioncurrencyid_value":"9C72D8B6-AD23-E511-80F7-C4346BAC59AC",

You have to find out that Key GUID for that DOL or USD currency record. Same applies to parentcontactid and ownerid

enter image description here