RangerMSP Business Automation for successful ITs


Go Back   RangerMSP Forums > RangerMSP Software Discussion Forum (CCRM)

Thread Tools Search this Thread
 
March 7th, 2012, 11:29 PM
itognet
 
Posts: 217
Hi,

I cannot figure out how NOT to update the Asset name and Type when doing a XML update:
CommitCRM require me to specify the Asset name and type, meaning that it will ALWAYS be overwritten.

<?xml version = "1.0" ?>
<?commitcrmxml version = "1.0" ?>
<CommitCRMTransaction>
<ExternalApplicationName>My App</ExternalApplicationName>
<SendResponseToEmail>myemail@me.com</SendResponseToEmail>
<Password>secret !!</Password>
<ReturnTransactionID>Update</ReturnTransactionID>
<DataKind>ASSET</DataKind>
<RecordData>
<FLDASTASSETCODE>ASTLW9QAXBM8YXE9FCJP</FLDASTASSETCODE>
<FLDASTNAME>I want to keep the Original Assetname - How ?</FLDASTNAME>
<FLDASTASSETTYPE>S</FLDASTASSETTYPE>
<FLDASTNOTES>
I want to replace the text in notes field.
</FLDASTNOTES>
</RecordData>
</CommitCRMTransaction>
 
March 8th, 2012, 06:12 AM
Support Team
 
Posts: 7,514
Asset Name and Type are mandatory only for new Assets you add.
From what I can see in the XML you listed you pass an Asset Record ID for the Asset Code field (instead of to the Asset Record ID field).
This makes the system thinks that this is an insert transaction (because no Record ID for an existing Asset is passed) and thus it forces you to pass the Name and Type.

When passing an update transaction where you specify an existing Asset Record ID (not the Asset Code) - it'll be considered as an Update transaction and you will be able to omit the Name and Type tokens so these fields will not be overwritten.

HTH
Dina
Reply





All times are GMT -6. The time now is 06:31 PM.

Archive - Top    

RangerMSP - A PSA software designed for MSPs and IT Services Providers
Forum Software Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.