Regarding module name change (Trackers) module

IMPORTANT NOTE - We are using SugarCRM application version 14.0 and in postman we are using its associated Rest version v11_24.

We are not able to CREATE a Record on Trackers module from the Postman but instead of CREATE we are able to perform the GET, UPDATE and DELETE operations and getting desired response.

    If we change module name in postman URL for CREATE Record API from "Trackers" to "SchedulersJobs" we are able to Insert the Record and also we are able to do GET operation and fetch that newly created record with module name "SchedulersJobs", but when we compare this response of GET operation performed with module name "SchedulersJobs" with the response of GET operation performed with module name "Trackers", we observed that the response fields are totally different.

So, Can we say that module name is changed from "Trackers" to "SchedulersJobs" ?

If Yes, then why it is giving totally different response fields if we do GET operation on both "Trackers" and "SchedulersJobs" ? 

Parents
  • Trackers and SchedulersJobs are completely different modules with different fields.

    No module name was changed.

    So you get different responses.

    Tracker records look like this:

            {
                "id": 94,
                "monitor_id": "f27f0860-113c-11ef-8030-54ee7593936c",
                "user_id": "1",
                "module_name": "Accounts",
                "item_id": "6ccfd210-bdbf-11ee-b8d9-54ee7593936c",
                "item_summary": "Air Safety Inc",
                "team_id": "47048b52-bdbf-11ee-8037-54ee7593936c",
                "date_modified": "2024-05-13T17:24:53+02:00",
                "action": "view",
                "session_id": "",
                "visible": true,
                "deleted": false,
                "my_favorite": false,
                "_acl": {
                    "fields": {}
                },
                "_module": "Accounts"
            },

    SchedulersJobs look like this

            {
                "id": "ebe246aa-bdbf-11ee-b78d-54ee7593936c",
                "name": "Hint Register Config Job",
                "deleted": false,
                "date_entered": "2024-01-28T10:25:29+01:00",
                "date_modified": "2024-01-28T10:25:29+01:00",
                "scheduler_id": "ebe01fa6-bdbf-11ee-905b-54ee7593936c",
                "execute_time": "2024-01-28T10:25:29+01:00",
                "status": "queued",
                "resolution": "queued",
                "message": "",
                "target": "class::Sugarcrm\\Sugarcrm\\Hint\\Job\\registerConfigJob",
                "data": "{\"unique_key\":\"4e42bf5738538cbbf6ea86d44cfd944d\",\"site_url\":\"http:\\/\\/localhost\\/sugardev1310\"}",
                "requeue": false,
                "retry_count": null,
                "failure_count": null,
                "job_delay": 0,
                "client": "",
                "percent_complete": null,
                "job_group": "",
                "module": "",
                "fallible": false,
                "rerun": false,
                "interface": true,
                "following": false,
                "my_favorite": false,
                "assigned_user_id": "1",
                "assigned_user_name": "Addi Administrator",
                "assigned_user_link": {
                    "full_name": "Addi Administrator",
                    "id": "1",
                    "_acl": {
                        "fields": {
                            "pwd_last_changed": {
                                "write": "no",
                                "create": "no"
                            },
                            "last_login": {
                                "write": "no",
                                "create": "no"
                            }
                        },
                        "_hash": "6d408abe1708e7afd72eaecf780699c2"
                    }
                },
                "_acl": {
                    "fields": {}
                },
                "_module": "SchedulersJobs"
            },
    

    The field id in trackers is an autoincrement unique field. If you provide a value which is already used you get an error message. If you provide an empty value, the next free id is used.

    Sometimes you get an error error message, sometime not.

    The postman code for an create / POST may look like this:

Reply
  • Trackers and SchedulersJobs are completely different modules with different fields.

    No module name was changed.

    So you get different responses.

    Tracker records look like this:

            {
                "id": 94,
                "monitor_id": "f27f0860-113c-11ef-8030-54ee7593936c",
                "user_id": "1",
                "module_name": "Accounts",
                "item_id": "6ccfd210-bdbf-11ee-b8d9-54ee7593936c",
                "item_summary": "Air Safety Inc",
                "team_id": "47048b52-bdbf-11ee-8037-54ee7593936c",
                "date_modified": "2024-05-13T17:24:53+02:00",
                "action": "view",
                "session_id": "",
                "visible": true,
                "deleted": false,
                "my_favorite": false,
                "_acl": {
                    "fields": {}
                },
                "_module": "Accounts"
            },

    SchedulersJobs look like this

            {
                "id": "ebe246aa-bdbf-11ee-b78d-54ee7593936c",
                "name": "Hint Register Config Job",
                "deleted": false,
                "date_entered": "2024-01-28T10:25:29+01:00",
                "date_modified": "2024-01-28T10:25:29+01:00",
                "scheduler_id": "ebe01fa6-bdbf-11ee-905b-54ee7593936c",
                "execute_time": "2024-01-28T10:25:29+01:00",
                "status": "queued",
                "resolution": "queued",
                "message": "",
                "target": "class::Sugarcrm\\Sugarcrm\\Hint\\Job\\registerConfigJob",
                "data": "{\"unique_key\":\"4e42bf5738538cbbf6ea86d44cfd944d\",\"site_url\":\"http:\\/\\/localhost\\/sugardev1310\"}",
                "requeue": false,
                "retry_count": null,
                "failure_count": null,
                "job_delay": 0,
                "client": "",
                "percent_complete": null,
                "job_group": "",
                "module": "",
                "fallible": false,
                "rerun": false,
                "interface": true,
                "following": false,
                "my_favorite": false,
                "assigned_user_id": "1",
                "assigned_user_name": "Addi Administrator",
                "assigned_user_link": {
                    "full_name": "Addi Administrator",
                    "id": "1",
                    "_acl": {
                        "fields": {
                            "pwd_last_changed": {
                                "write": "no",
                                "create": "no"
                            },
                            "last_login": {
                                "write": "no",
                                "create": "no"
                            }
                        },
                        "_hash": "6d408abe1708e7afd72eaecf780699c2"
                    }
                },
                "_acl": {
                    "fields": {}
                },
                "_module": "SchedulersJobs"
            },
    

    The field id in trackers is an autoincrement unique field. If you provide a value which is already used you get an error message. If you provide an empty value, the next free id is used.

    Sometimes you get an error error message, sometime not.

    The postman code for an create / POST may look like this:

Children