web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create Custom Task Lis...
Power Automate
Unanswered

Create Custom Task List Item on SP2016 over DMG

(0) ShareShare
ReportReport
Posted on by 146

I am trying to build a Flow that creates a task list item in SP2016 when a new email arrives in a shared mailbox. Here is the field schema for the custom task content type:

2019-07-30_17-14-23.jpg

The only required field is Task Name.

 

I cloned the whole Task list to SPO (using ShareGate) for testing. The Create Item action works perfectly on the SPO list, but it does not work on the original SP2016 list, run over the DMG.

 

The error I'm seeing is:

{
"status": 400,
"message": "A value must be provided for item.\r\nclientRequestId: fdeae27f-c1f8-4e06-b44f-7348f685e540",
"source": "sharepointonline-eus2.azconn-eus2.p.azurewebsites.net"
}
 
What's strange to me, is that the Create File action seems to require a different configuration when used on the SP2016 list versus the same exact list in SPO.
 
For example, many of the Choice fields will not accept a simple value in the SP2016 action. Flow insists that I pass JSON object into those fields:
 
2019-07-30_17-18-44.jpg
I'm fine with that - I'm comfortable with JSON. The problem is, as soon as I try to pass JSON objects into those fields, I get the error mentioned at the top of this post (A value must be provided for item) and the Flow action fails.
 
I have tried passing values like:
 
 
{
"Value": "Admin"
}
 
as well as: 
 
{
"Id": 0,
"Value": "Admin"
}
I don't understand why it's not working. I have looked at the output for the Create Item (to SPO) and the output for Create Item (to SP2016 over DMG) and they are identical (minus the connectors and a few misc fields).
 
2019-07-30_17-28-25.jpg
I've examined the JSON source for the Flow itself, and that looks fine, too. The only difference between the two Create Item actions are the connections.
 
The only way I can get the Create Item action to work over the DMG to SharePoint 2016 is to strip out all non-required values, passing a value only for the Task Name - not super helpful.
 
I have tried deleting and recreating the Create Item action. I have tried recreating the entire Flow. It's the same error each time.
Categories:
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @jake ,

     

    I have tested on my side. If you are configuring the choice field, you can directly select the corresponding option, or directly click Enter custom value to manually enter the corresponding choice value.

    103.PNG

     

    Best Regards,

  • jakeMannion Profile Picture
    146 on at

    Thank you for responding.

     

    Unfortunately, that only works for me if I Create Item on the test list in SPO. If I try to do it with the actual list in SP2016, Flow wants me to input JSON, and won't let me save.

     

     

    2019-07-31_18-07-49.jpg2019-07-31_18-08-25.jpg

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard