This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Access content of virtual folder via M-files API

Former Member
Former Member
Good day everyone!

How can i access the content of virtual folder via m-file web service

111.123.1233/.../items

I want to access only objects within the virtual folder.

What parameter should i put in the URL?

The virtual folders doesn't have unique id that i can use to access them unlike when accessing views
15360.zip
Parents
  • If you check out the documentation (developer.m-files.com/.../) and hover over "path" in the endpoint definition, you'll see that "path" can be any number of path segments to build up the section you're interested in. This documentation also points at the "encoding syntax" page, which is here: developer.m-files.com/.../

    At this point it's also worth highlighting the "MFWSViewNavigation" sample in the GitHub repository: github.com/.../MFWSViewNavigation. Whilst this is C# and uses the C# wrapper library, it does handle navigation into sub-views and groupings so you can take a look at how that works (or download and run it in debug mode and see the HTTP requests it makes).

    What you basically need to do it build up the view structure according to the sub-views or groupings that you want. For example:

    111.123.1233/.../items
    This would give you contents of the view 123 inside view 330.

    111.123.1233/.../items
    This would give you contents of the grouping with ID 456 (e.g. maybe a customer ID) inside view 330.

    111.123.1233/.../items
    This would give you contents of the grouping with a textual value of "hello" inside a grouping with ID 456 inside view 330.

    This syntax is described in the "views" section in the encoding syntax page linked above.

    Regards,

    Craig.
Reply
  • If you check out the documentation (developer.m-files.com/.../) and hover over "path" in the endpoint definition, you'll see that "path" can be any number of path segments to build up the section you're interested in. This documentation also points at the "encoding syntax" page, which is here: developer.m-files.com/.../

    At this point it's also worth highlighting the "MFWSViewNavigation" sample in the GitHub repository: github.com/.../MFWSViewNavigation. Whilst this is C# and uses the C# wrapper library, it does handle navigation into sub-views and groupings so you can take a look at how that works (or download and run it in debug mode and see the HTTP requests it makes).

    What you basically need to do it build up the view structure according to the sub-views or groupings that you want. For example:

    111.123.1233/.../items
    This would give you contents of the view 123 inside view 330.

    111.123.1233/.../items
    This would give you contents of the grouping with ID 456 (e.g. maybe a customer ID) inside view 330.

    111.123.1233/.../items
    This would give you contents of the grouping with a textual value of "hello" inside a grouping with ID 456 inside view 330.

    This syntax is described in the "views" section in the encoding syntax page linked above.

    Regards,

    Craig.
Children
No Data