benjamen02
Forum Replies Created
-
Got it thanks George
ok thanks
Using the Dataverse plug in do you still reference the libraries like this:
use AlexaCRM\Nextgen\ConnectionService;
use AlexaCRM\Xrm\{
EntityReference,
Entity,
KeyAttributeCollection,
ColumnSet
};`$query = new \AlexaCRM\Xrm\Query\QueryByAttribute( ‘contact’ );
$query->AddAttributeValue( ‘lastname’, ‘Example’ );
$query->AddOrder( ‘firstname’, \AlexaCRM\Xrm\Query\OrderType::Descending() );
$query->ColumnSet = new \AlexaCRM\Xrm\ColumnSet( [ ‘fullname’, ’emailaddress1′ ] );
$collection = $client->RetrieveMultiple( $query );or do not need to put the whole “\AlexaCRM\Xrm\Query\QueryByAttribute” path in
George, You are awesome! Worked Well
- This reply was modified 5 years ago by benjamen02.
I just have the code in the function.php and wasn’t sure how much i need to initialize or how to include the Alexa Libraries. Do i need to include all of this in the funciton.php
use AlexaCRM\CRMToolkit\Client as OrganizationService;
use AlexaCRM\CRMToolkit\Settings;
use AlexaCRM\CRMToolkit\Client;
use AlexaCRM\CRMToolkit\Entity\MetadataCollection;
use AlexaCRM\CRMToolkit\Entity\EntityReference;$options = include( ‘config.php’ );
$serviceSettings = new Settings( $options );
$service = new OrganizationService( $serviceSettings );$clientSettings = new Settings( $options );
$client = new Client( $clientSettings );`Do you have a complete example of calling any create function in the wordpress function.php?
Sorted it – The code should be {% set devicename = request.params[‘deviceid’] %}
Not query.params…whoopsIf i just put the following the Dataverse Gutenberg block i get nothing:
{% set devicename = query.params[‘deviceid’] %}
<p>{{ devicename }}</p>https://ads.adon.co.nz/fetch/?deviceid=1
Am I missing something basic here?
I have check the {{customers.xml}} and the fetch is correct but it does not pick up the devicename variable
Similar Error – This maybe because you haven’t activated Woocommerce yet (even if installed). There isn’t a catch statement in the woo-commerce POS to check if you have woo-commerce activated yet.