2 fields are not updating while creating project from crm into projects

2 fields are not updating while creating project from crm into projects

Hi,

I am trying to get api names of custom fields in zoho projects as i have added 2 custom fields.

one is lookup field and other is single line field.

so, from crm using invoke url i get the api names of zoho projects api names of that fields ; but still those fields are not updating.

so, i was trying to update 3 fields; but only one field is updating.


Let me share code as well as info of the invokeurl of the projects.


the use case - get 3 fields from deals module and create project with these fields

deals_record = zoho.crm.getRecordById("Deals",deal_id);
Deal_Name = deals_record.get("Deal_Name");
// info Deal_Name;
Concerned_Service_Interest_area = deals_record.get("Concerned_Service_Interest_area");
info Concerned_Service_Interest_area;
Partner = deals_record.get("Partner").get("name");
//info "Partner" + Partner;
PortalName = "insta24dotcom";
mp = Map();
mp.put("name",Deal_Name);
mp.put("Category",Concerned_Service_Interest_area);
mp.put("Partner Name",Partner);
//info mp;
response = zoho.projects.createProject(PortalName,mp,"crm_zoho");
info response;


and using below i was trying to get api names of projects

// updateprojects = invokeurl
// [
//  type :GET
//  connection:"crm_zoho"
// ];
// info updateprojects;


and this info of updateprojects as below

{
  "projects": [
    {
      "is_strict": "no",
      "project_percent": "0",
      "role": "admin",
      "bug_count": {
        "closed": 0,
        "open": 0
      },
      "IS_BUG_ENABLED": true,
      "owner_id": "775289695",
      "bug_client_permission": "allexternal",
      "taskbug_prefix": "TI7",
      "link": {
        "activity": {
        },
        "document": {
        },
        "forum": {
        },
        "timesheet": {
        },
        "task": {
        },
        "folder": {
        },
        "milestone": {
        },
        "bug": {
        },
        "self": {
        },
        "tasklist": {
        },
        "event": {
        },
        "user": {
        },
        "status": {
        }
      },
      "created_by_zpuid": 1742580000000109001,
      "custom_status_id": "1742580000000020089",
      "milestone_count": {
        "closed": "0",
        "open": "0"
      },
      "updated_date_long": 1653487276219,
      "show_project_overview": true,
      "task_count": {
        "closed": 0,
        "open": 0
      },
      "updated_date_format": "05-25-2022 07:31:16 PM",
      "custom_status_name": "Active",
      "owner_zpuid": "1742580000000109001",
      "is_client_assign_bug": "false",
      "bug_defaultview": "6",
      "billing_status": "Billable",
      "id": 1742580000000176005,
      "key": "IN-18",
      "is_chat_enabled": true,
      "is_sprints_project": false,
      "custom_status_color": "#2cc8ba",
      "owner_name": "Avinash Kumar",
      "created_date_long": 1653487042453,
      "custom_fields": [
        {
          "Category": "Network Services"
        },
        {
          "Partner Name": "Partner Name"
        }
      ],
      "created_by": "Avinash Kumar",
      "created_date_format": "05-25-2022 07:27:22 PM",
      "profile_id": 1742580000000035344,
      "enabled_tabs": [
        "dashboard",
        "projectfeed",
        "tasks",
        "bugs",
        "milestones",
        "calendar",
        "documents",
        "timesheet",
        "invoices",
        "users",
        "reports"
      ],
      "name": "test Insta fixed_var",
      "updated_by": "Avinash Kumar",
      "is_public": "no",
      "id_string": "1742580000000176005",
      "updated_by_id": "775289695",
      "created_date": "05-25-2022",
      "created_by_id": "775289695",
      "updated_date": "05-25-2022",
      "updated_by_zpuid": 1742580000000109001,
      "bug_prefix": "TI7-I",
      "cascade_setting": {
        "date": false,
        "logHours": false,
        "plan": true,
        "percentage": false,
        "workHours": false
      },
      "layout_details": {
        "task": {
          "name": "Standard Layout",
          "id": "1742580000000016011"
        },
        "bug": {
          "name": "Standard Layout",
          "id": "1742580000000035033"
        },
        "project": {
          "name": "Standard Layout",
          "id": "1742580000000020008"
        }
      },
      "status": "active"
    }
  ]
}Functionexecutedsuccessfully

fields which are not updating - Category,  and   Partner Name
as you can see these are under custom fields.

Let me know if you need other details. 



Thanks and Regards,
Sidhant A.








                            Zoho Desk Resources

                            • Desk Community Learning Series


                            • Digest


                            • Functions


                            • Meetups


                            • Kbase


                            • Resources


                            • Glossary


                            • Desk Marketplace


                            • MVP Corner


                            • Word of the Day



                                Zoho Marketing Automation
                                        • Sticky Posts

                                        • Building extensions #7: Create custom widgets for a simplified end-user experience

                                          Discover the benefits of using widgets! We explored the significance of widgets, prerequisites, and the availability of JS SDK methods as part of our previous post. In this post, let's go over a detailed example of using widgets along with certain Zoho
                                        • Building extensions #6: Custom user interfaces with Widgets

                                          Welcome to our post on Widgets for Zoho Projects! In our last post, we explored the significance of the connections feature, showed how to use it, and provided an example use case. In this article, we'll look at the importance of widgets, another feature
                                        • Building extensions #5: Integrating applications with Zoho Projects through Connections

                                          In our last post, we discussed the essential features that a Zoho Projects extension can provide. Starting with this post andin every subsequent post going forward, we'll go through each of those features in depth, one by one, with an example use case.
                                        • Building extensions #4: Fundamental features of a Zoho Projects extension

                                          Hello everyone! Thank you for visiting our Building Extensions series. As part of this series, we've already covered how to use the Sigma cloud editor and the ZET CLI to create, test, and publish extensions for Zoho Projects. You can refer to our earlier
                                        • 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,


                                        Manage your brands on social media



                                                Zoho TeamInbox Resources

                                                  Zoho DataPrep Resources



                                                    Zoho CRM Plus Resources

                                                      Zoho Books Resources


                                                        Zoho Subscriptions Resources

                                                          Zoho Projects Resources


                                                            Zoho Sprints Resources


                                                              Qntrl 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

                                                                      





                                                                      




                                                                          Design. Discuss. Deliver.

                                                                          Create visually engaging stories with Zoho Show.

                                                                          Get Started Now