Skip to main content
Solved

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

  • July 28, 2024
  • 10 replies
  • 320 views
  • Translate All

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.

View original

10 replies

Dipak Nilkanth
Pro III
Forum|alt.badge.img+14

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!

Translate

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

 

Translate

RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+5

@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

Translate

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!

Translate

Forum|alt.badge.img+3

@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.

Translate

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?

Translate

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. 

Translate

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

Got it, thank you @ruchikasharma23 !

Translate

Forum|alt.badge.img+3

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

 

Translate

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

 

Translate