How to sync a SharePoint Web Part with Teams? - sharepoint

I have developed a SharePoint WebPart, this component has several properties that I can modify from SharePoint: width, height...
I have installed the same component in Teams and works fine but I don't know how can I change this properties in Teams.
Logically, I think that by changing the values in Sharepoint, they should automatically refresh in Teams but it's not like that.
On the other hand, If I try to click on the "Sync button with Teams", I don't why never works and throws an error.
https://xxxx.sharepoint.com/sites/catalogApp/_api/web/tenantappcatalog/SyncSolutionToTeams --> Error 500
Somebody know how what can I do to sync this parameters?

#vcima, Once you make changes, you need to build it, bundle it and create new package.
After package creation you need to upload this package. Check following steps to upload package
Go to SharePoint Admin >> Open Apps >> It will take you to App catalog >> Go to Distributed Apps - you will see all the packages
Just delete the existing appropriate package and upload the new package. After that from File menu, sync with Teams
for more detailed steps please check this documentation.

Once you upload your webpart package in sharepoint app catalog, You can click on sync with teams button in catalog. Your webpart will be synced with teams and will be visible in teams as tab. However You can edit the webpart within sharepoint site itself but editing a webpart within teams tab is not possible.Please take a look at Making the SPFx webpart available within Teams tab

Related

Why am I unable to activate this specific feature in Sharepoint 2013?

I have inherited a Sharepoint 2013 environment which I now need to manage. I have created a new list for a new Discussion Board.
My issue is that it does not allow me to insert videos into my posts. Regarding images, all work fine. Some research have pointed towards the need to activate located under Site Settings > Site Collection Features > Video and Rich Media.
However when I press the Activate button, I get the following error message:
Dependency feature 'DocumentManagement' (id: 3a4ce811-6fe0-4e97-a6ae-675470282cf2) for
feature 'DocumentSet' (id: 3bae86a2-776d-499d-9db8-fa4cdc7884f8) is not activated
at this scope.
How can I solve this issue?
Solved! I had to activate Document Sets metadata synchronization (located in Web Application Feature) prior to activating the Video and Rich Mediafeature.

SharePoint designer workflow not changing after publish

I'm working on SharePoint workflow (SharePoint 2010) in SharePoint designer 2010. I was published it many times without problems. But after many publishes (I thing 30) SharePoint stop to changing workflow (I published it without any error and I can find new workflow release in SharePoint web interface).
I published new version (with new commands) but workflow still use old one. But when I modified one of commands which was in workflow previously the modification will appear in next run. I need to add to workflow new commands. My only option is to rewrite whole workflow to new one. But this is much complicated workflow and rewriting takes me long time. Is this behavior normal? Is it some bug? is there any patch or workaround?
This happens most of the time due to the caching mechanism in SharePoint/SharePoint Designer. What you need to do is the following:
Close your SharePoint Designer
Navigate to the following directory: %USERPROFILE%\AppData\Local\Microsoft\WebsiteCache
Delete everything in this directory
Navigate to the following directory:
%APPDATA%\Microsoft\Web Server Extensions\Cache
Delete everything in this directory
Open SharePoint Designer and try to publish your workflow again.
Everything should now work.
For SharePoint Designer 2013 you need to do the following steps:
Go to File > Options > General > Application Options
In the General tab, under the General header, check if the "Cache site data across SharePoint Designer sessions” is ticked. If it is, unchecked it.
Open your SharePoint Designer again and try to publish your workflows.
There is an easy workaround: You need to enable major versioning for the Workflows list. By default, that list is not visible but you still can get to the admin page:
Open SP Designer
Goto All Files
Right-Click Workflows list -> Properties
On the ribbon click Administration Web Page
On the admin page go to Versioning Settings
Enable major versioning
Save your workflow

Editing Downloaded Document changes the document on sharepoint online

A document in workflow task list is being downloaded when I click on it. it what I expected.
But, when I change the downloaded document. It sync back and changes the document on sharepoint online list.
How can I stop that sync on sharepoint online?
It might be sync to SharePoint work space is enabled. To disable follow the below instructions.
Select the document library. Click Library Settings. Click Advanced Settings under the General Settings category. Under Offline Client Availability category, select No to prevent users from download the documents.

Issues with converting HTML file to master page in SharePoint 2013

Right now I have an HTML file and I'm trying to convert it to a master page. I'm using a VM on CloudShare.
So I create a new site collection and go into the site settings. Under “Look and Feel”, Design Manager isn’t there so I’ve found that if I go to “Site Collection Features” under “Site Collection Administration”, and activate “SharePoint Server Publishing Infrastructure” Design Manager will show up. So I go into design manager, but under Edit Master Pages none of the file or folder names will show up, and when I convert the html file the status column doesn’t show up either, so I can’t go to preview it or to the snippets gallery.
The only thing I can find online is to create a new site collection, which I’ve tried a few times. This happened on my old CloudShare VM, and creating a new site collection fixed it, but it’s not working for this. Can anyone help?
Personally when working with new master pages I have found that the best application to use is SharePoint Designer. You should be able to download it for free. Here are the instructions to configure SharePoint designer using it with CloudShare.
http://blog.cloudshare.com/tag/sharepoint-designer/
Figured it out - I made a new site collection and set it to a Publishing site template and it fixed the issue.

Sharepoint Desinger 2010 - Transfer Reusable Workflow from Stage to Prod

I need to transfer a reusable Workflow from the stage env. to the prod.
The workflow is associate to a list, so the list id is stored in the workflow.
Is it possible to transfer the workflow and change the list id to the list name with Visual Studio? (We have no SharePoint Designer access to the prod. env.)
Short answer: No
I tried several hours to fix a reusable workflow, which same as yours was associated with a specific list - I switched systems and the GUID changed --> Workflow was broken.
You can give it a try and rename the MyWorkflow.wsp to MyWorkflow.cab and extract that somewhere. The workflow files are XML based hence you can edit the associated list GUID with your favorite editor. Now you need to package your edited file back into a cab file, rename it to wsp and you can give it a shot. I tried exactly that and resented to just "re-clicking" (as it's SPD) my workflow (two screens come in handy here).
That's what I call "reusable" workflow... Next time do not associate your reusable workflow with anything to keep it reusable.
I would recommend creating an Content Type in a Feature and then base your list and your Reusable Workflow association on that Content Type. We had a project in December where we successfully used this method. I saved a Reusable Workflow as a template. I then deployed the Content Type solution package and the Workflow solution package to another environment. Worked like a charm.
There are tow alternatives for deploying workflow regardless the assigned content types
It is very simple just do the following:
Alternative One
Save the workflow as template
Go to the following path in your site
http://your_server_Address/SiteAssets/Forms/AllItems.aspx
Download the file as WSP
Go to the following URL
http://your_Target_server_Address/_catalogs/solutions/Forms/AllItems.aspx
Upload the WSP, and activate the solution
Go to the site settings, then Site Actions, then Manage site features
Activate the feature that is related to the workflow
If you click workflows under site administration you would be able to see your custom reusable workflow
Alternative Two
Save the workflow as template
Go to the following path in your site
http://your_server_Address/SiteAssets/Forms/AllItems.aspx
Download the file as WSP
Open your visual studio
Click add new project
Under SharePoint choose 2010
Choose Import reusable work flow
Follow the wizard
Project will be created and can be deployed
Note : Make sure your workflow is reusable and that it has no errors

Resources