Salesforce

ServerLastAccessStatus (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

ServerLastAccessStatus (Magic xpa 2.x)

Returns the status of the last access to the server.

Syntax:

ServerLastAccessStatus()

Parameters:

None

Returns:

Numeric:

0 – Success

1 – Metadata files are not synced

2 – Server is unavailable (either on startup or because the user clicked No in the retry dialog box)

3 – The server could not serve the request (upon server errors, such as a license error)

4 – The context is no longer available

5 – The Studio cannot serve the request (when the Studio is opened in Online Deployment mode and the application was started in Offline mode)

6 – When the client skips the connection to the server because the ConnectOnStartup execution property is set to N (Since version: 2.4b)

Usages:

The function can be used:

  • As part of the flow, for example to show a message after a failed Call operation.

  • In the Unavailable Server event to notify the user about the problem.

Note:

The value will remain until the next server access.

If the metadata was not synced, the future server accesses are ignored, so the function will always return the same error code.

Since version:

2.4

Reference
Attachment 
Attachment