Custom Fields Values not gettimg set by Create Task API

Custom Fields Values not gettimg set by Create Task API

Hi,
I am trying to set custom fields on task from external platform.
Task is getting created successfully but the custom fields not getting set in Task.
I tried various ways to add custom fields values In Request JSON while sending request along with other paramete.
Task created successfully but custom fields not getting set.


Tryout 1:
var postData={
"name":taskName,
"flag":"internal",
"person_responsible":assignTo,
"priority":priority,
"custom_fields" :{
"UDF_CHAR3":recIntId
}
}
var headersArr= {
"authorization": "Bearer "+accessToken,
"content-type": "application/x-www-form-urlencoded",
"cache-control": "no-cache"
};

Tryout 2:
var postData={
"name":taskName,
"flag":"internal",
"person_responsible":assignTo,
"priority":priority,
"custom_fields" :{
"UDF_CHAR3":recIntId,
                                        "UDF_CHAR1": taskName
}
}
Tryout 3:
var postData={
"name":taskName,
"flag":"internal",
"person_responsible":assignTo,
"priority":priority,
"custom_fields" :[
                                                {
                                                      "UDF_CHAR3":recIntId
                                                },
                                                {   
                                                      "UDF_CHAR1": taskName
                }
                                          ]
}
Tryout 4:
var postData={
"name":taskName,
"flag":"internal",
"person_responsible":assignTo,
"priority":priority,
"custom_fields" :[{
"UDF_CHAR3":recIntId,
                                        "UDF_CHAR1": taskName
}]
}
How should I set task custom fields (2 fields). Its urgent .. please suggest a way.
    • Sticky Posts

    • Announcing the Zoho Projects API

      Today we're excited to announce the API for Zoho Projects where any developer can extend the project management and collaboration capabilities through our APIs and can build their own customized applications for their business needs. We've tried to make the API follow the REST (Representational State Transfer) principles and generate a XML/ JSON object which allows you to access / read / write Zoho Projects data from third-party systems like Google/Yahoo gadgets, web sites, billing & invoicing systems,
    • Have you moved to REST API?

      Dear API Users, The Documentation of our Rest API is available here . All future development will be done to this version. We are deprecating the older API today. Its documentation will no longer be available and we will also be stopping the calls to this API soon. Thanks, Prasanna


          Zoho TeamInbox Resources

            Zoho DataPrep Resources


                Zoho CRM Plus Resources

                  Zoho Books Resources


                    Zoho Subscriptions Resources

                      Zoho Desk Resources

                        Zoho Projects Resources


                          Zoho Sprints Resources


                            Zoho Orchestly Resources


                              Zoho Creator Resources


                                Zoho WorkDrive Resources




                                    Zoho Campaigns Resources

                                      Zoho CRM Resources

                                                    Design. Discuss. Deliver.

                                                    Create visually engaging stories with Zoho Show.

                                                    Get Started Now


                                                      Zoho Show Resources


                                                        Zoho Writer Writer

                                                        Get Started. Write Away!

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

                                                                  有料プランをご利用の方