Tip #814: Setting Regarding field in Microsoft Flow

When you use Microsoft Flow to create a Dynamics 365 activity record, e.g. task, it’s a good practice to relate the activity to another record by setting up Regarding field.

Use dynamic values and drop the related record into the Regarding box, right? If you do just that, your flow may fail with the following error

Body
{
  "status": 400,
  "message": "Ambiguous binding is present. 
             Resolve by sending lookup_type property.",
  "source": "127.0.0.1"
}

Aha! – you say, I noticed there is a Regarding Type field right next to Regarding so I just set that one and be done. But what do you need to set this field to? incident? 112 (entitytypecode value)?

Under the hood Microsoft Flow uses Web API to communicate with Dynamics CRM and, sadly, the decision was made to use plural names in Web API. So the correct value is incidents.

Set regarding field in Microsoft Flow

Task will be created, linked to the case, and they will live happily ever after.

Tweet about this on TwitterShare on Facebook0Share on Google+0

Leave a Reply

Your email address will not be published. Required fields are marked *