Skip to main content
Solved

Pushing Notes for time activities, and auto completing time activities when creating

  • July 28, 2024
  • 10 replies
  • 206 views

Forum|alt.badge.img

Hi everyone.

I’m trying to pass a “notes” field in when creating or updating Employee Time Activities. Below is an example of my request:

 

PUT "/entity/Default/22.200.001/TimeEntry"

{
"note": "Some notes",
"BillableTime": {
"value": "01:00"
},
"Date": {
"value": "2024-02-16T06:00:00-08:00"
},
"Summary": { "value": "Hours from Timesheet" },
"EarningType": {
"value": "RG"
},
"Employee": {
"value": "EP00000002"
},
"LaborItem": {
"value": "CONSULTSR"
},
"ProjectID": {
"value": "X"
},
"TimeSpent": {
"value": "01:30"
}
}

The Time Activity gets created, but the notes do not get passed through.

 

Also, I’m trying to run the CompleteTimeEntry action on the PUT "/entity/Default/22.200.001/TimeEntry", but I always get the “Invalid uri structure” error even though I have this as a mapped action:

Any ideas what’s happening?

Best answer by ruchikasharma23

@ryanmiter 
Not able to set/ retrieve note on TimeEntry entity using REST API- This is a known issue and our Engineering team is working on the fix. However, there is no ETA for it yet.
The workaround is to manually set the Notes from UI.

10 replies

DipakNilkanth
Pro III
Forum|alt.badge.img+13

Hi @ryanmiter ,

Could you please try to send note value like this?

e.g. "note": { "value": "" }

 

{
"note": {
"value": ""
},

"BillableTime": {
"value": "01:00"
},
"Date": {
"value": "2024-02-16T06:00:00-08:00"
},
"Summary": { "value": "Hours from Timesheet" },
"EarningType": {
"value": "RG"
},
"Employee": {
"value": "EP00000002"
},
"LaborItem": {
"value": "CONSULTSR"
},
"ProjectID": {
"value": "X"
},
"TimeSpent": {
"value": "01:30"
}
}

Hope, it helps!


Forum|alt.badge.img
  • Author
  • Freshman I
  • July 29, 2024

Hey @Dipak Nilkanth thanks for the suggestion - I tried that but it also doesn’t work. I assumed you would have to do it without the value object because it comes back as a simple string rather than the value object.

 

If I do the following, it still doesn’t push notes through:

 

{
"note": {
"value": "Some notes"
},
"BillableTime": {
"value": "01:00"
},
"Date": {
"value": "2024-07-28T06:00:00-08:00"
},
"Summary": { "value": "Hours from Timesheet" },
"EarningType": {
"value": "RG"
},
"Employee": {
"value": "EP00000002"
},
"LaborItem": {
"value": "CONSULTSR"
},
"ProjectID": {
"value": "X"
},
"TimeSpent": {
"value": "01:30"
}
}

 


RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+4
  • Acumatica Moderator
  • July 29, 2024

@ryanmiter 

Maybe try adding notes directly without “value”, like

"note" : "Some notes"

acumatica - Adding a Notes using WEB API - Stack Overflow

Also, to run/execute action, use POST method:

Execute an Action That Is Present in an Endpoint


Forum|alt.badge.img
  • Author
  • Freshman I
  • July 29, 2024

Hey @RohitRattan88 thanks for responding - please see the original message though, that’s what I was trying initially.

 

For executing an action - thanks for flagging that as well, I changed it to POST and it works like a charm now!


Forum|alt.badge.img+3
  • Acumatica Moderator
  • Answer
  • July 29, 2024

@ryanmiter 
Not able to set/ retrieve note on TimeEntry entity using REST API- This is a known issue and our Engineering team is working on the fix. However, there is no ETA for it yet.
The workaround is to manually set the Notes from UI.


Forum|alt.badge.img
  • Author
  • Freshman I
  • July 30, 2024

@ruchikasharma23 thank you! Just to clarify - I’m able to get the note via API, it’s just setting it that doesn’t seem to work.

Is there a way to keep track of the progress for this?


Forum|alt.badge.img+3

@ryanmiter 
I’ll try to update here once it is fixed. Or you could also create a support request to track the progress. 


Forum|alt.badge.img
  • Author
  • Freshman I
  • August 8, 2024

Got it, thank you @ruchikasharma23 !


Forum|alt.badge.img+3

Hi ​@ryanmiter This issue has been fixed in 2025R1.

 


  • Freshman I
  • March 27, 2025

Hello - is there a way to customize the form PM209100 so back versions would allow editing of the notes?