Web Service > Web Service Operations > Working with a Repository > ExportMbSubjects
ExportMbSubjectsResult ExportMbSubjects(MbId tMbSec, ExportMbSubjectsArg tArg)
tMbSec. Repository connection moniker.
tArg. Operation execution parameters.
The ExportMbSubjects operation exports the list of users to CSV file.
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.
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.
{
"ExportMbSubjects" :
{
"tMbSec" :
{
"id" : "OIPILNNNDDGEGOAEOALKEFLHNOFDFONEDKFAICJIEKEHOLAE!M"
},
"tArg" : ""
}
}
{
"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: