How do I access/return the formattedvalues array? #59
-
When I run the toolkit against a contact I get an array consisting of Attribute and Formattedvalues, by using $contact['dmc_source'] i get the value from Attribute. I have tried $contact['FormattedValues']['dmc_source'] but that does not work? This is the start of the code calling the contact from the result. foreach ( $result->Entities as $contact ) { echo $contact['dmc_source'] } This is the data that get returned when I print_r the $contact array AlexaCRM\Xrm\Entity Object
) Suggestions would be welcome as I must be missing something obvious. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@smartinsight-at Thanks |
Beta Was this translation helpful? Give feedback.
@smartinsight-at
FormattedValues
as you can see from the dump is a property of the entity object. Try$contact->FormattedValues['dmc_source']
Thanks