Business Applications, Common Data Service, dynamics 365, Flow, Uncategorized

CDS current environment connector: Filtering attributes for the record created

Let’s say I want trigger some logic when the particular field has been modified on a record.

In this example, I modify a contact Email field and create a Note when it’s been modified.

I picked up a trigger for Create or Update because you can enter Email for a new record or you can just update.

It’s obvious if you’ve ever created any plug-in in your previous life that Filtering attributes is something which is only applicable to Update.

So even when you create a new record without populating Email this Flow will trigger still.

So how do you know if record was created without Email or Email was modified to set to null? If you check the condition for Email eq null it will be true for both cases.

Luckily, we’ve got SDKMessage property on the trigger we we can check to make sure we understand what exactly is going on.

The condition below works for the Email populated on Create or just for Update when Email change is triggered via the Filtering attributes

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s