Solved

Does anyone have any references to API for Email

  • 9 January 2024
  • 3 replies
  • 41 views

Userlevel 4
Badge

Hello Community,

I have been searching out for APIs related to Emails. Can anyone guide me out where can I find one? or any references.

Thanks in advance.

icon

Best answer by Vignesh Ponnusamy 9 January 2024, 22:47

View original

3 replies

Userlevel 4
Badge

I have been trying but it displays the following error, highlighted in red (Task screen)
{
    "id": "ebe8fad0-d7ae-ee11-835b-06241492aeb4",
    "rowNumber": 1,
    "note": {
        "value": ""
    },
    "error": "Inserting  'Activity' record raised at least one error. Please review the errors.",
    "Body": {},
    "Category": {
        "value": "Green"
    },
    "CompletedAt": {},
    "CompletionPercentage": {
        "value": 0
    },
    "CreatedByID": {
        "value": "Pra"
    },
    "CreatedDateTime": {
        "value": "2024-01-09T10:14:05.2996104+00:00"
    },
    "DueDate": {},
    "Internal": {
        "value": true
    },
    "LastModifiedDateTime": {
        "value": "2024-01-09T10:14:05.2996104+00:00"
    },
    "NoteID": {
        "value": "ebe8fad0-d7ae-ee11-835b-06241492aeb4"
    },
    "Owner": {
        "error": "'Owner' cannot be empty."

    },
    "Parent": {},
    "ParentSummary": {},
    "Priority": {
        "value": "Normal"
    },
    "RelatedEntityDescription": {},
    "RelatedEntityNoteID": {},
    "RelatedEntityType": {},
    "StartDate": {},
    "Status": {
        "value": "Open"
    },
    "Summary": {
        "value": "Test"
    },
    "WorkgroupID": {},
    "custom": {},
    "_links": {
        "self": "/entity/Default/22.200.001/Task/ebe8fad0-d7ae-ee11-835b-06241492aeb4",
        "files:put": "/entity/Default/22.200.001/files/PX.Objects.CR.CRTaskMaint/Tasks/ebe8fad0-d7ae-ee11-835b-06241492aeb4/{filename}"
    }
}

Userlevel 4
Badge

For the Owner we have been using value as - Alberto Jimnez - from the demo data. Also tried to enter the Employee ID but displays the same error. How to resolve this?

Userlevel 7
Badge +4

Hi @Harry,

You can try using Contact ID in the Owner field. Below is the option to add Contact ID to the field selector, from where you can check the Contact ID of the Owner,

 

 

Request Method: PUT

Request URL: <<URL>>/entity/Default/23.200.001/Task

Request Payload:

{
"ParentSummary": {
"value": "Test Two"
},
"Summary": {
"value": "Test Two"
},
"Owner": {
"value": "3219"
}
}

Hope that helps.! Good Luck,

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved