ISharing.ImportSharedEstimate Method
Sub ImportSharedEstimate( _
ByVal childEstimateFile As String, _
ByVal syncMode As SharingUniqueFieldsSynchroMode, _
ByVal importOptions As ChildEstimateImportOptions _
)
This language is not supported or no code example is available.
void ImportSharedEstimate(
string childEstimateFile,
SharingUniqueFieldsSynchroMode syncMode,
ChildEstimateImportOptions importOptions
)
This language is not supported or no code example is available.
Parameters
- childEstimateFile
- string
The full path to the child estimate to be imported.
- syncMode
- SharingUniqueFieldsSynchroMode
Specifies the synchronization mode for synchronizing unique fields.
- importOptions
- ChildEstimateImportOptions
The options that control importing of a child estimate. They describe how to handle some problematic situations.
Exception type | Condition |
---|---|
An error occurred. Especially the cases with the following QdvApiException.Id values:
|
|
Any other error occurred. |
With importOptions parameter, you can, among other things, allow to continue importing in non transparency mode, if the currencies of the parent and child estimates are different.
In such a case, you must ensure that exchanged columns are provided as parent currency by the child (the child takes the exchange risk) or that your estimate contains some logic to convert amounts provided in the child currency into the parent currency (you take the exchange risk). If the ChildEstimateImportOptions.ContinueOnCurrencyMismatchInNonTransparent is set to false, then the QdvApiException is thrown with the QdvApiException.Id value set to ErrorIDs.SharingImportCurrencyMismatch. In case of transparent mode, the exception is always thrown.