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 / todo connector - Creat...
Power Automate
Answered

todo connector - Create tasks/to-do

(0) ShareShare
ReportReport
Posted on by 11

Hi,

I am getting an error from the Add a to-do actions saying that the first parameter should be an integer.  I am not sure to what it refers.. The first parameters I see is 

      "folderId": "@outputs('Create_a_to-do_list_(V2)')?['body/displayName']",
which is a string as stated here https://learn.microsoft.com/en-us/connectors/todo/

 

InvalidTemplate

Unable to process template language expressions in action 'Add_a_to-do' inputs at line '0' and column '0': 'The template language function 'add' expects its first parameter to be an integer, a float or a decimal number. The provided value is of type 'String'. Please see https://aka.ms/logicexpressions#add for usage details.'.
 
This is the code inside:
{
  "type": "OpenApiConnection",
  "inputs": {
    "parameters": {
      "body/Subject": "testTo-Do",
      "folderId": "@outputs('Create_a_to-do_list_(V2)')?['body/displayName']",
      "body/DueDateTime/DateTime": "@add(utcNow(),90)",
      "body/ReminderDateTime/DateTime": "@add(utcNow(),7)",
      "body/StartDateTime/DateTime": "@add(utcNow())",
      "body/Importance": "Normal",
      "body/Status": "NotStarted",
      "body/Body/Content": "<p><span style=\"white-space: pre-wrap;\">test</span></p>",
      "body/IsReminderOn": true
    },
    "host": {
      "apiId": "/providers/Microsoft.PowerApps/apis/shared_todo",
      "connection": "shared_todo",
      "operationId": "CreateToDoV2"
    }
  },
  "runAfter": {
    "Create_a_to-do_list_(V2)": [
      "Succeeded"
    ]
  }
}

ily83_0-1703172135645.png

ily83_1-1703172143116.png

 

 

Categories:
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @ily83 ,

     

    It should be 

     "folderId""@outputs('Create_a_to-do_list_(V2)')?['body/id']"
    rather than 
     "folderId": "@outputs('Create_a_to-do_list_(V2)')?['body/displayName']"
     
    vxiaochenmsft_0-1703210613664.png

     

    Best Regards,
    Wearsky
  • ily83 Profile Picture
    11 on at

    Hi @v-xiaochen-msft  thanks for your answer. Getting the same error from both 

     

    ily83_1-1703237117334.png

     

    {
      "type": "OpenApiConnection",
      "inputs": {
        "parameters": {
          "body/Subject": "testTo-Do",
          "folderId": "@outputs('Create_a_to-do_list_(V2)')?['body/id']",
          "body/DueDateTime/DateTime": "@add(utcNow(),90)",
          "body/ReminderDateTime/DateTime": "@add(utcNow(),7)",
          "body/StartDateTime/DateTime": "@add(utcNow())",
          "body/Importance": "Normal",
          "body/Status": "NotStarted",
          "body/Body/Content": "<p><span style=\"white-space: pre-wrap;\">test</span></p>",
          "body/IsReminderOn": true
        },
        "host": {
          "apiId": "/providers/Microsoft.PowerApps/apis/shared_todo",
          "connection": "shared_todo",
          "operationId": "CreateToDoV2"
        }
      },
      "runAfter": {
        "Create_a_to-do_list_(V2)": [
          "Succeeded"
        ]
      }
    }
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @ily83 ,

     

    Have you selected the correct connector?

    vxiaochenmsft_0-1703238205496.png

     

    I used to-do(business) in my test.

     

    Best Regards,

    Wearsky

  • ily83 Profile Picture
    11 on at

    yes @v-xiaochen-msft   

    ily83_0-1703239540811.png

    I am using 

     

    ily83_1-1703239607456.png

    Unable to process template language expressions in action 'Add_a_to-do_(V3)' inputs at line '0' and column '0': 'The template language function 'add' expects its first parameter to be an integer, a float or a decimal number. The provided value is of type 'String'. Please see https://aka.ms/logicexpressions#add for usage details.'.

  • ily83 Profile Picture
    11 on at

    Do you have a compose in between?

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @ily83 ,

     

    You used the wrong function here.

    vxiaochenmsft_0-1703475598300.png

     

    If you want to add date, please try addDays function.

    https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#adddays

     

    Best Regards,

    Wearsky

  • ily83 Profile Picture
    11 on at

    Worked thank you.

    ily83_0-1703546568408.png

    Best Regards,

    Ilyas

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
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard