Skip to content
Reference

Check platform integrations before release

Verify role presets, Agent actions, cross-App references, reports and widgets with production user permissions.

Check platform integrations before release

A working App screen can still leave gaps in role setup, Agent actions, pickers in other Apps, and reports. Before submitting, identify the platform features your App will offer and connect each applicable SDK declaration to a working route or provider. Verify both fresh installs and upgrades with ordinary user permissions.

Use nexia-cloud-os/sdk-laravel for PHP declarations and @nexia/sdk/host for screen components. Check the App's locked package versions and the target Core and App runtime capabilities before adopting a feature. Start using the SDK

Installation and access

CheckWhat to prepareWhat users see if it is missing
Role presetsFor an App with user-facing permissions, register them through PermissionContribution and provide role presets by job responsibility through RolePresetContribution::rolePresets(). Bundle the minimum App-owned permissions and specify their recommended organization scope and eligible users. Confirm that an administrator can adopt the preset, compose a role, and assign it to a user. Permissions and roles · Role Preset SDKOrdinary users can lose features that were visible to a development administrator. Without a preset, the administrator must assemble the role permission by permission.
Server-side accessEnforce read and execution permissions and legal entity, operating unit, and record scope in APIs and policies. Check direct requests as well as menu, button, and widget visibility. Permissions and rolesUsers can be denied access to their own organization's work or reach data directly that the UI hides.
Installation defaultsRegister essential reference data and settings in a versioned installation seeder. Populate missing defaults on installs and upgrades while preserving customer edits. Required installation contentWork that succeeded with demo data stops on a fresh tenant, or an upgrade overwrites customer settings.

An inventory App can offer separate presets for staff who view stock and staff who record receipts and issues. When an administrator adopts a preset, the administrator composes and assigns the role to grant access.

Platform discovery and execution

CheckWhat to prepareWhat users see if it is missing
Agent navigation and form entryUse NxLinkButton with a registered internal href for controls that open create or edit forms. To let an Agent fill unsaved values, wire the generated form contract with binding={{ effect: 'draft' }} on NxFormSection and a fieldKey on each supported NxFormField. Add a menu destinationA user can follow an NxButton click handler, but the Agent may have no discoverable destination. The Agent cannot fill a field whose draft contract is missing.
Business APIs Agents may executeUsers press the visible save or submit button. To also let Agents run operations such as submit or cancel, expose the protected App API in ResourceDescriptor::$actions as an ActionDefinition with ActionPlacement::Agent. Match its permission, route and method, input, and read or mutate effect. Use ResourceMutationDescriptor for ordinary create and update input. Agent writes run on the server after user confirmation. ActionDefinition SDKUsers can complete the operation in the App, but the business action is absent from the Agent catalog.
Menus, search, and shared screensWire the actual route and component, then declare menu permissions and searchable. For record search, check public Resource metadata, searchable fields, and index support. Make an App discoverable in searchA direct URL works, but the menu or Command Palette cannot find the screen, or records are absent from search results.
Cross-App Resource referencesIn the consuming App, store the target's public ID and declare its Resource key in ResourceDescriptor::fieldSchema. For a picker, use resource_reference with the allowed targets, selection purpose, and permissions. In the owning App, register the required lookup and search capabilities through a Resource Reference provider and apply user, organization, and record access checks. Reference another App recordA screen can show a stored name or ID while another App's picker cannot find or resolve the record. The platform lacks a confirmed cross-App relationship when it is undeclared.
Resource Composition and reportsDeclare composition metadata in fieldSchema for fields that shared analysis can use. Where a supported source needs more than the default read path, connect CompositionQueryContribution to a provider that applies authorization. Register App reports through ReportContribution and use queries supported by the managed runtime. Choose a supported report query · Composition SDKFields and totals from the App's own screens are unavailable in shared reports, or the runtime rejects an unsupported query.
Dashboard and profile widgetsRegister the widget, its component, and required visibility permission. Connect custom dashboard reads to a registered query source and specify the required subject context and permission for profile slots. Apply current user access and legal entity, subject, and row scope to the data read as well. Include widgets in the default placement when they should appear on the App dashboard by default. Add an App report to a dashboard · Place an App widget in a host slotInformation visible in the App is missing from the widget picker or profile. A saved placement can expose data after access is revoked if the data read lacks its own permission check.

For example, an asset assignment referring to employment stores the employment public ID and declares the target Resource. For a fixed-target relationship hint in Agent SQL, a string field can declare reference_resource_key. For a report relationship, verify that the catalog exposes the resource_reference field or a reference field published by the provider. A picker also needs search and authorized lookup from the owning App. Reference another App record

Additional workflow integrations

CheckWhat to prepareWhat users see if it is missing
Approval and Business ProcessRegister Approval documents, forms, and bindings or Business Process start and work contracts. Connect a real entry point and App operation through to the final business state. Connect an App operation to Approval · Run a Note operation in Business ProcessAn App record cannot enter Approval or Business Process, or completion never reaches the App.
Events and notificationsWhen another feature depends on a state change, declare the event contract and record publication with the business write. Consumers must handle repeated delivery safely. For notifications, register the category and intent and connect them to actual publication. Handle events and asynchronous work · Publish App notificationsThe record saves, but follow-up work never starts or recipients get no notification.
Import and exportDeclare transferable columns and read scope. Connect imports that require business validation to an App-owned processing path. If the App offers a Data Center job, declare it in resources/data-migrations.json. Import and export Resource dataUsers can process one record at a time in the App, but the resource or job is absent from shared transfer or Data Center.
Tenant setupTo guide customer administrators through required configuration in shared Setup, register a task through SetupTaskContribution. Connect an evaluator that reads the completion condition and a real settings screen protected by permissions. Setup Task SDKAdministrators can open the settings page but cannot see required preparation or its completion in shared Setup.

Confirm before submitting

  1. Once the sandbox is ready, open the actual consuming screen or tool. Confirm that it discovers the declaration and can complete the operation. If an entry is missing, check the manifest's contribution location, registration keys, prepared catalog, and SDK and runtime compatibility. Troubleshoot App contribution discovery
  2. Compare an authorized user, a user scoped to another organization, and a user without access. After revocation, reopen saved widgets and reports and repeat the Agent or API request. For cross-App references, also try an inactive provider App and a missing record.
  3. Check roles, defaults, existing references, and saved placements on a fresh install and an upgrade from the previous version. Production consumers pick up declarations through the submitted version's catalog and the version selected for the installation. Release an App
Source of truth: docs/developers/content/en/building-apps/production-readiness.md