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

Using FetchXML with associated link-entity alias returns unexpected response values #23

Closed
chuckokerstrom opened this issue Mar 9, 2018 · 4 comments
Assignees

Comments

@chuckokerstrom
Copy link

Using the following fetchxml statement the results for the linked attributes (those referred to with an alias of 'td') are returned as "td_x002e_gr_amount". So instead of returning 'td.{attribute name} as expected this additional 'x002e' string is embedded. This string value appears to be consistent (so far) for any aliased attributes. Is there a reason for this? Is there a flag or option that I'm missing?

Regards,

Chuck

@chuckokerstrom
Copy link
Author

Ok weird, the Xml code got removed. Here it is now...

@chuckokerstrom
Copy link
Author

fetchxml_example.txt

@AleksandrRogov
Copy link
Owner

Hi @chuckokerstrom ,
Yes, symbol x002e is an actual dot . but encoded, it is done to avoid JSON parsing errors. So, the actual response contains it.

At this moment DynamicsWebApi, does not decode such symbols, so you will need to use td_x002e_gr_amount to get the value. I did not notice that before, so I will implement a decoding in the next release and you will be able to use 'td.gr_amount`.

Thank you for submitting the issue!

@chuckokerstrom
Copy link
Author

chuckokerstrom commented Mar 13, 2018 via email

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

No branches or pull requests

2 participants