dms.UpdateStoredQuery

This job allows updating an existing stored query and/or its properties. The query must be passed in DMS query format. The query is converted to the internal format for stored queries. Since the format for stored queries only allows a subset of DMS query possibilities, there are certain limitations. See dms.ConvertQuery.

1. Input Parameters

Name Type Required Description

Flags

INT

Yes

Flags must be 0

QueryID

INT

Yes

ID of the query

[Query]

BASE64

No

Query in DMSQuery XML format

[Name]

STRING

No

New name of the query, if the query should be renamed

[IconID]

INT

No

ID of an icon that is displayed in the client. Default=0

[DefAction]

INT

No

Action to be performed when opening the stored query.
0 = Execute (Default), 1 = Edit, 2 = Count

2. Return Value

(INT): 0 = Job successful, otherwise error code
Complete list of error codes

No job-specific return values.