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

Custom fields not included in response #42

Open
JeremyLopez opened this issue Feb 21, 2018 · 0 comments
Open

Custom fields not included in response #42

JeremyLopez opened this issue Feb 21, 2018 · 0 comments

Comments

@JeremyLopez
Copy link

I am trying to include the ReferredBy attribute in the ClientService.get_clients function. In the docs you can state:

<Fields>
    <string>Clients.CustomClientFields</string>
</Fields>

but when I do that in my request:

"Fields"=>{
    "string"=>"Clients.ReferredBy"
}

the field is not included when I call:

response = MindBody::Services::ClientService.get_clients(search_params)
response.result[:clients]

I can however access the field by parsing the response as follows:

response = MindBody::Services::ClientService.get_clients(search_params)
response.response.hash[:envelope][:body][:get_clients_response][:get_clients_result][:clients][:referred_by]

Is there any way to have this included in the standard response so I don't need to manually parse the response?

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

No branches or pull requests

1 participant