Show contents 

Web Service > Web Service Operations > Working with a Repository > ExportMbSubjects

ExportMbSubjects

Syntax

ExportMbSubjectsResult ExportMbSubjects(MbId tMbSec, ExportMbSubjectsArg tArg)

Parameters

tMbSec. Repository connection moniker.

tArg. Operation execution parameters.

Description

The ExportMbSubjects operation exports the list of users to CSV file.

Comments

To execute the operation, in the tMbSec field specify repository connection moniker. The moniker can be obtained on executing the OpenMetabase operation. In the tArg field specify the empty value, the field is reserved for the future.

After executing the operation the CSV file is created, to which the list of users and information about them is loaded. The file is saved to BI server storage.

The operation results in the file moniker in BI server storage. This moniker can be used by the GetBin/GetBinary operations to access the file.

Example

Below is the example of exporting the list of users to CSV file. The request contains repository connection moniker. The response contains moniker of the obtained file in BI server storage.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ExportMbSubjects xmlns="http://www.fsight.ru/PP.SOM.Som">
<tMbSec xmlns="">
  <id>OIPILNNNDDGEGOAEOALKEFLHNOFDFONEDKFAICJIEKEHOLAE!M</id>
  </tMbSec>
  <tArg xmlns="" />
  </ExportMbSubjects>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ExportMbSubjectsResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<id xmlns="">
  <id>OIPILNNNDDGEGOAEOALKEFLHNOFDFONEDKFAICJIEKEHOLAE!M</id>
  </id>
<exportedSubjects xmlns="">
  <id>OIPILNNNDDGEGOAEOALKEFLHNOFDFONEDKFAICJIEKEHOLAE!M!Bin!0</id>
  </exportedSubjects>
  </ExportMbSubjectsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"ExportMbSubjects" :
{
"tMbSec" :
{
"id" : "OIPILNNNDDGEGOAEOALKEFLHNOFDFONEDKFAICJIEKEHOLAE!M"
},
"tArg" : ""
}
}

JSON response:

{
"ExportMbSubjectsResult" :
{
"id" :
{
"id" : "OIPILNNNDDGEGOAEOALKEFLHNOFDFONEDKFAICJIEKEHOLAE!M"
},
"exportedSubjects" :
{
"id" : "OIPILNNNDDGEGOAEOALKEFLHNOFDFONEDKFAICJIEKEHOLAE!M!Bin!0"
}
}
}
public static ExportMbSubjectsResult ExportMbSubjects(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new ExportMbSubjects()
{
tArg = new ExportMbSubjectsArg(),
tMbSec = new MbId() { id = moniker }
};
// Export list of users
var result = somClient.ExportMbSubjects(tGet);
return result;
}

See also:

Working with a Repository