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

docs on how to add array for SOAP api calls #302

Open
JoernBerkefeld opened this issue Apr 10, 2024 · 0 comments
Open

docs on how to add array for SOAP api calls #302

JoernBerkefeld opened this issue Apr 10, 2024 · 0 comments
Assignees

Comments

@JoernBerkefeld
Copy link
Collaborator

JoernBerkefeld commented Apr 10, 2024

          yup, that's how we handle that in mcdev - thank you for your patience & for using this SDK, Ivan :)

I can recommend looking into that project if you have a problem with the SDK and want to check how it might work.

your first approach would have created sth like

bad:

"Fields": [
        {
            "Name": "CreatedDate",
            "IsRequired": false,
            "Ordinal": 2,
            "IsPrimaryKey": false,
            "FieldType": "Date"
        }
    ]

which would create:

<Fields>...</Fields>
<Fields>...</Fields>
<Fields>...</Fields>

good:

"Fields": {
    "Field": [
        {
            "Name": "CreatedDate",
            "IsRequired": false,
            "Ordinal": 2,
            "IsPrimaryKey": false,
            "FieldType": "Date"
        }
    ]
}

which correctly creates:

<Fields>
  <Field>...</Field>
  <Field>...</Field>
  <Field>...</Field>
</Fields>

Originally posted by @JoernBerkefeld in #299 (comment)

@JoernBerkefeld JoernBerkefeld self-assigned this Apr 10, 2024
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
  NODES
COMMUNITY 2
Project 6
USERS 1