-
Notifications
You must be signed in to change notification settings - Fork 42
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
option set value 0 doesn't save on CRM #85
Comments
Is 0 a valid value for your optionset? |
Hi georged, 0 is a valid value on my optionset, and that's what I'm being trying to send to CRM. If I send any other number to those optionsets all of them work, the issue is with the 0. Any clue about why this could happen will be appreciated. |
@wendyrepez that is strange, indeed. Do you get any error or operation just completes and does not save? |
@wendyrepez make sure you are using the latest version of toolkit @ dev-master. I tried both setting the integer value |
Yes, It is. I don't get any error and the operation completes successfully, but the option doesn't get save on CRM. I could give it a check it out to plugins or workflows but this behaviour occurs with all the optionsets which have 0 as value. |
@wendyrepez as @wizardist mentioned, we did test it and found no issues. I assume your toolkit is up to date. Can you please:
Thanks |
Hi @georged, We are using Dynamics 365/CRM on its 9.1 version Here I left you the fragment of code, that seems to be causing no efect on CRM: if($inputName=='new_sexo' || $inputName=='new_laborandoactualmente' || $inputName=='new_espep' || $inputName=='new_motivopepbenfinal' The data always come to the function as string and those lines are wrap on a foreach . Hope this can give you an idea. Thanks in advance, @georged and @wizardist |
@wendyrepez |
Hi @georged, That was just a try, even if I don't cast the value, the method doesn't take effect for 0, the operation gets completed successfully but the value doesn't get save. |
Hi @wendyrepez we are unable to reproduce the issue. All our tests involving optionsets with the value 0 pass. What you can do is instantiate the client with the logger attached, i.e.
where Logger will "see" all details of the requests including SOAP that gets sent out and the responses. That should help you to identify the issue. Thanks |
Hi,
I'm trying to send to CRM an option value of 0 without luck.
If I send a value different than 0, I can see it correctly on CRM. But this doesn't happen when I send 0.
Can you give an example or any other guidance of how should I do this?
I'm using the optionValue method , but that does not work when I'm attempting to send 0
The text was updated successfully, but these errors were encountered: