Clone an Asset. This makes a "deep" copy of an asset record, such that all child information (specification data, devices, software, transactions, service plans, maintenance) is copied.
sXMLIgnore : This parameter is not used
Returns the AssetID of the newly created asset which is a new clone of the AssetID provided
There is no restful call for this API operation - use a SOAP method instead
Try ErrorMessage = "" Return w.WebSaveSpecial(_hash, _username, _db, _ip, "", "SpecialAssetClone", {"3", "1", "keep", "", "", "12-Jun-2022 16:34:56", "Notes", "Notes field set during clone operation"}, False, _dns, _port, _scheme, _nonce, _noncedate) Catch ex As Exception ErrorMessage = ex.Message Return " End Try
SaveSpecial "SpecialAssetClone","", "3", "1", "keep", "", "", "12-Jun-2022 16:34:56", "Notes", "Notes field set during clone operation"
Dim ret as String = Server.SaveSpecial("SpecialAssetClone","", "3", "1", "keep", "", "", "12-Jun-2022 16:34:56", "Notes", "Notes field set during clone operation") If ret = " Or ret.Substring(0, 8) = "special=" Then MsgBox("Save operation completed.", vbInformation, "Save Data") Else MsgBox("Save operation failed:" & ret, vbExclamation, "Save Data") End If
Download the Visual Studio API Samples Project
Return to the API Index Page