Back to SDK Support...

transaction.HasField is incorrectly returning True in ConnectorTest project (4 replies)

Randy
10 years ago
Randy 10 years ago

Transaction.HasField appears to be returning true when that field does not exist in Transaction.

In PushDataCustomer I have code which checks for a certain field existing in the dataset.  The field does not exist, but Transaction.HasField() is returning true.

In my screenshot you can see that Transaction.HasField() returns true, but when you look at the XML for the Transaction, that field does not exist.

https://www.realisable.co.uk/wp-content/uploads/2014/12/12-29-2014-2-51-00-PM.png
Randy
10 years ago
Randy 10 years ago

Here's Transaction.Data.OuterXML:

1

1

[email protected]

Randy
10 years ago
Randy 10 years ago

TICKET PRIORITY: MEDIUM/HIGH

Support
10 years ago
Support 10 years ago

Randy, HasField checks for the existence of field on the metadata. I.e. It's essentially a shortcut to the TransformRecordDefinition.HasField.

Thanks

10 years ago
Support 10 years ago

Closed due to inactivity.

Contact

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Request Demo

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Access Downloads

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close