VSTS - uploading via an excel macro and getting #mentions to work - vba

I am using VSTS and would like numerous people to get sent the notification when a work task is created.
I am creating a lot of stencils that can just automate and upload work tasks through the TEAM add-in in excel, but don't know how to make the "#mention" function work.
I have written all sorts of styles of syntax in the history field, then publish but nothing seems to work.
Has anyone figured this out?
Cheers Dave

The format is like:
You can To get the userid through User Entitlements-Lists REST API:
GET https://{accountName}.vsaex.visualstudio.com/_apis/userentitlements?api-version=4.1-preview

Related

How to not Verify SharePoint Links Access​?

This new functionality - Link Preview / Verify Links Access / Verify Recipients Access - for MS Outlook desktop app, was ported from Web based app without changes to UI settings to turn off.
I have no idea how to skip it.
The execution of code is stuck on NewEmail.Send until the window receives "Send" or "Send Anyway" msg.
Of course, I was banging my head for 2 weeks trying to find a window by its name, etc...
and when I was in the middle of writing this plea for help one last idea came to my mind.
To comment out following line:
NewEmail.Display
It worked. From all of the sub-ideal solutions, this one is kind of satisfying. You can always put .Display in ErrorHandler. This line is here in first place, because many of macros are being run with task scheduler on VDIs/NPSAs, but some of them are being run by users, so .Display and .Send are always there as a comment or as a code.
I wonder if you have any other ways to manage this change until they will provide registry key or update the UI?

Getting data out of SAP information box with vba

