Siebel Mobile Connector Guide > Working with the Metadata Business Service > The Metadata Business Service API >

SaveSubscription


SaveSubscription saves a subscription to a file. Subscriptions contain all the necessary metadata for generating style sheets or workflows. Do not directly call this method; instead call it from InvokeMethod.

Syntax

ErrCode SaveSubscription (const CCFPropertySet & inputArgs,

CCFPropertySet & outputArgs);

Argument
Description

inputArgs

The input arguments.

<SAVE>

SUBSCRIPTIONS='%string_of_XML%'

FILE_NAME = '%full_path_to_filename%'. For a definition describing the inbound XML document, see DTD for Subscriptions.

outputArgs

The output arguments.

<SAVE>

SUCCESS=' '%success%'='TRUE'

Returns

ErrCode. TRUE indicates success; FALSE indicates failure.

Example

InvokeMethod(SStext("SaveSubscription"), inputs, outputs);

The input arguments should be in the following format:

<?xml version="1.0" ?>

- <SUBSCRIPTIONS>

<NODE NodeId="Siebel Mobile Connector" SubscribeForUI="FALSE" SubscribeForUpdate="FALSE" SubscribeForPush="FALSE" />

<NODE NodeId="Siebel Mobile Connector_SMC Account Screen" SubscribeForUI="TRUE" SubscribeForUpdate="FALSE" SubscribeForPush="FALSE" />

...

<NODE NodeId="Siebel Mobile Connector_SMC Service Request Screen_Service Request detail view w/attachments_Service Request Attachment List Applet_ActivityFileName_ActivityFileName" SubscribeForUI="FALSE" SubscribeForUpdate="FALSE" SubscribeForPush="FALSE" />

</SUBSCRIPTIONS>

Siebel Mobile Connector Guide