Closed ashleyghooper closed 4 months ago
If you can validate that it works via REST api and not with pysnc, I will investigate more. Otherwise i suggest the following:
The sysapprover
dictionary entry (/sys_dictionary.do?sys_id=aff1bfc0db3322005db1f9361d9619f7
) is a Reference
to the task
table out of box:
task
or table which extends task
sysapproval_approver.sysapproval
role, as the above dictionary entry states it requiressys_log
table for any hintsIf this leads nowhere, I suggest trying NOW support. That being said if it's an issue with this library somehow i'll look into it more
For the record, the issue seems to have been due to requiring additional permissions to update the sysapproval
, document_id
, and approver
columns in the table, which are understandably fairly tightly controlled, probably to avoid potential loopholes in the approval workflow.
Hello, thanks for producing this helpful piece of software. I'm successfully creating change requests and populating most of the fields I need to. However, I also want to add approvals, and when I insert to
sysapproval_approver
, the values I provide for the fieldssysapproval
,document_id
, andapprover
are lost, even though the record is created successfully.I am trying to insert as below (adapted to remove irrelevant details of classes, etc):
If I
print()
the glide record after setting attributes as above, it looks like this:However, the resulting record in the
sysapproval_approver
table looks like this, and no approvals show against the change request record in the web UI.I have confirmed the
sys_id
that is used in thesysapproval
anddocument_id
fields is valid, and refers to the change request in question. I can query it via the REST API like so:Likewise, I can look up the value in the
approver
field against thesys_user
table, and the correct user is returned.