I'm automating a process with VBA, and I'm using SAP Scripting to do so.
The process is basically go to VA01, input the Orders Data and save the order.
But there is a variant in saving the order that is cracking up my head.
The SAP displays a popup message with relevant informations about the order, and I need that information and can't figure out how to get the Text out of the infobox that is displaying when you save the order.
Infos are: Blocked on price, No limit etc... And when it displays that message, I need to save it on a TXT file (i've already got a code for that), I just need a help in manage how to get that text out of the infobox.
If you had an access to the messages you can use MESSAGE - INTO (check info about it)
if i got your task incorrect pls write here. Good luck
I reproduce here the answer of the OP (#zanniboni):
"Hey, thanks for your help. I managed to do what I wanted with this code session.FindById("wnd[1]/usr/txtMESSTXT1").Text".

SharePoint Workflow Only Works For Me?

Ok, I have a workflow built in SharePoint 2010, built in SharePoint Designer. It is set up to begin whenever a new item is created. The library is also set up to create new items based on email attachments. So the goal is for users to email the attachments to the library and the workflow takes over.
The workflow only works for me. The other people attempting to use it are listed as Full Control in the permissions. They are using the correct email address, and the library is creating the new items based on the attachments. The problem is that the workflow keeps saying error occurred.
The error says something about some columns needing different types of data, but when I email to the library it goes off without a hitch.
I am completely stumped as to what could be different about them sending the email instead of me.
Sorry I got kind of long winded, and thanks in advance for any help.
The system account is not allowed to initiate workflow on its own. There is a powershell that you need to run to enable system account to run workflow. Also try impersonation in workflow.
Here found it.
stsadm.exe –o setproperty –propertyname declarativeworkflowautostartonemailenabled –propertyvalue yes
Not sure what was wrong with it, but I just deleted it then rebuilt it and now it works. Don't think I did anything different so I'm not sure.

SMS gateway for Dynamics 365

First of all, I have to say that I am NET developer (C#) and my knowledge on Dynamics 365 is pretty limited. Nevertheless my employer thought that I am good enough to make that thingy from post title :)
After couple of hours researching and reading, I found this video https://www.youtube.com/watch?v=6LwZLoXS6jo which address on how to create and send SMS from Dynamics. I am aware that this require me to create new Dynamics entities, at least SMSMessage and SMSMessageTemplate, but at least I found out how to do this :)
I understood everything stated there, but as i already said, due to my lack of knowledge on Dynamics 365, I got problems with (probably) basic things regarding Dynamics.
Here are those problems:
1. As far as I can tell, in order to build SMS gateway, first thing I need to do is to add new menu item inside Dynamics 365. I presume that this new menu item should reside inside 'Contacts' menu (contacts.jpg, marked with red box) but I am not sure on how to achieve this. Please note, I do not want someone to provide me with some magic solution, I just need someone to provide me with valid links that I can use to learn about this and solve my own problem :)
2. When new menu item is in place, and user click on it, I would like to open up a form for user to select SMS template that will be used and maybe setup some other values. Same again, U do not need to help me with exact code, just with some usable links :)
3. Inside that form that user will open on menu click, I would like to know how to get list of selected contacts (from grid at contact.jpg)
When I (finally) have that list of contacts, I will create SMS entities mentioned above (video link) and everything will fall in place and (hopefully) work.
I am aware that this is probably too much to ask, cause Dynamics 365 is rather complex, and people are spending great amounts of money and their time learning to became Dynamics developers, but without help, Dynamics is making me running in circles chasing my own tail :) and getting nowhere.
Also, I will be using online Dynamics 365 so bare in mind that any solution should work with it.
if any of U think that I missed or got something wrong, please let me know.enter image description here
So basically to get you started, you should:
1) Create a solution in Settings => Customizations => Solutions
2) Add contact entity to that solution (by choosing "Add existing" under Entities pane). Don't click "Add all assets" you will need only contact metadata to get going
3) Create jScript file and add a web resource to CRM (nothing really complicated, just go to web resources in you solution and click "Add new" and specify type of your web resource as jScript and target your file).
4) Now download http://www.xrmtoolbox.com
5) For now you are interested only in plugin "Ribbon Workbench"
6) Now simply choose your solution and contact - you will see command bars for contact homepage, list and form. This is pretty strainghtforward - simply drag and drop a button wherever you like, create a command using workbench and bind the button with the command (simply choose it from a drop-down). The command you are interested in is Custom Javacript. Here you specify your web resource and name of the function that you want to call. You can also specify parameters that should be passed inside your function for example ids of selected items (if you are on the list of records).
There are many approaches to fulfil your specific needs, but being able to call a custom javascript function from a button should be a good starting point, the rest is simply the knowledge of CRM SDK, so how to create an entity using API or open a form or open a web resource - everything is very well documented and you can get it simply by asking google, so I will not post any blog here, not to advertise too much. Also I's suggest downloading latest CRM SDK (https://www.microsoft.com/en-us/download/details.aspx?id=50032) - you have many sample code there, regarding plugins and some form modifications, you should also check this out.
To make it easier for you, you should refer to this "menu" as "Command bar" or "Ribbon", so rather look for "adding custom button to command bar CRM 2016" and you will be all good. Also to make a form for choosing a template, you will probably need some custom web resource, so "creating custom html5 web resource CRM 2016" should give you some good examples.

ItemAdded triggers three times

I added an ItemAdded eventreceiver for a SharePoint document library programmatically and everything works fine on my computer. I checked in my code and my colleague got the latest code from our TFS, built the project and tested it.
On my colleague's computer the ItemAdded event triggers three times when he adds a document from the SharePoint GUI.
On my computer it only triggers once as it should.
Have you seen something similar and do you know how to solve it?
do you have the similar contenttypes on the list? I remember an issue that various events will be fired once per conenttype on the list.
Workaround is to check the contenttype of the current item by using
properties.ListItem[SPBuiltInFieldId.ContentTypeId]
This workaround is working fine in our solution. Somewhere on MSDN i found an article describing that issue. Actually I can't remember the exact link. Sry
thorsten
I will recommend sharing code on ItemAdded.
Also as long it works ok on most of ur machines and issue is with 1 machine , you are good..
Just get a new site collection , retract-delete solution fully , IISReset and deploy the solution again
I found that after removing multiple upload link in upload popup, then it is calling itemadding event only once