简体   繁体   中英

Currency Field in a Power Automate to create an Opportunity in Dynamics CRM from a SharePoint List

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"
}

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

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM