Hey gang
I’m hacking through some more python code, as per usual
I create workitems for tax preparation appointments based on the company calendar and I would like to add a note to the timelines of these newly created workitems that list out the client’s entities based on data from our tax preparation software.
using the following code, however, I keep getting this error:
'{"error":{"code":"5001","message":"User profile is not the original author of the note"}}'
here’s the code:
headers = {
'AccessKey': ACCESS,
'Authorization': 'Bearer ' + BEARER,
'content-type' : 'application/json',
}
payload = {
"Subject": "testing",
"Body": "body",
"AuthorEmailAddress": my_email_address,
"AssigneeEmailAddress": my_email_address,
"DueDate": date.today().strftime('%Y-%m-%d'),
"Timelines": [
{
"EntityType": "WorkItem",
"EntityKey": "4C7lY7RwMQMV"
}
]
}
data = json.dumps(payload)
r = requests.post(baseUrl + '/v3/Notes', headers=headers, data=data)
any insight y’all might have would be greatly appreciated!