Skip to content

[Bug] Generated folder with models and services not coming for SharePoint and 0365 connection #193

@mungamurives

Description

@mungamurives

Describe the bug

As per the documentation, if we add either SharePoint or O365 data sources, ideally model and service files are automatically generated and placed in the /generated/services/ folder. But it's not happening. It creates separate folder called Models and Services. However it working fine for Dataverse data source.

Steps to Reproduce

  1. I have run these two commands one for O365Users and another one for SharePoint.
  2. For O365Users: pac code add-data-source -a "shared_office365users" -c "aaaaaaaa000011112222bbbbbbbbbbbb"
  3. For SharePoint : pac code add-data-source -a shared_sharepointonline -c [ConnectionID] -d [double-encoded SharePoint URL] -t [List GUID]
  4. It's not creating /generated/services/ or /generated/models/. It creates directly Models and Services folder and add the components inside it.
  5. If I add dataverse then generated folder is created and when I re-add again 0365 and SharePoint then those components added in this generated folder. But what was already created like Models and Services, it will stay like that only.

Expected behavior

This is what needs to be added when we add data sources irrespective of technology .
/generated/services/ or /generated/models/

Actual behavior

Not working for SharePoint and O365Users data sources.

Screenshots or Error Messages

Environment information

  • Framework, build tool or relevant package used: [React,Vite, Webpack, etc]
  • Any connection/components: [Office365, SQL, etc]

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions