cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tyteen4a03
New Member

SharePoint Lists with multiple content types - missing required property

Hi,
 
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.

1 REPLY 1
Mart1
Frequent Visitor

Hi,

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:

  • concat(triggerOutputs()?['body/column_name'],'')

 

I hope this helps.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,229)