Skip to content

CRM 2015 set statuscode and statecode #84

@Artemy-Matvienko

Description

@Artemy-Matvienko

I get the following error

Property statecode of the new_test entity cannot be set in /var/www/html/Sources/vendor/alexacrm/php-crm-toolkit/src/Entity.php on line 271

When I try to update with this:

$test->statecode = 1;
$test->statuscode = 100000000;

I've come across this similar issue #24, where the solution was to use SetStateRequest. However, I'm not sure how to implement this solution.

Could you please provide an example?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions