Skip to main content Skip to complementary content

ReplaceAppFromIDAsync Method

Overloads

ReplaceAppFromIDAsync(String, String, IEnumerable<String>)

Replaces objects of a target app with the objects from a source app.

The list of objects in the app to be replaced must be defined in qIds.

ReplaceAppFromIDAsync(AsyncHandle, String, String, IEnumerable<String>)

Replaces objects of a target app with the objects from a source app.

The list of objects in the app to be replaced must be defined in qIds.

ReplaceAppFromIDAsync<T>(AsyncHandle, Func<Response, T>, String, String, IEnumerable<String>)

Replaces objects of a target app with the objects from a source app.

The list of objects in the app to be replaced must be defined in qIds.

ReplaceAppFromIDAsync(String, String, IEnumerable<String>)

Replaces objects of a target app with the objects from a source app.

The list of objects in the app to be replaced must be defined in qIds.

Declaration

      Task<bool> ReplaceAppFromIDAsync([QixName("qTargetAppId")] string targetAppId, [QixName("qSrcAppID")] string srcAppID, [QixName("qIds")] IEnumerable<string> ids)
    

Parameters

Type Name Description
System.String targetAppId

Identifier (GUID) of the target app. The target app is the app to be replaced.

System.String srcAppID

Identifier (GUID) of the source app. The objects in the source app will replace the objects in the target app.

System.Collections.Generic.IEnumerable<System.String> ids

QRS identifiers (GUID) of the objects in the target app to be replaced. Only QRS-approved GUIDs are applicable. An object that is QRS-approved, is for example an object that has been published (for example, not private anymore). If an object is private, it should not be included in this list. If the array of identifiers contains objects that are not present in the source app, the objects related to these identifiers are removed from the target app. If qIds is empty, no objects are deleted in the target app.

Returns

Type Description
System.Threading.Tasks.Task<System.Boolean>

Remarks

The data model of the app cannot be updated.

ReplaceAppFromIDAsync(AsyncHandle, String, String, IEnumerable<String>)

Replaces objects of a target app with the objects from a source app.

The list of objects in the app to be replaced must be defined in qIds.

Declaration

      Task<bool> ReplaceAppFromIDAsync(AsyncHandle asyncHandle, [QixName("qTargetAppId")] string targetAppId, [QixName("qSrcAppID")] string srcAppID, [QixName("qIds")] IEnumerable<string> ids)
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

System.String targetAppId

Identifier (GUID) of the target app. The target app is the app to be replaced.

System.String srcAppID

Identifier (GUID) of the source app. The objects in the source app will replace the objects in the target app.

System.Collections.Generic.IEnumerable<System.String> ids

QRS identifiers (GUID) of the objects in the target app to be replaced. Only QRS-approved GUIDs are applicable. An object that is QRS-approved, is for example an object that has been published (for example, not private anymore). If an object is private, it should not be included in this list. If the array of identifiers contains objects that are not present in the source app, the objects related to these identifiers are removed from the target app. If qIds is empty, no objects are deleted in the target app.

Returns

Type Description
System.Threading.Tasks.Task<System.Boolean>

Remarks

The data model of the app cannot be updated.

ReplaceAppFromIDAsync<T>(AsyncHandle, Func<Response, T>, String, String, IEnumerable<String>)

Replaces objects of a target app with the objects from a source app.

The list of objects in the app to be replaced must be defined in qIds.

Declaration

      Task<T> ReplaceAppFromIDAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qTargetAppId")] string targetAppId, [QixName("qSrcAppID")] string srcAppID, [QixName("qIds")] IEnumerable<string> ids)
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

System.Func<Response, T> onResult

Continuation function

System.String targetAppId

Identifier (GUID) of the target app. The target app is the app to be replaced.

System.String srcAppID

Identifier (GUID) of the source app. The objects in the source app will replace the objects in the target app.

System.Collections.Generic.IEnumerable<System.String> ids

QRS identifiers (GUID) of the objects in the target app to be replaced. Only QRS-approved GUIDs are applicable. An object that is QRS-approved, is for example an object that has been published (for example, not private anymore). If an object is private, it should not be included in this list. If the array of identifiers contains objects that are not present in the source app, the objects related to these identifiers are removed from the target app. If qIds is empty, no objects are deleted in the target app.

Returns

Type Description
System.Threading.Tasks.Task<T>

Type Parameters

Name Description
T

Remarks

The data model of the app cannot be updated.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!