Use ServiceNow forms for outbound post calls - rest

I am trying to use the servicenow form field to populate the values of an external application with a create api call.
My attempt was to create a servicenow application with studio. In studio, I clicked "Create Application File" > "OutBound Integrations" > "Rest Message", and I was able to add the api endpoint, and I ran the test to make a post call to the api. And when I went to the api application, the value was there; so that's great! Now I'm trying to add a form to the servicenow application, so that the values added to the fields will not only show in servicenow, but also to the api. Is this possible, and how do I go about doing this?

The Solution to this was Business rule. In ServiceNow Studio, I created a new application and added Business Rule. In there, I was able to add a server-side script to make it work.
Here's a documentation from ServiceNow to make it work:
https://developer.servicenow.com/app.do#!/training/article/app_store_learnv2_rest_london_outbound_rest_integrations/app_store_learnv2_rest_london_exercise_write_a_script_to_invoke_the_rest_message?v=london

Related

General question about SmartSheet API and creating a user interface

My company keeps individual employee schedules. Each employee manages their own schedule. Admin,supervisors and project manager have to go to each sheet and look for the information.
I need to create a system that allows someone to select a date range and skill set then produce a sheet with the information that matches the criteria. I have installed the Python API and worked through a few tutorials.
Now I need to know how to make command buttons, date pickers . . .
A quick read of my search results indicates that this is not part of the Smartsheet API!
Is there a way to do this through the SmartSheet API? Or how would you approach this?
The Smartsheet API enables you to programmatically access data in Smartsheet (i.e., create, read, update, delete data in Smartsheet). This is true for all APIs -- they simply provide a means for you to programmatically access data. You'll need to build the web app's user interface (UI) yourself by using HTML, CSS, JavaScript, etc.
Alternatively -- instead of building a custom web application like you've described -- I'd suggest that you look into the possibility of creating Smartsheet Reports that can provide the data you've described. You can create Smartsheet Reports via the Smartsheet UI -- so you wouldn't need to do any programming at all.

REST API SERVICE FOR COLLECTING FORM DATA in JAVA

im planning to develop a webapplication using java and HTML implementing as REST Services and confused how ot start with what technologies..
As a First step my first requirement is just creating a login HTML page and create REST SERVICE for LOGIN which validates the user by connecting to Database and generates a session and next page say shopping page.
Please suggest the Java jars,ide, etc to start.
Sorry, your problem is very complex.
To make a website such as shopping page, you can write code with REST services or no need.
If REST Services is used, you must build and setup 2 system/application: web app & server app. (front-end & back-end). With any system/app, you need technologies its own.
To done, you must know many knowledges such as:
API, Rooter, OOP, MVC, how to connect DB,...
There are many IDE such as Eclipse,... or only need a Editor with a few plugin.

Visual Studio Team Services Package Management API

So, much research has shown that the only way to push a NuGet package to the VSTS Package Management is with the CLI tools vs the NuGet Package Explorer app. So, I'm hoping to fix that to make life easier.
Initial research makes me think that I can use one of the REST APIs that Microsoft offers. When I use the link below in Postman, I get the response back that would normally be the Microsoft login page, which is what I would expect when I'm not passing any authentication in the GET request.
https://fabrikam.feeds.visualstudio.com/DefaultCollection/_apis/packaging/feeds/EngineeringInternal/packages?api-version=2.0-preview
However, when I replace the demo account and feed name with my own, I get a 401 error.
https://sartainsoftwaresolutions.feeds.visualstudio.com/DefaultCollection/_apis/packaging/feeds/SartainSoftware.Common/packages?api-version=2.0-preview
Unless I have to enable access to the given API in my VSTS account, I'm not sure what I'm missing.
Any thoughts?
First, regarding 401 issue, you need to specify alternate authentication credential (Profile >Security > Alternate authentication credentials) or Personal access token (user name is empty, do not need to specify), you can’t use email account directly (e.g. xxx.hotmail.com)
Secondly, to push a NuGet Package, you can use this REST API:
Put https://[account].pkgs.visualstudio.com/_packaging/[feed id]/nuget/v2/
Simple steps for Postman:
Using Get feeds/Get a feed REST API to get feed id
Type above push package REST API URL and change request method to PUT
Click Authorization tab
Choose Basic Auth
Leave Username to blank and type Personal Access Token to Password box
Click Headers tab and add a new item (key: X-NuGet-ApiKey; value:VSTS)
Click Body tab
Choose form-data option
Add a new Item: Select File option in Key box and click choose files button to select a nupkg file
Click Send button and the response status result will be 202.
Regarding login page issue, it won't redirect to login page if current user is not authenticated when call REST API. You can authorize access to REST APIs with OAuth.

Want to call Webapi set entry Suite CRM 6.5

I have a Login form with three fields. I want to post the data into a specific module of sugar through API. Where do I write that API? I set the entry point and the call but don't know how to hit that API.
Custom API methods should be written in the following file:
custom/service/v4_1_custom/SugarWebServiceImplv4_1_custom.php
This is described in the old but relevant sugarcrm docs and then should be available like any other suite API call.

fiware spagobi api rest validate with keyrock

I have 3 instances:
1.- app web (ubuntu instance)
2.- keyrock instance
3.- spagobi instance
My spagobi instance works validating users with keyrock as the same as App web. I create some reports in it. Now, i need to get these reports to insert into my app web.
Im trying to use http://docs.spagobi.apiary.io/, The preview subresource option. But all times i have a modal window asking my user/pass (as a apache security option).
im using http://spagobi-url/SpagoBI/restful-services/2.0/documents/printers_visited/preview (printers visited is the label of my document). And results:
If i wrote my user/pass in this panel, validation dont work and tries as a loop.
Anyone know how to solve this?
the REST services provided by SpagoBI require basic authentication, that's why you see the modal window asking for credentials.
In order to avoid this, you should implement a SSO between your application and SpagoBI and open a session in SpagoBI: when the session is opened, you should be able to invoke REST services.
Pay attention to the fact that preview subresource is just a static (optional file), it is not the executed report: if you want to execute the report, you should get the content subresource.
Just to let you know, we are currently developing possibility to invoke REST services providing the OAuth token. This should be available in next release.
Hope this helps