User Profile
Muralikrishna1845
Copper Contributor
Joined Jul 13, 2023
User Widgets
Recent Discussions
Re: Can i get a list of all site collections in a tenant using power automate?
Hi ganeshsanap, I have already used the sharePoint search , please correct me if this is the way to get using SharePoint search please open the below link https://stackoverflow.com/questions/76720491/how-to-get-all-the-site-collections-webs-from-tenant-site-collection-in-spfx-web Please help with your assistance me here or thereRe: Can i get a list of all site collections in a tenant using power automate?
Hi ganeshsanap I am also doing the same task here, but i am doing from SPFX webpart I can able to get any other lists or site contents , but not the because it through 403 status error https://url-admin.sharepoint.com/_api/web/lists/GetByTitle('DO_NOT_DELETE_SPLIST_TENANTADMIN_AGGREGATED_SITECOLLECTIONS') Note: if I access the above URL in Browser then I can get response and required data. Please help me how can i access the Site/Web sites list from tenant. Actually I have Tenant admin permission. but still it shows 403 errorhow to get SP site contents list ?but getting blank values from SP in SPFX webpart
Hi Team, I am trying to get SP Site contents list (Get SP lists) using React component framework but getting blank Please find the below code file //this is WebPart Render method File public render(): void { const element: React.ReactElement<IGetSpListsProps> = React.createElement( GetSpLists, { description: this.properties.description, websiteUrl: this.context.pageContext.web.absoluteUrl }); ReactDom.render(element, this.domElement); } //Component Interface file export interface IGetSpListsProps { description: string; websiteUrl: string; } //Component TSX file export interface IGetSpListsState{ sitecontents: [{"Lists":""}] } export default class GetSpLists extends React.Component<IGetSpListsProps, IGetSpListsState> { static siteurl:string =""; //static member variable public constructor (props :IGetSpListsProps, state:IGetSpListsState ){ super(props); this.state={sitecontents: [{"Lists":""}]}; GetSpLists.siteurl=this.props.websiteUrl; } public componentDidMount() { let reactcontexthandiler= this; jquery.ajax({ url: `${GetSpLists.siteurl}/_api/web/lists?select=Title&$filter=Hidden eq true`, type:"GET", headers:{'Accept': 'application/json;odata=verbose;'}, success : function (resultData){ reactcontexthandiler.setState({sitecontents: resultData.d.results}); }, error: function (jqXHR, textStatus, errorthrown){ } }); } public render(): React.ReactElement<IGetSpListsProps> { return ( <div> <ol> { this.state.sitecontents.map(function(mylists,mylistitemkey){ return( <li> <span>{mylists.Lists}</span> </li>); }) } </ol> </div> );}} Please find the output which it shows for the above piece of code please assist me why it shows blank
Recent Blog Articles
No content to show