Announcement

Collapse
No announcement yet.

Update by XML, Assets

Collapse
X
 
  • Filter
  • Time
Clear All
new posts

    Update by XML, Assets

    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>

    Re: Update by XML, Assets

    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

    Comment

    Working...
    X