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

Modify the implementation of the includeFormattedValues parameter #2

Open
JimDaly opened this issue Sep 6, 2016 · 0 comments
Open

Comments

@JimDaly
Copy link
Owner

JimDaly commented Sep 6, 2016

Change it to includeNotifications and modify the implementation from this:

if (includeFormattedValues) {
                    req.setRequestHeader("Prefer", "odata.include-annotations=\"OData.Community.Display.V1.FormattedValue\"");
                }

to this:

if (includeFormattedValues) {
                    req.setRequestHeader("Prefer", "odata.include-annotations=\"*\"");
                }

Then include entity functions similar to getFormattedValues except
getLookupAttributeName and getLookupAttributeType so that people can put lookup property
names in their $select options and use these annotations:
Microsoft.Dynamics.CRM.lookuplogicalname
Microsoft.Dynamics.CRM.associatednavigationproperty

To determine the type and the correct navigation property.
More info:
See https://msdn.microsoft.com/en-us/library/gg334767.aspx#bkmk_lookupProperty

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

1 participant