Zoho Leave API invokeurl returns error code 7019 "Missing parameter(s) in the request"

Zoho Leave API invokeurl returns error code 7019 "Missing parameter(s) in the request"

Hi,

I executed this in Zoho Flow to update a Leave Record in Zoho People :-
========================================
UpdateLeaveRecord = invokeurl
[
url :"https://people.zoho.com/people/api/forms/json/leave/updateRecord"
type :POST
parameters:UpdateRecord.toMap()
connection:"internal--zohopeople"
];
========================================

I received the following reply :-
========================================
"response": {
"message": "Error occurred",
"uri": "/api/forms/json/leave/updateRecord",
"errors": {
"code": 7019,
"message": "Missing parameter(s) in the request"
},
"status": 1
}
========================================

An example of the parameters passed in this command (values removed) :-
========================================
{
	"customUpdateLeaveRecord_27": {
		"GCalID": "xxxxxxxxxxxxxxxxxxxx",
		"Employee_ID": "xxxxxxxxxxxxxxxxxxxx",
"DayDetails": { "05-Jul-2021": { "LeaveCount": 0.5, "Session": 1 } }, "Leavetype.ID": xxxxxxxxxxxxxxxxxxxx,
"From": "05-Jul-2021", "Unit": "Day", "ApprovalStatus": "Pending", "Daystaken": 0.5, "Reasonforleave": "", "TeamEmailID": "", "Leavetype": "No Pay Leave", "To": "05-Jul-2021", "Employee_ID.ID": xxxxxxxxxxxxxxxxxxxx,
"DateOfRequest": "16-May-2021" } }
========================================


I obtained the template for the keys and values for Leave record above by executing a GET command and following the formats exactly.

Anyone can assist to highlight what other parameters are required to update a Leave record successfully?

Thanks in advance!

Best regards,


Shahnan

    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方