Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Entity #60

Closed
dantedantas opened this issue May 11, 2018 · 6 comments
Closed

New Entity #60

dantedantas opened this issue May 11, 2018 · 6 comments

Comments

@dantedantas
Copy link

Hello everyone. Thank you for this tool. 👍

Sorry if my question is a little bit basic.
May someone help me to list a new Entity? What should I change?

I am using the example "cli-getallcontacts.php" as the basis to my code.

I changed this line:

$incidents = $client->retrieveMultipleEntities("incidents", $allPages = false, $pagingCookie = null, $limitCount = 10, $pageNumber = 1, $simpleMode = false);

But I am geting an error:

Fatal error: Uncaught AlexaCRM\CRMToolkit\SoapFault: Could not find entity in C:\xampp\htdocs\OC\vendor\alexacrm\php-crm-toolkit\src\Client.php:1164 Stack trace: #0 C:\xampp\htdocs\OC\vendor\alexacrm\php-crm-toolkit\src\Client.php(2007): AlexaCRM\CRMToolkit\Client->getSoapResponse('https://smartst...', '<s:Envelope xml...') #1 C:\xampp\htdocs\OC\vendor\alexacrm\php-crm-toolkit\src\Client.php(794): AlexaCRM\CRMToolkit\Client->attemptSoapResponse('organization', Object(Closure)) #2 C:\xampp\htdocs\OC\vendor\alexacrm\php-crm-toolkit\src\Client.php(770): AlexaCRM\CRMToolkit\Client->retrieveEntityRaw('incidents', NULL, NULL, false) #3 C:\xampp\htdocs\OC\vendor\alexacrm\php-crm-toolkit\src\Entity\MetadataCollection.php(195): AlexaCRM\CRMToolkit\Client->retrieveEntity('incidents') #4 C:\xampp\htdocs\OC\vendor\alexacrm\php-crm-toolkit\src\Entity\MetadataCollection.php(117): AlexaCRM\CRMToolkit\Entity\MetadataCollection->retrieveMetadata('incidents') #5 C:\xampp\htdocs\OC\vendor\alexacrm\php-crm-toolkit\src\Client.php(833): AlexaC in C:\xampp\htdocs\OC\vendor\alexacrm\php-crm-toolkit\src\Client.php on line 1164

Please, may someone help me and shows in what direction should I go?

Thanks to everyone.

BR
Dante

@georged
Copy link
Contributor

georged commented May 12, 2018

Hi Dante

Entity name is incident (singular), not incidents

Thanks
George

@georged georged closed this as completed May 12, 2018
@dantedantas
Copy link
Author

Hi George.
Thank you, now it works.

How may I get the real name of the tables? I am new on Dynamics. I am using this list from the PowerBI App and it shows me the name of the table in the plural as you may see.

dynamicsincidents

Now I need to learn how to filter/search an information in a table.

Thank you very much.

BR,
Dante

@georged
Copy link
Contributor

georged commented May 14, 2018

Hi Dante,

Plural is the consequences of PowerBI using OData datasets that are derived as plural of the entity name. To get the entity name from the "source", use https://web.powerapps.com to get to your data model. Alternatively, you can download a must-have tool https://www.xrmtoolbox.com and then use metadata browser to explore metadata.

HTH
George

@dantedantas
Copy link
Author

dantedantas commented May 15, 2018 via email

@AnthemPropertiesGroup
Copy link

Hi there,

I tried to use the plugin. I don't see field populate on the form. When I check log files, I see the following error.

[2020-07-22 16:38:36] crmtoolkit.ERROR: Caught exception while accessing Entity::__get() {"exception":"[object] (AlexaCRM\CRMToolkit\SoapFault(code: -2147220969): Could not find entity at /var/www/corp/anthemproperties/web/app/plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/src/Client.php:1159)","property":"attributes"} []
[2020-07-22 16:38:36] crmtoolkit.ERROR: Caught exception while creating an Entity object {"exception":"[object] (AlexaCRM\CRMToolkit\SoapFault(code: -2147220969): Could not find entity at /var/www/corp/anthemproperties/web/app/plugins/integration-dynamics/vendor/alexacrm/php-crm-toolkit/src/Client.php:1159)"} []

Could you please advice?

Thanks!
PA

@georged
Copy link
Contributor

georged commented Jul 23, 2020

Hi @AnthemPropertiesGroup

for the plugin-specific issues please use plugin WordPress forum. When posting there, please provide more information, it looks like a permission error but I may be wrong.

Cheers
George

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants