George Doubinski
George Doubinski
@Artemy-Matvienko what is your Dynamics 365/CRM version? If it's 2016 or above, setting the attributes should work. statecode 1 is Inactive, are you sure that your custom statuscode is valid...
I don't think we've implemented `SetStateRequest`. Check [SoapRequestGenerator](https://github.com/AlexaCRM/php-crm-toolkit/blob/master/src/SoapRequestsGenerator.php) and follow the existing methods style to create new request for SetState. Then call it as we do in [Client.php](https://github.com/AlexaCRM/php-crm-toolkit/blob/master/src/Client.php), e.g. see...
@Artemy-Matvienko yes, you'd need to extend both SoapRequestGenerator and Client. If you fancy the pull request, we can test it and incorporate into the toolkit. Cheers George
Hi @Artemy-Matvienko thanks for the workaround! I'll keep the issue open until we figure out what's the right solution is. Cheers George
@andymain I'll be honest - it is not a high priority item and we have lots of other things in the pipeline to deal with (e.g. S2S authentication, migration to...
Hi @tanberg how are you fetching the records? Can you paste your code? I'm not quite sure what is the problem. Thanks George
Hi @tanberg what's the value for `$LeadId`? Are you sure it's the valid record in Dynamics 365/CRM system? If yes then are you getting any values at all, e.g. name...
What version of php do you have?
and the Dynamics 365/ CRM version?
Hmmm, it looks like attributes is not initialised correctly. Maybe there is something coming from the metadata that breaks our code. Can you capture the logs (you'd need to plug...