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.

10 thoughts on “Tip #814: Setting Regarding field in Microsoft Flow

  1. Mohammed Fakhri says:

    How to set torecipients and from field in email activity while creating email record from MS Flow.

  2. Zarko says:

    I am having trouble to create a meeting using Flow, can’t find a way to specify participants. Appreciate any help, thanks in advance.

  3. Anonymous says:

    The email content that is mapped to email activitie’s description box is not parsed. All the content comes in one line. It loses its parsing. eg .

    “Let me know on any Updates. Thanks Much. Regards, ABC”

    when instead actual mail looked like this::

    “Let me know on any Updates.

    Thanks Much.

    Regards,

    ABC”

    How can we retain this ?

Leave a Reply

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