none
Create a SharePoint folder from Dynamics CRM online (sandboxed) plugin RRS feed

  • Question

  • Greetings.

    We have a plugin making a web request to SharePoint online and creating a folder associated to any entity created or updated in CRM.
    The folder information was sent via the Slug and we were using the _vti_bin/lisdata.svc endpoint.

    The problem with that solution is that folders which name was containing characters such as Chinese, Greek, etc. were not created (exception was thrown).

    We managed to resolve this problem by using a different entry point _api/web/folders and instead of using a Slug, we used the request's body to send the folder information.
    Everything was working properly and no more problems with special characters.

    The problem we're facing now is that our customer wishes to use custom content types for the folders.

    We realized that the solution described above only creates folders with the standard content type (0x0120) and we cannot find a way to send a custom content type instead.
    We tried to send the Slug header again with the custom content type but we realized that either the _api/web/folder endpoint does not accept a Slug or it does ignore it completely.

    Any idea on how this could be resolved would be greatly appreciated.

    Thanks,


    Frank

    Tuesday, April 3, 2018 4:06 PM