SharePoint Lists with multiple content types - missing required property
I have 2 content types in the same list:
Content Type A: * Field A (required) * Field B
Content Type B: * Field A (NOT required - in fact should always be empty as it's not relevant for this content type. I tried both not adding this field and making it hidden / optional) * Field C
When I try to send out a Teams message referencing Field A when creating a new Content Type B:
ResponseSwaggerSchemaValidationFailure. The API 'sharepointonline' returned an invalid response for workflow operation 'When_an_item_is_created' of type 'OpenApiConnection'. Error details: 'The API operation 'GetOnNewItems' is missing required property 'body/value/0/Field_x0020_A'.'
How can I tell Flow that it's OK to ignore Field A? Explicitly branching doesn't work either.
I had a similar problem and resolved it by removing direct 'dynamic content' references to the sometimes-missing column. I replaced them with a Concat expression taking the column name and '' as follows: