When I try to configure a CRM record to SharePoint list item, an error happened when the field(s) used in the flow steps are null value in CRM.
So is there any way to avoid the error and handle this situation? will the '?' null operator works in the flow?
Error Message:
Yes, technically the null operator ('?') and/or coalesce() function would work, but they require some hand-crafting if being used in the current Flow editor UI.
The workaround is that you can write a raw logicapp expression as long as it evaluates to a string. So for the possibly-null field, instead of using the automatic "Description" token in the UI, you'd write something like:
Desc: @{coalesce(triggerBody()['description'], 'default description text')}
The caveats for falling back to a raw logicapp expresion:
1. Must evaluate to a string
2. Must have a string or character before the @ sign
3. The field will become read-only after the initial save.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
12 | |
11 | |
9 | |
9 | |
6 |
User | Count |
---|---|
26 | |
20 | |
12 | |
10 | |
7 |