Sharepoint 2016, insert version number in word document - azure

I'm trying to find a way to automatically add version number to a word document that is created in sharepoint 2016. We had the label solution before but now that is deprecated and i really can't find anything on the internet on how to fix the issue.
We had this solution before
How can I include value of sharepoint's version column in a word document?
But that is depricated in 2016.
Anyone got any other simple solution?
Was wondering of fixing a webhook and using it togheter with azure functions. But for such a small thing it seems so unecessary.

Related

How to fix a broken MS Office (Project) Library reference?

One day while happily working away in MS Project I noticed that one of my custom formula fields did not work anymore. When I went to check the formula, it was gone (the formula, not the custom field). So, I went to go copy it from one of my other project files that uses the same formula. It was gone from there as well.
Strange. I asked a colleague if they could download the exact same file I was looking at and see the formula in the custom field. They did, and they could! Then we asked more colleagues to download the same file. Some could see the formula, and some could not.
When trying to manually add the formula back in, I get the following error for any of the ProjDateXX functions:
When clicking OK, it highlights the date parameter "12d". For those who have this problem, it is the same for all ProjDateXX functions (date parameter isn't recognized).
So far, I have uninstalled and reinstalled MS Project, then MS Office and MS Project. Nothing fixes this.
The only clue I have to go on now is that the MS Project Library appears to be registered incorrectly, as seen here:
The only other possible clue my colleagues and I have are that those of us who have the problem recently received Project Online P3 licenses in addition to the existing Project Professional licenses we already had. Why this would cause only one set of functions to stop working, or why that might cause the Project Object library reference to be missing the version number, are mysteries.
We are stumped and have no leads at this point. These functions are critical to our project analysis for some major customers; any help would be greatly appreciated.

Should Word Online support inserting text into a content control via ContentControl.insertText?

I am developing a Word add-in with Office.js that utilizes ContentControl.insertText. According to the documentation, this method is provided by WordApi requirement set 1.1, which is supported in Office Online. Furthermore, the documentation for ContentControls lists Office Online as being supported and does not mention any exceptions when it comes to using that particular method.
That said, when I run the add-in in native Word 2016, everything works fine, but when I run it in the Word Online environment, it fails with the following exception:
code:"NotAllowed"
errorLocation:"ContentControl.insertText"
message:"The action isn’t supported in Word Online. Check the OfficeExtension.Error.debugInfo for more information."
For reference, I am using it like so:
control.insertText(heading.Text, 'Replace');
I also tried running the example provided in the documentation, with the same results: it works in Word 2016, but fails with the above exception in Word Online.
Has anyone been able to successfully insert text into a ContentControl in the Office Online environment? If not, are there plans for this functionality to be supported?
Any input or clarification would be most appreciated! Thanks!
I'm an engineer from MS. There are some cases which contentControl.insertText is not allowed.
I think the cause of your case is that there is more than one paragraphs in the heading.text and you try to insert heading.text into a inline content control.
The inline content control means that the content control just some part of a paragraph.
In order to make sure the root cause of your scenario, could you share me the doc and the script code.

Can anyone tell the difference between these SharePoint Document Library Icons?

Can anyone tell me the difference between these 2 types of document library icons? As far as I can tell, one was created in 2010 and the other 2013 maybe?
This one is the PowerPivot data librabry, in default it let you preview documents in PowerPivot. Second one is standard doc lib.

Microsoft Dynamics CRM 2011 best solution to change entity's field data type

I'm having an issue on changing data type of a field in Dynamics CRM 2011 On Premise deployment.
In my managed solution, name it "Solution 1", I have a custom field in contact entity: "new_usernumber" of type number (int). I want to change it to string as per new client's requirement (for new users they want to add prefix to it).
I can uninstall the solution and deploy the new "fixed" managed solution, but this requires me to delete the value on my custom fields. Is there any better solution for this?
TIA
There is no easy way to do this. If you don't already have data deployed in the instance using the managed solution I recommend deleting it and importing a corrected managed solution file.
There is no supported or unsupported process of changing the data type(or logical name) of a field without data loss. What you will need to do is add the new field and then write a quick update utility to copy the data from the old field to the new field.
Here is a great article on exactly how to pull off deleting a field in a managed solution. Note, if you are trying to preserve data you'll need to run the update after the step "Import devkeydetDeleteExample_1_1_HOLDING.zip"
Have fun...this is a pain, but certainly doable!
A few months ago I recreated fields in a solution (from double to int). That was a huge mistake. I'm still not sure where things went wrong but they did go wrong. Not only did I lose the date. I managed to introduce errors in the meta-layer so our MVP had to sit dear help me get it running again. He wasn't happy. I wasn't happy. The customer wasn't happy (ex-customer today, mostly because of that).
So, my humble advice - don't do that. Declare a new field instead. If you have usernumber, keep it but start using userNumberString (or userString, userName etc.). My guess is you'll keep your hair longer that way.
And if you manage to succeed, please do tell. :)

How to Update SharePoint feature (List Template Views)

I have a sharepoint 2007 feature that contains a list template, however if I change my schema.xml the change doesnt apply
I tried deactivating and uninstalling the feature so i could install it again but that didn´t work.
Also based on this question:
How to update SharePoint feature?
I tried modifying the Version in the feature and reinstall but that didnt work either
¿How can I accomplish a feature update?
Thanks in advance
EDIT: I found that the only thing that isn't updating is the view element, I mean, if I change the display name it gets updated with the above procedure, but if I change a view it isnt updated
With SharePoint 2007, the "Version" is not really useful.
Your problem is that the list based on your template is already "provisionned" : Is has been created with a certain version of your list template and is not updated when you update your list template. This is "By Design"
I think you have to create a new list based on your list template....
Regards,

Resources