Australia: conditional Knowledge update, attachment concurrency and durable operation proof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello,
We are evaluating a scoped Knowledge integration on Australia using fictitious Draft articles. Automated writes remain disabled while we establish supported concurrency guarantees.
The Australia GlideQuery reference documents `where()`, `withAcls()` and `updateMultiple()` returning `rowCount`. The scoped GlideRecord method with the same name has a different return contract. We understand that a count alone is not a transaction receipt.
Could you point us to the supported Australia APIs/documentation for these requirements?
1. Are a GlideQuery revision predicate and its update evaluated atomically at database level? Does the ACL-aware path enforce the contributor's table and field write ACLs, and what exactly does the returned count acknowledge?
2. What supported mechanism also protects against concurrent attachment addition, deletion, binary replacement and attribute changes through standard UI/API/platform writers, including changes restored to their original value (ABA)?
3. Can the article update and an immutable operation record commit or roll back together? We need read-only recovery after a lost response, with an operation ID bound to actor, article and request digests, rather than automatic retry or body equality alone.
If this complete boundary is not supported, which narrower contract is supported? We are not looking for undocumented Glide internals, admin fallback, disabled ACLs/workflows or global policy changes.
References:
- https://www.servicenow.com/docs/r/australia/api-reference/server-api-reference/GlideQueryGlobalAPI.h...
- https://www.servicenow.com/docs/r/australia/api-reference/server-api-reference/c_GlideRecordScopedAP...
Thank you,
PPFTEC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi,
This took a while for me to parse, mostly because the questions approach ServiceNow like a low-level distributed database (with expectations of distributed transactions, two-phase commits, and low-level table locks) rather than an enterprise application platform.
Because we work through the scoped application layer and never interact directly with the database engine, many of the low-level primitives you are asking about simply aren't exposed.
It's important to note that GlideQuery is just a wrapper for GlideRecord. It used the same capabilities but performs some additional validation within the JavaScript layer to fail fast, and add a style of type-safety.
To answer your specific points in plain terms:
Atomic Write - Use of updateMultiple does execute a single SQL transaction. However because ServiceNow has multiple application nodes and concurrent database connections, it's important to consider that the time it takes for your JavaScript code to query the database and then update the database within one node could mean that another node updates the same record you're updating. There is no row locking or mutexes in a scope app.
ACL validation at the row level will reject updating a record, but at the field level, if the user doesn't pass an ACL then this will be silently dropped.
There is no native lock or cascade revision tracking between the attachment and related record. You can now (as of a few releases) add attributes to an attachment which could be used for such use case
ServiceNow doesn't provide a mechanism for atomic/transaction level commits across multiple records
For all of the above, the general principal in SN would be to have the source system post the data, stage it, and then process it in a deterministic order based on a stateful value or identifier