Skip to main content
Solved

Does anyone have any references to API for Email

  • January 9, 2024
  • 3 replies
  • 68 views

Forum|alt.badge.img

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.

Best answer by Vignesh Ponnusamy

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,

3 replies

Forum|alt.badge.img
  • Author
  • Semi-Pro II
  • January 9, 2024

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}"
    }
}


Forum|alt.badge.img
  • Author
  • Semi-Pro II
  • January 9, 2024

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?


Vignesh Ponnusamy
Acumatica Moderator
Forum|alt.badge.img+5

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,