Click or drag to resize

SiteDefinitionsLocalizationServicesGetWorkstate Method


Retrieves a single Workstate's localization

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.5.94
Syntax
public XHRServiceResponseGeneric<SiteDefinitionItemLocalizationData> GetWorkstate(
	SingleSiteDefitionLocalizationGetInput data
)

Parameters

data
Type: SingleSiteDefitionLocalizationGetInput

Workstate Id and its current name

Examples
Sample JSON input
JavaScript
{
    "data": {
        "id": "WorkStates/38",
        "label": "Workflow State Name:"
    }
}

Return Value

Type: XHRServiceResponseGenericSiteDefinitionItemLocalizationData

Localization of the given Workstate

Examples
Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "children": null,
        "descriptionField": {
            "label": "Workflow State Description:",
            "original": "",
            "target": ""
        },
        "nameField": {
            "label": "Workflow State Name:",
            "original": "Publishing",
            "target": ""
        }
    }
}
Remarks

If Workstate doesn't exist, returns error status

If Localization for Workstate doesn't exist, all the "isDone" field of transition entries are "false"

See Also