declare parameter in visual studio for creating logic app - azure-logic-apps

Hi I have created a logic app in azure portal and it is working fine and I am very new to logic app and I need to re create the same logic app in visual studio which i was trying from my end .
So first thing I saw that I am not able to create a parameter in side the logic app as I was creating a logic app through open with visual studio
Please let me know how to declare a parameter in visual studio app designer and how to use it,

When we use the logic app in visual studio, there isn't a button for us to create the parameters directly. But we can do it in the "Code View", please refer to the steps below:
1. I created a logic app in visual studio and click the "Code View", we can see the code of the logic app. And we can also find a parameters field in the code.
2. We just need to add the parameter which we want to add under the parameters field.
3. Then we can use the param1 we declared in the designer.
Hope it helps~

Related

Visual studio 2019 and IdentityServer project template

Trying to follow the tutorials for IdentityServer using Visual studio 2019.
As per the instructions created a .Net Core Web Application and then an MVC project type and as per tutorials a welcome screen for IdentityServer should come at run time
But i am getting an MVC page template only like this
Is there any difference in project templates based on new visual studio updates? Or what is the correct selection of project types to get the window similar to the first image ?
It seems you are running the mvc application insteed of the identity provider service.
Go to the solution properties, Common Properties, and select Multiple startup projects. Then change the Action to Start for debug all your projects.
If you prefer start only your identity provider service set it as the Single startup project.

error message when running an application on Bonita tool

I am trying to run this form in the browser, but I keep getting this message not sure how to fix it so can you help me please.
"Ui Designer form type is selected and no target form is defined for overview page mapping. an autogenerated form will be used in the development environment ONLY"
here is a screen shoot of the message.
/Users/user/Desktop/Screen Shot 2017-08-03 at 5.31.44 pm.png
/Users/user/Desktop/Screen Shot 2017-08-03 at 6.34.41 pm.png
Unfortunatly I cant see any pics from your problem and I just think your problem might be with deploying your process.
As the error mentions the form you see when you Run the process from studio is an autogenerated form for testing the process in development mode(Obvious)
So if you want to deploy your process on a deployed Bonita BPM engin you have to create all those forms.
Select the Task (containing the contract cause forms are only generated for contracts) --> Under details panel ---> Execution Tab ---> Form :
Here you have 4 options and as it seems your new to Bonita so I suggest that you go with the UI Designer cause it will generate a form for deploying , simply choose UI Designer then from the right side of Target Form text area click the pencil icon (Edit) , it will create a new form for your contract and opens UI Designer to modify it.
If you just want to see how your process works in deployment environment and don't want to spend time on designing the UI just change the form name from "newForm" to what you want (All the forms created by UI Designer have the "newForm" name before you change it and it may cause problems if you don't modify the name ) and save it.
Build your project and deploy it.

Referencing Another App

What is the best way to reference another app in the visual query designer?
I am using the blog app and I created a second app to list the tags that are used in the main blog app. This way when the app goes to a detail page of a post, I can still have the tags listed on the website without the view changing automatically. I set up my blog tags app with a visual query that list all of the tags used in the main app. Everything was working fine in development.
The problem that I have run into is that when I move the app to a production site the AppId was different than the one I was currently using and development. Now, the tags app is showing an error and I am not able to get into the settings to change the app ID of the visual query to the proper one in order to get the information needed. Is there a better way that I should be handling this?
This sounds like the right way to do it - your main issues is getting into the admin-ui when the template you have shows an error.
I suggest that you quickly rename your current template (so it's not used till you fix the bug) and create an empty template with the original name. This way you can go to the normal settings.
Another option is to switch into dnn-edit-mode, and use the black-dnn buttons to get to app-admin.

Lync API using PresenceIndicator outputting TypeInitializationException within InitializationCompleted

I am using the Lync API within a WPF application. I have used the Office365 Lync Lab 9.1 within the training kit. However when I move the code into my WPF application the PresenceIndicator or ContactList doesn't work. The controls are displayed however the status of the Lync user is not shown. I am using the exact same accounts that are working within the Office365 Training Lab 9.1.
When I add logging I am shown errors like the following for the PresenceIndicator:
Applying template...
Control 'PresenceIndicator' entering 'OnLoaded'
UCClientInitializationFailed:Failed to Create Provider. Error Type: TypeInitializationException
I am also trying the ContactList and that is outputting:
UCClientInitializationFailed:Failed to Create Provider. Error Type: TypeInitializationException
Also the InitializationError property within the InitializationCompleted event is showing an Unknown error. How would I troubleshoot this issue further?
This is a complete stab in the dark, but are you attempting to add controls to an existing WPF application that has never integrated with Lync before?
It may be that you are missing references in your app - double-check you have references to the following files in %program files%\Microsoft Lync\SDK\Assemblies\Desktop
Microsoft.Lync.Controls.dll
Microsoft.Lync.Controls.Framework.dll
Microsoft.Lync.Model.dll
Microsoft.Lync.Utilities.dll
Microsoft.Office.Uc.dll
Also worth checking:
Is your app builing against .NET Framework 3.5 or 4?
Are you building for AnyCPU?
If that doesn't help, you could try creating a new WPF application using the "Lync WPF Application" template in Visual Studio. If this works correctly, then compare this against your appplication for any differences in references, configuration etc.
This MSDN page may be useful.

Programmin In C + Win API: Launching A Second Window When A Button Is Pressed

I am writing a program in C and Windows API. I am using Visual Studio 2010 Express for this.
I have created a Login Window that well, logs in the user. Now, I want to display a second window once user logs in.
How can I do that?
P.S. I am a beginner and am following this tutorial: http://www.zetcode.com/tutorials/winapi/ . Some simple solution will do.
You create the window by
defining a WindProc
Calling RegisterClassEx
Call CreatewindowEx

Resources