Skip to main content
Solved

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


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
Did this topic help you find an answer to your question?

8 replies

Nilkanth Dipak
Jr Varsity III
Forum|alt.badge.img+7

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
  • 10 replies
  • 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
  • 245 replies
  • 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
  • 10 replies
  • 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+2
  • Acumatica Moderator
  • 56 replies
  • 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
  • 10 replies
  • 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+2

@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
  • 10 replies
  • August 8, 2024

Got it, thank you @ruchikasharma23 !


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings